Batch Get

Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format)

2 variables
8 variables

Returns AMP URL(s) and equivalent AMP Cache URL(s)

Input

This building block consumes 2 input parameters

  = Parameter name
  = Format

lookupStrategy ENUMERATION

The lookup_strategy being requested

urls[] STRING

Output

This building block provides 8 output parameters

  = Parameter name
  = Format

ampUrls[] OBJECT

AMP URL response for a requested URL

ampUrls[].cdnAmpUrl STRING

The AMP Cache URL pointing to the cached document in the Google AMP Cache

ampUrls[].originalUrl STRING

The original non-AMP URL

ampUrls[].ampUrl STRING

The AMP URL pointing to the publisher's web server

urlErrors[] OBJECT

AMP URL Error resource for a requested URL that couldn't be found

urlErrors[].errorMessage STRING

An optional descriptive error message

urlErrors[].errorCode ENUMERATION

The error code of an API call

urlErrors[].originalUrl STRING

The original non-AMP URL