Sitemaps: get

需要授權

擷取特定 Sitemap 的相關資訊。 立即試用

要求

HTTP 要求

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

參數

參數名稱 說明
路徑參數
feedpath string 實際 Sitemap 的網址。例如: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

要求主體

請勿使用這個方法提供要求主體。

回應

如果成功的話,這個方法會在回應主體中傳回 Sitemap 資源

試試看!

您可以使用下方的 APIs Explorer,針對即時資料呼叫這個方法,然後查看回應。