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
Create a new key:
- Open the Google API Console.
- Create or select a project.
- 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.
- 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:
The API key is safe to use in the clear; it does not need to be encoded.