Skip to Content
Google Search Console

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

OperationRouteCalls Google
Get connection statusGET /v1/gsc/statusNo
List propertiesGET /v1/gsc/propertiesYes, or reads the stored account inventories
Query search analyticsGET /v1/gsc/search-analyticsYes
List sitemapsGET /v1/gsc/sitemapsYes
Inspect a URLGET /v1/gsc/url-inspectionYes
Inspect URLsPOST /v1/gsc/url-inspection/bulkYes
Find keyword cannibalizationGET /v1/gsc/cannibalizationYes

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-Key header. 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_used envelope.

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.

HTTPCodeWhen
400gsc_not_connectedNo Google Search Console account is connected. Connect one in the dashboard.
401invalid_api_keyMissing, invalid or revoked API key.
401gsc_token_expiredThe Google connection expired or was revoked. Reconnect it in the dashboard.
403capability_missingYour role is client.
403gsc_access_deniedGoogle denied access to this property and no property you own matches the value. The response lists valid_properties; use one as site.
404gsc_property_not_foundNo connected Google account can see the property, or Google returned 404 for it.
429rate_limitedMore than 60 requests per minute for this key.
429gsc_quota_exceededGoogle's Search Console API quota was exceeded. Retry later.
502gsc_token_refresh_failedRankParse could not refresh the Google access token. Retry shortly.
502gsc_api_errorAny other upstream failure, including requests Google rejects and timeouts. The message carries the upstream detail.
503token_refresh_in_progressAnother 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.
503gsc_not_configuredThe 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.

ToolOperation
get_gsc_propertiesList properties
get_gsc_sitemapsList sitemaps
get_gsc_url_inspectionInspect a URL
inspect_gsc_urlsInspect URLs
get_gsc_cannibalizationFind 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.

On this page