WebResource: list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
需要授權
取得已驗證使用者的已驗證網站和網域清單。
立即試用。
系統只會傳回已驗證使用者所擁有的網站。
要求
HTTP 要求
GET https://www.googleapis.com/siteVerification/v1/webResource
授權
此要求需要獲得下列範圍的授權 (進一步瞭解驗證和授權)。
範圍 |
https://www.googleapis.com/auth/siteverification |
要求主體
請勿使用這個方法提供請求主體。
回應
如果成功的話,這個方法會傳回回應內文,其結構如下:
試試看!
使用下方的 APIs Explorer,針對即時資料呼叫這個方法,看看會有什麼結果。
您也可以改用
獨立式
Explorer。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eRetrieves a list of verified websites and domains owned by the authenticated user.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/siteverification\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes an array of \u003ccode\u003ewebResource\u003c/code\u003e objects representing the user's verified sites.\u003c/p\u003e\n"],["\u003cp\u003eOnly sites owned by the authenticated user are returned in the response.\u003c/p\u003e\n"]]],["This API endpoint retrieves a list of websites and domains verified by the authenticated user. It requires authorization with the `https://www.googleapis.com/auth/siteverification` scope. A `GET` request is sent to `https://www.googleapis.com/siteVerification/v1/webResource` without a request body. Upon success, the response body contains an array called \"items\", listing the web resources owned by the user. The endpoint does not permit the user to send any request body.\n"],null,["# WebResource: list\n\n**Requires [authorization](#auth)**\n\nGets the list of the authenticated user's verified websites and domains.\n[Try it now](#try-it).\n\nOnly sites that are owned by the authenticated user are returned.\n\nRequest\n-------\n\n### HTTP request\n\n```\nGET https://www.googleapis.com/siteVerification/v1/webResource\n```\n\n### Authorization\n\nThis request requires authorization with the following scope ([read more about authentication and authorization](/site-verification/v1/getting_started#auth)).\n\n| Scope |\n|----------------------------------------------------|\n| `https://www.googleapis.com/auth/siteverification` |\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```objective-c\n{\n \"items\": [\n webResource Resource\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|--------|-------------------------------------------------------------|-------|\n| `items[]` | `list` | The list of sites that are owned by the authenticated user. | |\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response.\nAlternatively, try the\n[standalone\nExplorer](https://developers.google.com/apis-explorer/#p/siteVerification/v1/siteVerification.webResource.list)."]]