Google Search Console
Google Search Console
Section titled “Google Search Console”Access search performance data and site management through the Google Search Console API.
API Reference
Section titled “API Reference”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
Common Endpoints
Section titled “Common Endpoints”| Endpoint | Method | Description |
|---|---|---|
| /webmasters/v3/sites | GET | List verified sites |
| /webmasters/v3/sites/{siteUrl} | GET | Get site details |
| /webmasters/v3/sites/{siteUrl}/searchAnalytics/query | POST | Query search analytics data |
| /webmasters/v3/sites/{siteUrl}/sitemaps | GET | List sitemaps |
| /webmasters/v3/sites/{siteUrl}/urlInspection/index:inspect | POST | Inspect a URL |
Search Analytics Query
Section titled “Search Analytics Query”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
Guidelines
Section titled “Guidelines”- Site URLs: Must be URL-encoded. Use
https://example.com/orsc-domain:example.comfor 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.
Setup Guide
Section titled “Setup Guide”Configuration
Section titled “Configuration”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" }}Authentication
Section titled “Authentication”See Google OAuth Setup for instructions on creating OAuth credentials, then use source_google_oauth_trigger to start the OAuth flow.
Troubleshooting
Section titled “Troubleshooting”“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:
- Visit the Search Console API page
- Click Enable
- 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.
Rate Limits
Section titled “Rate Limits”- 1,200 queries per minute
- Search analytics queries return up to 25,000 rows per request