Data export
Download your raw events as CSV, NDJSON or JSON: from Site settings on every plan, or through the API from Growth.
Raw events
GET /api/v1/export streams every event in the period, one row per event, in the order they were stored. It takes the common query parameters, so you can export a range (period=custom&from=…&to=…) or a filtered slice.
curl "https://stancelens.com/api/v1/export?site_id=SITE_ID&period=custom&from=2026-01-01&to=2026-01-31" \
-H "Authorization: Bearer $STANCELENS_API_KEY" -o events.csvformat is csv (default), json (an array) or ndjson (one object per line). A period with dates (7d, mtd, custom, …) is read in the site's timezone, or in timezone when you pass one.
From the dashboard
Site settings → Export downloads every event the site has stored, as CSV, NDJSON (one JSON object per line, easiest to stream into another tool) or a JSON array. For raw events in a date range or a filtered slice, use the API above. Report cards in the dashboard download their own table as CSV.
The CSV header, which is also the key order in JSON and NDJSON:
ts,name,visitor_id,session_id,user_id,hostname,path,title,referrer,referrer_domain,channel,utm_source,utm_medium,utm_campaign,utm_term,utm_content,country,region,city,browser,browser_version,os,os_version,device,screen,language,props,revenue,duration,platform,app_version,device_model,sdk{
"ts": 1795392020300,
"name": "pageview",
"visitor_id": "bee6f23e5d140636",
"session_id": "mwshxy004ac0de4e0f6c",
"user_id": null,
"hostname": "stancelens.com",
"path": "/blog/cookieless-analytics-explained",
"channel": "direct",
"country": "US",
"device": "mobile",
"props": null,
"revenue": null,
"duration": 166177
}- In CSV,
propsis a JSON string; in JSON it's an object. - Cells starting with
=,+,-or@are prefixed with'in CSV so spreadsheets don't run them as formulas. - The file name is
stancelens-SITE_ID-FROM-TO.csv(or.json,.ndjson), with the first and last day of the range.