API reference
API overview
Get your website's numbers as JSON with one request and an API key.
{
"success": true,
"requestId": "req_0000000000000001",
"queryId": "",
"data": [
{
"parameter": "summary_metrics",
"success": true,
"data": [{ "pageviews": 240, "unique_visitors": 80, "sessions": 100, "bounce_rate": 25 }]
},
{
"parameter": "top_pages",
"success": true,
"data": [{ "name": "/pricing", "pageviews": 90, "visitors": 41 }]
}
],
"meta": { "parameters": ["summary_metrics", "top_pages"], "total_parameters": 2, "page": 1, "limit": 100, "filters_applied": 0 }
}Find your website ID with GET /v1/query/websites, or copy it from the dashboard URL.
Pick what you need
Find the right URL
Every endpoint except the health check, GET /v1/query/types, public flag evaluation and the scan API needs a key. Send it as x-api-key or Authorization: Bearer. Uploading, listing and deleting source maps needs write:source_maps; symbolicating needs read:data. The scan API allows 600 requests a minute and 5,000 a day per network.
Related
How is this guide?