Google

Accelerated Mobile Pages (AMP) URL API

Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).

Developer tools#openapi#analytics#media

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).

Endpoints 1

ampUrls

  • POSTReturns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format)./v1/ampUrls:batchGetReturns AMP URL(s) and equivalent AMP Cache URL(s).

API details

Base URL
https://acceleratedmobilepageurl.googleapis.com
Authentication
OAuth 2.0 (authorization code flow)
An API key in the key query parameter
Operations
1 operation on 1 pathPOST 1
Main resources
ampUrls 1
Response formats
application/json
Description format
Google API Discovery, API version v1

How to test the Accelerated Mobile Pages (AMP) URL API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Accelerated Mobile Pages (AMP) URL API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow). Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).” (POST /v1/ampUrls:batchGet), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Accelerated Mobile Pages (AMP) URL API?

Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s). It is listed under Developer tools and has 1 endpoint.

Who publishes the Accelerated Mobile Pages (AMP) URL API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Accelerated Mobile Pages (AMP) URL API?

Requests go to https://acceleratedmobilepageurl.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the Accelerated Mobile Pages (AMP) URL API?

It accepts 2 methods: OAuth 2.0 (authorization code flow); an API key in the key query parameter.

How many endpoints does the Accelerated Mobile Pages (AMP) URL API have?

1 operation on 1 path (1 POST). The largest groups are ampUrls.

Is forking the Accelerated Mobile Pages (AMP) URL API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.