Google Search Console URL Inspection API

The UrlInspection API from Google Search Console — 1 operation(s) for urlinspection.

GitHub OpenAPI

Operations 1

POST /v1/urlInspection/index:inspect Inspect index #

Documentation

📖
Documentation
https://developers.google.com/webmaster-tools/v1/api_reference_index
📖
Documentation
https://searchconsole.googleapis.com/$discovery/rest?version=v1
📖
Authentication
https://developers.google.com/webmaster-tools/v1/how-tos/authorizing
📖
Documentation
https://developers.google.com/webmaster-tools/about
📖
Documentation
https://developers.google.com/webmaster-tools/v1/prereqs
📖
GettingStarted
https://developers.google.com/webmaster-tools/v1/quickstart/quickstart-python
📖
Documentation
https://developers.google.com/webmaster-tools/v1/how-tos/search_analytics
📖
APIReference
https://developers.google.com/webmaster-tools/v1/searchanalytics/query
📖
APIReference
https://developers.google.com/webmaster-tools/v1/sitemaps
📖
APIReference
https://developers.google.com/webmaster-tools/v1/sitemaps/get
📖
APIReference
https://developers.google.com/webmaster-tools/v1/sitemaps/submit
📖
APIReference
https://developers.google.com/webmaster-tools/v1/sites/get
📖
APIReference
https://developers.google.com/webmaster-tools/v1/urlInspection.index/inspect
📖
APIReference
https://developers.google.com/webmaster-tools/v1/urlInspection.index/UrlInspectionResult
📖
APIReference
https://developers.google.com/webmaster-tools/search-console-api/v1/reference/urlTestingTools/mobileFriendlyTest/run
📖
Documentation
https://developers.google.com/webmaster-tools/search-console-api/v1/
📖
Documentation
https://developers.google.com/webmaster-tools/search-console-api/about
📖
Documentation
https://search.google.com/test/rich-results
📖
Documentation
https://indexing.googleapis.com/$discovery/rest?version=v3
📖
Documentation
https://developers.google.com/search/apis/indexing-api/v3/reference/indexing/rest
📖
GettingStarted
https://developers.google.com/search/apis/indexing-api/v3/quickstart
📖
Documentation
https://developers.google.com/search/apis/indexing-api/v3/prereqs
📖
APIReference
https://developers.google.com/search/apis/indexing-api/v3/reference/indexing/rpc
📖
APIReference
https://developers.google.com/search/apis/indexing-api/v3/reference/indexing/rest/v3/urlNotifications/publish

Specifications

Code Examples

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-search-console:google-search-console-urlinspection-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-search-console-urlinspection-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Search Console URL Inspection API
  version: v1
  description: Generated from Google's published Discovery document for Google Search Console API (searchconsole v1, revision 20261110). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://searchconsole.googleapis.com
tags:
- name: UrlInspection
paths:
  /v1/urlInspection/index:inspect:
    post:
      operationId: searchconsole.urlInspection.index.inspect
      summary: Inspect index
      description: Index inspection.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InspectUrlIndexRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InspectUrlIndexResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/webmasters
        - https://www.googleapis.com/auth/webmasters.readonly
      - apiKey: []
      tags:
      - UrlInspection
