Clicks, impressions, CTR and average position from Google Search for a Search Console property, grouped by query, page, country, device or date.
curl -X POST "https://api.primaryapi.com/v1/run/search-console.performance" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"sc-domain:example.com","startDate":"2026-10-01","endDate":"2026-10-31","dimensions":["query"],"limit":2}'{
"output": {
"found": true,
"data": {
"aggregationType": "byProperty",
"firstIncompleteDate": null,
"firstIncompleteHour": null,
"nextCursor": "eyJzIjoyfQ", …
}
},
"credits": 1
}Input and output
11 fields
sc-domain:example.com.2026-10-01.2026-10-31.["query"].2.5 fields
Good to know
Runs as your connected Google account. Needs the Read Search Console capability.
Dates are Pacific Time.
By default only finalized data is returned. So the most recent days can be missing. Set dataState "all" to include fresh data that may still change.
Page through with nextCursor (up to 25,000 rows per call).
A property the account cannot see is a miss with reason no_access.
The same key and credits work for every API.