scuba_diving欢迎您于 7 月 23 日至 25 日参加我们在曼谷举办的首届为期 3 天的 SEO 会议,
与我们一起深入探讨!
立即报名参加 2025 年 Search Central Live Deep Dive 活动。
Method: urlNotifications.publish
HTTP 请求
POST https://indexing.googleapis.com/v3/urlNotifications:publish
该网址采用 Google API HTTP 注释语法。
请求正文
请求正文包含 UrlNotification
实例。
响应正文
如果成功的话,响应正文包含具有以下结构的数据:
urlNotifications.publish 的输出
字段 |
urlNotificationMetadata |
object(UrlNotificationMetadata )
针对此网址收到的通知事件的说明。
|
授权作用域
需要以下 OAuth 作用域:
https://www.googleapis.com/auth/indexing
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-17。
[null,null,["最后更新时间 (UTC):2025-02-17。"],[[["The Indexing API's `urlNotifications.publish` endpoint allows you to notify Google about URL updates or deletions."],["Requests are sent as HTTP POST to `https://indexing.googleapis.com/v3/urlNotifications:publish` with a request body containing a `UrlNotification` object."],["Successful responses provide metadata about the notification events received for the URL in the form of a `UrlNotificationMetadata` object."],["Authorization requires the `https://www.googleapis.com/auth/indexing` OAuth scope."]]],["The core content describes a URL notification system using the Google Indexing API. It details a `POST` request to `https://indexing.googleapis.com/v3/urlNotifications:publish` to notify about URL updates or deletions. The request body utilizes `UrlNotification`, and a successful response contains `urlNotificationMetadata`. Authorization requires the `https://www.googleapis.com/auth/indexing` OAuth scope. The API provides a feature to try out directly and conforms to the google API HTTP annotation.\n"]]