components:
  schemas:
    MobileUsabilityInspectionResult:
      properties:
        verdict:
          type: string
          description: High-level mobile-usability inspection result for this URL.
          enum:
          - VERDICT_UNSPECIFIED
          - PASS
          - PARTIAL
          - FAIL
          - NEUTRAL
        issues:
          items:
            $ref: '#/components/schemas/MobileUsabilityIssue'
          type: array
          description: A list of zero or more mobile-usability issues detected for this URL.
      type: object
      description: Mobile-usability inspection results.
    MobileUsabilityIssue:
      type: object
      description: Mobile-usability issue.
      properties:
        issueType:
          type: string
          description: Mobile-usability issue type.
          enum:
          - MOBILE_USABILITY_ISSUE_TYPE_UNSPECIFIED
          - USES_INCOMPATIBLE_PLUGINS
          - CONFIGURE_VIEWPORT
          - FIXED_WIDTH_VIEWPORT
          - SIZE_CONTENT_TO_VIEWPORT
          - USE_LEGIBLE_FONT_SIZES
          - TAP_TARGETS_TOO_CLOSE
        severity:
          enum:
          - SEVERITY_UNSPECIFIED
          - WARNING
          - ERROR
          type: string
          description: Not returned; reserved for future use.
        message:
          type: string
          description: Additional information regarding the issue.
    Item:
      type: object
      properties:
        issues:
          description: A list of zero or more rich result issues found for this instance.
          items:
            $ref: '#/components/schemas/RichResultsIssue'
          type: array
        name:
          description: The user-provided name of this item.
          type: string
      description: A specific rich result found on the page.
    UrlInspectionResult:
      properties:
        inspectionResultLink:
          type: string
          description: Link to Search Console URL inspection.
        indexStatusResult:
          $ref: '#/components/schemas/IndexStatusInspectionResult'
          description: Result of the index status analysis.
        ampResult:
          $ref: '#/components/schemas/AmpInspectionResult'
          description: Result of the AMP analysis. Absent if the page is not an AMP page.
        mobileUsabilityResult:
          $ref: '#/components/schemas/MobileUsabilityInspectionResult'
          description: Result of the Mobile usability analysis.
        richResultsResult:
          $ref: '#/components/schemas/RichResultsInspectionResult'
          description: Result of the Rich Results analysis. Absent if there are no rich results found.
      type: object
      description: URL inspection result, including all inspection results.
    InspectUrlIndexRequest:
      type: object
      description: Index inspection request.
      properties:
        siteUrl:
          description: Required. The URL of the property as defined in Search Console. **Examples:** `http://www.example.com/` for a URL-prefix property, or `sc-domain:example.com` for a Domain property.
          type: string
        languageCode:
          description: Optional. An [IETF BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag) language code representing the requested language for translated issue messages, e.g. "en-US", "or "de-CH". Default value is "en-US".
          type: string
        inspectionUrl:
          type: string
          description: Required. URL to inspect. Must be under the property specified in "site_url".
    DetectedItems:
      type: object
      properties:
        richResultType:
          type: string
          description: Rich Results type
        items:
          description: List of Rich Results items.
          items:
            $ref: '#/components/schemas/Item'
          type: array
      description: Rich Results items grouped by type.
    AmpIssue:
      properties:
        severity:
          enum:
          - SEVERITY_UNSPECIFIED
          - WARNING
          - ERROR
          description: 'Severity of this issue: WARNING or ERROR.'
          type: string
        issueMessage:
          description: Brief description of this issue.
          type: string
      description: AMP issue.
      type: object
    RichResultsInspectionResult:
      properties:
        verdict:
          enum:
          - VERDICT_UNSPECIFIED
          - PASS
          - PARTIAL
          - FAIL
          - NEUTRAL
          description: High-level rich results inspection result for this URL.
          type: string
        detectedItems:
          description: A list of zero or more rich results detected on this page. Rich results that cannot even be parsed due to syntactic issues will not be listed here.
          items:
            $ref: '#/components/schemas/DetectedItems'
          type: array
      description: Rich-Results inspection result, including any rich results found at this URL.
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    RichResultsIssue:
      description: Severity and status of a single issue affecting a single rich result instance on a page.
      type: object
      properties:
        issueMessage:
          type: string
          description: Rich Results issue type.
        severity:
          type: string
          description: 'Severity of this issue: WARNING, or ERROR. Items with an issue of status ERROR cannot appear with rich result features in Google Search results.'
          enum:
          - SEVERITY_UNSPECIFIED
          - WARNING
          - ERROR
    InspectUrlIndexResponse:
      properties:
        inspectionResult:
          $ref: '#/components/schemas/UrlInspectionResult'
          description: URL inspection results.
      description: Index-Status inspection response.
      type: object
    AmpInspectionResult:
      description: AMP inspection result of the live page or the current information from Google's index, depending on whether you requested a live inspection or not.
      properties:
        pageFetchState:
          type: string
          enum:
          - PAGE_FETCH_STATE_UNSPECIFIED
          - SUCCESSFUL
          - SOFT_404
          - BLOCKED_ROBOTS_TXT
          - NOT_FOUND
          - ACCESS_DENIED
          - SERVER_ERROR
          - REDIRECT_ERROR
          - ACCESS_FORBIDDEN
          - BLOCKED_4XX
          - INTERNAL_CRAWL_ERROR
          - INVALID_URL
          description: Whether or not Google could fetch the AMP.
        lastCrawlTime:
          description: Last time this AMP version was crawled by Google. Absent if the URL was never crawled successfully.
          format: google-datetime
          type: string
        issues:
          items:
            $ref: '#/components/schemas/AmpIssue'
          type: array
          description: A list of zero or more AMP issues found for the inspected URL.
        indexingState:
          description: Whether or not the page blocks indexing through a noindex rule.
          type: string
          enum:
          - AMP_INDEXING_STATE_UNSPECIFIED
          - AMP_INDEXING_ALLOWED
          - BLOCKED_DUE_TO_NOINDEX
          - BLOCKED_DUE_TO_EXPIRED_UNAVAILABLE_AFTER
        ampIndexStatusVerdict:
          description: Index status of the AMP URL.
          enum:
          - VERDICT_UNSPECIFIED
          - PASS
          - PARTIAL
          - FAIL
          - NEUTRAL
          type: string
        ampUrl:
          description: URL of the AMP that was inspected. If the submitted URL is a desktop page that refers to an AMP version, the AMP version will be inspected.
          type: string
        verdict:
          description: The status of the most severe error on the page. If a page has both warnings and errors, the page status is error. Error status means the page cannot be shown in Search results.
          enum:
          - VERDICT_UNSPECIFIED
          - PASS
          - PARTIAL
          - FAIL
          - NEUTRAL
          type: string
        robotsTxtState:
          enum:
          - ROBOTS_TXT_STATE_UNSPECIFIED
          - ALLOWED
          - DISALLOWED
          type: string
          description: Whether or not the page is blocked to Google by a robots.txt rule.
      type: object
    IndexStatusInspectionResult:
      properties:
        indexingState:
          enum:
          - INDEXING_STATE_UNSPECIFIED
          - INDEXING_ALLOWED
          - BLOCKED_BY_META_TAG
          - BLOCKED_BY_HTTP_HEADER
          - BLOCKED_BY_ROBOTS_TXT
          type: string
          description: Whether or not the page blocks indexing through a noindex rule.
        userCanonical:
          type: string
          description: The URL that your page or site [declares as canonical](https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls?#define-canonical). If you did not declare a canonical URL, this field is absent.
        crawledAs:
          description: Primary crawler that was used by Google to crawl your site.
          enum:
          - CRAWLING_USER_AGENT_UNSPECIFIED
          - DESKTOP
          - MOBILE
          type: string
        coverageState:
          description: Could Google find and index the page. More details about page indexing appear in 'indexing_state'.
          type: string
        referringUrls:
          type: array
          description: URLs that link to the inspected URL, directly and indirectly.
          items:
            type: string
        pageFetchState:
          enum:
          - PAGE_FETCH_STATE_UNSPECIFIED
          - SUCCESSFUL
          - SOFT_404
          - BLOCKED_ROBOTS_TXT
          - NOT_FOUND
          - ACCESS_DENIED
          - SERVER_ERROR
          - REDIRECT_ERROR
          - ACCESS_FORBIDDEN
          - BLOCKED_4XX
          - INTERNAL_CRAWL_ERROR
          - INVALID_URL
          description: Whether or not Google could retrieve the page from your server. Equivalent to ["page fetch"](https://support.google.com/webmasters/answer/9012289#index_coverage) in the URL inspection report.
          type: string
        robotsTxtState:
          description: Whether or not the page is blocked to Google by a robots.txt rule.
          type: string
          enum:
          - ROBOTS_TXT_STATE_UNSPECIFIED
          - ALLOWED
          - DISALLOWED
        verdict:
          enum:
          - VERDICT_UNSPECIFIED
          - PASS
          - PARTIAL
          - FAIL
          - NEUTRAL
          description: High level verdict about whether the URL *is* indexed (indexed status), or *can be* indexed (live inspection).
          type: string
        googleCanonical:
          description: The URL of the page that Google selected as canonical. If the page was not indexed, this field is absent.
          type: string
        sitemap:
          description: Any sitemaps that this URL was listed in, as known by Google. Not guaranteed to be an exhaustive list, especially if Google did not discover this URL through a sitemap. Absent if no sitemaps were found.
          items:
            type: string
          type: array
        lastCrawlTime:
          description: Last time this URL was crawled by Google using the [primary crawler](https://support.google.com/webmasters/answer/7440203#primary_crawler). Absent if the URL was never crawled successfully.
          format: google-datetime
          type: string
      type: object
      description: Results of index status inspection for either the live page or the version in Google's index, depending on whether you requested a live inspection or not. For more information, see the [Index coverage report documentation](https://support.google.com/webmasters/answer/7440203).
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/webmasters: View and manage Search Console data for your verified sites
            https://www.googleapis.com/auth/webmasters.readonly: View Search Console data for your verified sites
externalDocs:
  url: https://developers.google.com/webmaster-tools/about
x-provenance:
  method: harvested
  publisher: Google
  source: https://searchconsole.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)