Sites: get
認証が必要です
特定のサイトに関する情報を取得します。
実習をご覧ください。
リクエスト
HTTP リクエスト
GET https://www.googleapis.com/webmasters/v3/sites/siteUrl
パラメータ
パラメータ名 |
値 |
説明 |
パスパラメータ |
siteUrl |
string |
取得するプロパティの URL(Search Console で定義)。例:
http://www.example.com/ (URL プレフィックス プロパティの場合)または
sc-domain:example.com (ドメイン プロパティの場合)
|
承認
このリクエストは、少なくとも次のうち 1 つのスコープでの承認が必要です(認証と承認の詳細をご確認ください)。
スコープ |
https://www.googleapis.com/auth/webmasters.readonly |
https://www.googleapis.com/auth/webmasters |
リクエスト本文
このメソッドをリクエストの本文に含めないでください。
試してみよう:
以下の API Explorer を使用して、ライブデータに対してこのメソッドを呼び出し、レスポンスを確認してください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-26 UTC。
[null,null,["最終更新日 2024-08-26 UTC。"],[[["Retrieves information for a specific website using its URL."],["Requires authorization with `webmasters.readonly` or `webmasters` scope."],["Uses a `GET` request to the `/webmasters/v3/sites/siteUrl` endpoint."],["Returns a `Sites` resource with details about the specified website upon success."],["The `siteUrl` parameter accepts the URL or domain of the site for retrieval."]]],["This resource allows retrieving information about a specific site using its URL. The request is a `GET` method to the specified endpoint, requiring the `siteUrl` as a path parameter. The `siteUrl` can be either a URL-prefix (e.g., `http://www.example.com/`) or a domain property (e.g., `sc-domain:example.com`). Authorization is necessary, using either `webmasters.readonly` or `webmasters` scopes. No request body is needed; a successful response returns a `Sites` resource.\n"]]