Skip to content

Google Search Console

Access search performance data and site management through the Google Search Console API.

This source provides a single flexible api_search-console tool that accepts:

  • path: API endpoint (e.g., “/webmasters/v3/sites”)
  • method: HTTP method (GET, POST)
  • params: Request body or query parameters
EndpointMethodDescription
/webmasters/v3/sitesGETList verified sites
/webmasters/v3/sites/{siteUrl}GETGet site details
/webmasters/v3/sites/{siteUrl}/searchAnalytics/queryPOSTQuery search analytics data
/webmasters/v3/sites/{siteUrl}/sitemapsGETList sitemaps
/webmasters/v3/sites/{siteUrl}/urlInspection/index:inspectPOSTInspect a URL

The search analytics endpoint is the most powerful. POST body example:

{
"startDate": "2026-01-01",
"endDate": "2026-03-17",
"dimensions": ["query", "page"],
"rowLimit": 25,
"dimensionFilterGroups": [{
"filters": [{
"dimension": "country",
"expression": "hun"
}]
}]
}

Available dimensions: query, page, country, device, date, searchAppearance

Response fields: clicks, impressions, ctr, position

  • Site URLs: Must be URL-encoded. Use https://example.com/ or sc-domain:example.com for domain properties.
  • Date range: Search analytics data is available with a 2-3 day delay. Don’t query for today or yesterday.
  • Privacy: This source accesses search performance data. All data remains local.

Required config.json:

{
"name": "Google Search Console",
"slug": "search-console",
"enabled": true,
"provider": "google",
"type": "api",
"api": {
"baseUrl": "https://searchconsole.googleapis.com/",
"authType": "bearer",
"googleService": "searchconsole",
"googleOAuthClientId": "your-client-id.apps.googleusercontent.com",
"googleOAuthClientSecret": "your-client-secret"
}
}

See Google OAuth Setup for instructions on creating OAuth credentials, then use source_google_oauth_trigger to start the OAuth flow.

“Google Search Console API has not been used in project” error

Section titled ““Google Search Console API has not been used in project” error”

The Search Console API needs to be enabled in your Google Cloud project:

  1. Visit the Search Console API page
  2. Click Enable
  3. Wait 1-2 minutes for changes to propagate

“Google OAuth credentials not configured” error

Section titled ““Google OAuth credentials not configured” error”

Add your OAuth client ID and secret to the source’s config.json under the api section.

  • 1,200 queries per minute
  • Search analytics queries return up to 25,000 rows per request