AI-generated Key Takeaways
-
Retrieves metadata about web documents previously notified to the Indexing API.
-
Uses a
GETrequest with the target URL as a query parameter. -
Requires an empty request body and returns
UrlNotificationMetadataupon success. -
Needs authorization with the
https://www.googleapis.com/auth/indexingscope. -
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 |
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