Get an API Key

The Search Console URL Testing Tools API doesn't require authorization, but it does require usage of an API key. You can see samples of setting the API key in the documentation for your language-specific library.

To get a key

Reuse an existing API key:

  • Browse existing keys

OR

Create a new key:

  1. Open the Google API Console.
  2. Create or select a project.
  3. On the Credentials page, get an existing API key or create a new one (Create credentials > API key). You can restrict the key before using it in production by clicking Restrict key.
  4. To prevent quota theft, secure your API key following these best practices.

Use your key in code, or append it to your query URL as a parameter: key=<yourAPIkey>. The API key is safe to use in the clear; it does not need to be encoded.