Every request your application sends to the Google AMP URL API needs to identify your application to Google. Identify your application using the application's API key.
Acquire and use an API key
An API key must accompany requests to the Google AMP URL API for public data.
The API key identifies your project and provides API access, quota, and reports. To acquire an API key, do the following:
- Open the Credentials page.
- Create and use a Server key. Do not use this key outside of your server code. For example, do not embed it in a web page. To prevent quota theft, restrict your key so that requests are only allowed from your servers' source IP addresses.
To keep your API keys secure, follow the best practices for securely using API keys.
After you have an API key,
your application can append the query parameter
to all request URLs.
The API key is safe for embedding in URLs; it doesn't need any encoding.