Sitemaps: get

需要授权

检索特定站点地图的相关信息。 立即尝试

请求

HTTP 请求

GET https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath

参数

参数名称 说明
路径参数
feedpath string 实际站点地图的网址。例如:http://www.example.com/sitemap.xml
siteUrl string Search Console 中定义的资源网址。例如:http://www.example.com/网址前缀资源)或 sc-domain:example.com网域资源)。

授权

此请求需要获得以下至少一个范围的授权(详细了解身份验证和授权)。

范围
https://www.googleapis.com/auth/webmasters.readonly
https://www.googleapis.com/auth/webmasters

请求正文

使用此方法时请勿提供请求正文。

响应

如果成功,此方法会在响应正文中返回站点地图资源

试试看!

请使用下面的 API Explorer 对实时数据调用此方法并查看响应。