Google Search Console URL Testing Tools API

The UrlTestingTools API from Google Search Console — 1 operation(s) for urltestingtools.

GitHub OpenAPI

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/urlTestingTools/mobileFriendlyTest:run Run a mobile-friendly test on a URL · Run mobileFriendlyTest #
Ask an LLM
“Does my page pass Google's Mobile-Friendly Test?”
“Can I get a screenshot of how a page renders when testing it for mobile friendliness?”
Tell an agent
Run the Mobile-Friendly Test on {url}.
Test {url} for mobile friendliness and include a screenshot ({requestScreenshot}).

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

Schemas & Data

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-urltestingtools-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-urltestingtools-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Search Console URL Testing Tools 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: UrlTestingTools
paths:
  /v1/urlTestingTools/mobileFriendlyTest:run:
    post:
      operationId: searchconsole.urlTestingTools.mobileFriendlyTest.run
      summary: Run mobileFriendlyTest
      description: Runs Mobile-Friendly Test for a given URL.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunMobileFriendlyTestRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunMobileFriendlyTestResponse'
        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:
      - apiKey: []
      tags:
      - UrlTestingTools
components:
  schemas:
    Image:
      type: object
      properties:
        data:
          format: byte
          description: Image data in format determined by the mime type. Currently, the format will always be "image/png", but this might change in the future.
          type: string
        mimeType:
          description: The mime-type of the image data.
          type: string
      description: Describe image data.
    TestStatus:
      type: object
      properties:
        details:
          description: Error details if applicable.
          type: string
        status:
          description: Status of the test.
          enum:
          - TEST_STATUS_UNSPECIFIED
          - COMPLETE
          - INTERNAL_ERROR
          - PAGE_UNREACHABLE
          type: string
      description: Final state of the test, including error details if necessary.
    BlockedResource:
      type: object
      properties:
        url:
          description: URL of the blocked resource.
          type: string
      description: Blocked resource.
    ResourceIssue:
      description: Information about a resource with issue.
      properties:
        blockedResource:
          $ref: '#/components/schemas/BlockedResource'
          description: Describes a blocked resource issue.
      type: object
    RunMobileFriendlyTestRequest:
      description: Mobile-friendly test request.
      properties:
        url:
          description: URL for inspection.
          type: string
        requestScreenshot:
          description: Whether or not screenshot is requested. Default is false.
          type: boolean
      type: object
    RunMobileFriendlyTestResponse:
      description: Mobile-friendly test response, including mobile-friendly issues and resource issues.
      type: object
      properties:
        mobileFriendlyIssues:
          items:
            $ref: '#/components/schemas/MobileFriendlyIssue'
          type: array
          description: List of mobile-usability issues.
        resourceIssues:
          description: Information about embedded resources issues.
          type: array
          items:
            $ref: '#/components/schemas/ResourceIssue'
        mobileFriendliness:
          description: Test verdict, whether the page is mobile friendly or not.
          type: string
          enum:
          - MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED
          - MOBILE_FRIENDLY
          - NOT_MOBILE_FRIENDLY
        testStatus:
          $ref: '#/components/schemas/TestStatus'
          description: Final state of the test, can be either complete or an error.
        screenshot:
          $ref: '#/components/schemas/Image'
          description: Screenshot of the requested URL.
    MobileFriendlyIssue:
      description: Mobile-friendly issue.
      properties:
        rule:
          type: string
          description: Rule violated.
          enum:
          - MOBILE_FRIENDLY_RULE_UNSPECIFIED
          - USES_INCOMPATIBLE_PLUGINS
          - CONFIGURE_VIEWPORT
          - FIXED_WIDTH_VIEWPORT
          - SIZE_CONTENT_TO_VIEWPORT
          - USE_LEGIBLE_FONT_SIZES
          - TAP_TARGETS_TOO_CLOSE
      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
  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)