Search Console API
Read GSC status, performance series, and top queries for a site, and trigger a fresh data sync.
Get GSC connection status
bash
GET /v1/sites/{site_id}/search-console/statusjson
{
"connected": true,
"property": "sc-domain:myblog.com",
"lastSyncAt": "2025-07-22T06:00:00Z",
"dataFromDate": "2024-01-01"
}Get performance data
bash
GET /v1/sites/{site_id}/search-console/performance?days=30
# Returns aggregated clicks, impressions, CTR, and average position
# for the last N daysGet top queries
bash
GET /v1/sites/{site_id}/search-console/queries?limit=50&sort=impressionsTrigger a sync
bash
POST /v1/sites/{site_id}/search-console/sync
# Forces an immediate refresh of GSC data.
# Useful after publishing new content or after a suspected ranking change.