curl --request POST \
--url https://management.scanova.io/analytics/qr/raw/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form filter_by=qrid \
--form 'q[0]=Qf94b25d768294148' \
--form 'q[1]=Qf94b25d768294149'"<string>"Analytics & Reporting
Export Raw Scan Data
Download row-level scan logs for one or more QR codes, using the same filters as the aggregate analytics export endpoint. Ideal for custom BI pipelines, reconciliations, or detailed auditing.
POST
/
analytics
/
qr
/
raw
curl --request POST \
--url https://management.scanova.io/analytics/qr/raw/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form filter_by=qrid \
--form 'q[0]=Qf94b25d768294148' \
--form 'q[1]=Qf94b25d768294149'"<string>"Description
The Export Raw Scan Data endpoint returns a flat dataset where each row equals one scan event. Use it when you need to rebuild your own pivot tables, send the data to a warehouse, or debug anomalies at the event level. The query parameters mirror those in the analytics export endpoint so you can reuse the same request builder.Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | ✅ Yes | Export mode. Use raw for all scan events (humans + bots), or raw_bot to export only bot scan events. |
from | string (YYYY-MM-DD) | ✅ Yes | Inclusive start date for the export window. |
to | string (YYYY-MM-DD) | ✅ Yes | Inclusive end date. Defaults to the current date when omitted. |
file_format | string | ✅ Yes | Output format. Accepted values: csv, xls, xlsx. CSV is recommended for large pulls. |
exclude_bot_scan | boolean | No | When true, bot scan rows are excluded from the raw export. Use alongside type=raw to get a clean human-only dataset. Defaults to false. |
Supported type Values
| Value | Description |
|---|---|
raw | Export all individual scan events (human and bot traffic combined). |
raw_bot | Export only bot scan events. Useful for auditing or removing bot traffic separately. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
filter_by | string | ✅ Yes | Filter type — either qrid (QR code IDs), tags (tag names) and folder id. |
q | array | ✅ Yes | List of QR IDs (if filter_by=qrid) or tags (if filter_by=tags) or folder id (if filter_by=folder) to include in the raw export. |
When using form-data, pass one
q field per ID or tag (for example: q=Qf94..., q=Qf95...).Example Request
Export Raw Scan Data by QR IDs
curl -X POST "https://management.scanova.io/analytics/qr/raw/?type=raw&from=2025-10-28&to=2025-11-26&file_format=csv" \
-H "Authorization: YOUR_API_KEY" \
-F "filter_by=qrid" \
-F "q=Qf94b25d768294148" \
-F "q=Qf94b25d768294149"
Export Raw Scan Data by Tags
curl -X POST "https://management.scanova.io/analytics/qr/raw/?type=raw&from=2025-10-28&to=2025-11-26&file_format=csv" \
-H "Authorization: YOUR_API_KEY" \
-F "filter_by=tags" \
-F "q=marketing" \
-F "q=campaign"
Export Bot-Only Scan Data
curl -X POST "https://management.scanova.io/analytics/qr/raw/?type=raw_bot&from=2025-10-28&to=2025-11-26&file_format=csv" \
-H "Authorization: YOUR_API_KEY" \
-F "filter_by=qrid" \
-F "q=Qf94b25d768294148"
Response
- Status:
200 OKon success. - Content-Type: Matches the requested format (
text/csv,application/vnd.ms-excel, orapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet). - Body: Each row represents a scan with timestamp, device, OS, browser, geo metadata, campaign references, and any other available scan attributes.
Raw files can grow quickly when exporting long date ranges or busy campaigns. For >50k scans, schedule the job during off-hours or break the date range into weekly slices.
Tips
- Pair this export with the aggregate
/analytics/qr/export/report to validate funnel metrics. - CSV output is best suited for ETL/ELT jobs and scripting workflows.
- XLS/XLSX provide richer formatting if you need to hand the dataset to stakeholders without additional tooling.
Authorizations
API key authentication. Enter your API key directly in the Authorization header.
Query Parameters
Must be set to raw to retrieve raw scan data.
Available options:
raw Start date for scan data (inclusive). Format: YYYY-MM-DD
End date for scan data (inclusive). Format: YYYY-MM-DD. Defaults to current date.
Export file format for the raw data. CSV is ideal for lightweight processing.
Available options:
csv, xls, xlsx Body
multipart/form-data
Response
Raw scan data exported successfully
The response is of type file.
Was this page helpful?
⌘I