Quickstart
Create a QueryDeck API key and make your first REST API call in a few minutes.
Create an API key
In the app, open Developers → API keys and choose Create API key. Pick the data sets and properties the key may read. Only organisation owners and admins can create keys.
Copy the key when it appears. It starts with qd_live_ and is shown only
once. Store it in a secret manager or environment variable:
export QUERYDECK_KEY="qd_live_…"List your properties
curl https://api.querydeck.si/v1/public/properties \
-H "Authorization: Bearer $QUERYDECK_KEY"{
"properties": [
{ "id": "3f2c…", "siteUrl": "sc-domain:example.com", "ga4PropertyId": "properties/123456789" }
]
}Run a report
Pass a property's id or its siteUrl, a report
name and a window in days (1–365, default 28):
curl https://api.querydeck.si/v1/public/performance/query \
-H "Authorization: Bearer $QUERYDECK_KEY" \
-H "Content-Type: application/json" \
-d '{ "property": "sc-domain:example.com", "report": "top_performing_keywords", "days": 28 }'Every report answers in the same envelope:
{
"property": "sc-domain:example.com",
"report": "top_performing_keywords",
"days": 28,
"rows": [ … ]
}Next steps
- Use the TypeScript SDK instead of raw HTTP.
- Connect an AI agent with the MCP server.
- Learn how keys and access work.