Method: urlNotifications.getMetadata

  • Retrieves metadata about web documents previously notified to the Indexing API.

  • Uses a GET request with the target URL as a query parameter.

  • Requires an empty request body and returns UrlNotificationMetadata upon success.

  • Needs authorization with the https://www.googleapis.com/auth/indexing scope.

  • Provides a "Try it!" section for practical exploration.

Gets metadata about a Web Document. This method can only be used to query URLs that were previously seen in successful Indexing API notifications. Includes the latest UrlNotification received via this API.

HTTP request

GET https://indexing.googleapis.com/v3/urlNotifications/metadata

The URL uses Google API HTTP annotation syntax.

Query parameters

Parameters
url

string

URL that is being queried.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of UrlNotificationMetadata.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/indexing

Try it!