Get Started with the Search Console URL Testing Tools API

There are several options for how to start using the Search Console URL Testing Tools API.

The one-minute experience

APIs Explorer in your browser

To try out the API quickly in your browser, without writing any code, use the APIs Explorer.

curl on the command line

You can use the curl on the command line to test out running your commands. To use curl:

  1. Get an API client key
  2. On the command-line, run the following command, substituting your own API key and the URL of a page to test.
    curl -H 'Content-Type: application/json' --data '{url: "YOUR_URL"}' 'https://searchconsole.googleapis.com/v1/urlTestingTools/mobileFriendlyTest:run?key=YOUR_API_KEY'

The one-hour experience

For a step-by-step tutorial explaining how to get up and running, follow the instructions in Your First App.

Reference

To look up a particular resource type or method, see the Reference.