Sites: list
需要授權
列出使用者的 Search Console 網站。
立即試用。
要求
HTTP 要求
GET https://www.googleapis.com/webmasters/v3/sites
授權
這項要求需要至少擁有下列其中一個範圍的授權 (進一步瞭解驗證和授權)。
範圍 |
https://www.googleapis.com/auth/webmasters.readonly |
https://www.googleapis.com/auth/webmasters |
要求主體
請勿使用這個方法提供請求主體。
回應
如果成功的話,這個方法會傳回回應內文,其結構如下:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-24 (世界標準時間)。
[null,null,["上次更新時間:2024-08-24 (世界標準時間)。"],[[["Lists the Search Console sites that a user has access to, along with their permission levels."],["Requires authorization using specific scopes to access the data."],["Uses a simple `GET` request to retrieve the list of sites."],["Returns a response containing an array of `siteEntry` objects, each representing a Search Console site with its associated permissions."]]],["This document outlines how to list a user's Search Console sites via the Webmasters API v3. The `GET` request to `https://www.googleapis.com/webmasters/v3/sites` requires authorization using either the `webmasters.readonly` or `webmasters` scope. No request body is needed. A successful response returns a JSON object containing a `siteEntry` list. Each entry details permission level information for a Search Console site. The provided link gives more information on Search Console permissions.\n"]]