Google Search Console
Query your own live Google Search Console data (queries, pages, countries, devices, sitemaps, URL inspection) through the RankParse API.
The /v1/gsc/* routes proxy the Google Search Console API for the properties your connected Google accounts can see. Every data call is a live request to Google for one property, so the data is Google-only and exactly as fresh as Search Console itself. RankParse asks Google for finalized data only, so the most recent day or two are usually missing.
Google Search Console, rank tracking and Google Ads are three separate data products. Do not mix them up:
- Google Search Console (this section): live, Google-only Search Console data (queries, pages, countries, devices, sitemaps, URL inspection), fetched from Google on every call.
- Rank tracking: stored, scheduled snapshots of Google, Bing and Yandex keyword rankings side by side, for the queries you track.
- Google Ads keyword research: search volume and competition for keywords. It never returns rankings.
Operations
| Operation | Route | Calls Google |
|---|---|---|
| Get connection status | GET /v1/gsc/status | No |
| List properties | GET /v1/gsc/properties | Yes, or reads the stored account inventories |
| Query search analytics | GET /v1/gsc/search-analytics | Yes |
| List sitemaps | GET /v1/gsc/sitemaps | Yes |
| Inspect a URL | GET /v1/gsc/url-inspection | Yes |
| Inspect URLs | POST /v1/gsc/url-inspection/bulk | Yes |
| Find keyword cannibalization | GET /v1/gsc/cannibalization | Yes |
Get connection status
Whether a Google account is connected, and every connection.
List properties
The Search Console properties you can query.
Query search analytics
Clicks, impressions, CTR and position by query, page, country, device, date or search appearance.
List sitemaps
Submitted sitemaps and Google's processing status.
Inspect a URL
Google's live index status for one URL.
Before you call
Connect Google Search Console
In the dashboard open Settings, Connections, choose Google Search Console and click Connect. Sign in with a Google account that has access to the properties you want to query. You can connect more than one Google account.
List your properties
Call List properties and copy a siteUrl exactly as it is returned.
Query it
Call Query search analytics with site, startDate and endDate.
The site parameter
Google names a property exactly: https://example.com/ (with the trailing slash) for a URL-prefix property, or sc-domain:example.com for a domain property. You can also send a bare host (example.com) or a URL (https://www.example.com/pricing): RankParse matches it to the property your account owns, preferring an exact URL-prefix property, then a domain property (which covers subdomains), then another http, https or www variant. When it used a different property than you sent, the response carries the one it used in site and your value in requested_site. If nothing matches, the 403 gsc_access_denied or 404 gsc_property_not_found response lists the properties that would have worked in valid_properties. When several Google accounts are connected, RankParse reads the property through the account that can see it: the account the property is attached through on a website, else the best account whose property list includes it. If none of them can see it, the call returns 404 gsc_property_not_found naming the connected accounts.
Authentication and cost
- Send your API key in the
X-API-Keyheader. See Authentication. - The Google connection belongs to your workspace, not to the key. Any key in the workspace uses it.
- Every
/v1/gsc/*route costs 0 credits. - Every route needs a team role (owner, admin or member). A client role gets
403 capability_missing. - Every route except Get connection status shares the rate limit of 60 requests per minute per key (see Rate limiting). Google's own Search Console quotas apply on top.
- Responses are plain objects. They are not wrapped in the usual
data/credits_usedenvelope.
Errors shared by every data route
These apply to List properties, Query search analytics, List sitemaps and Inspect a URL. All errors use the standard shape { "error", "code", "message" }. See Errors.
| HTTP | Code | When |
|---|---|---|
| 400 | gsc_not_connected | No Google Search Console account is connected. Connect one in the dashboard. |
| 401 | invalid_api_key | Missing, invalid or revoked API key. |
| 401 | gsc_token_expired | The Google connection expired or was revoked. Reconnect it in the dashboard. |
| 403 | capability_missing | Your role is client. |
| 403 | gsc_access_denied | Google denied access to this property and no property you own matches the value. The response lists valid_properties; use one as site. |
| 404 | gsc_property_not_found | No connected Google account can see the property, or Google returned 404 for it. |
| 429 | rate_limited | More than 60 requests per minute for this key. |
| 429 | gsc_quota_exceeded | Google's Search Console API quota was exceeded. Retry later. |
| 502 | gsc_token_refresh_failed | RankParse could not refresh the Google access token. Retry shortly. |
| 502 | gsc_api_error | Any other upstream failure, including requests Google rejects and timeouts. The message carries the upstream detail. |
| 503 | token_refresh_in_progress | Another request was renewing the Google token and did not finish in the few seconds RankParse waits. The response has a Retry-After header and retry_after seconds; retry the same request. Several calls at once can cause it. |
| 503 | gsc_not_configured | The Search Console integration is not configured on the server. |
MCP tools
The Search Console tools are on the API-key MCP endpoint (mcp.rankparse.com) only. The secure OAuth connector (connect.rankparse.com) does not include any of them. All are read-only and cost 0 credits. See MCP Server.
| Tool | Operation |
|---|---|
get_gsc_properties | List properties |
get_gsc_sitemaps | List sitemaps |
get_gsc_url_inspection | Inspect a URL |
inspect_gsc_urls | Inspect URLs |
get_gsc_cannibalization | Find keyword cannibalization |
16 search analytics tools (get_gsc_top_queries, get_gsc_top_pages, get_gsc_date_trends and more) | Query search analytics, which lists each tool and the parameters it sends |
Get connection status has no MCP tool. For the stored index status of all your tracked pages at once, see Indexing; for the issues RankParse found on a website, see Issues.