YouTube アナリティクスと Reporting API を更新し、YouTube のショート動画の視聴回数のカウント方法に合わせています。
詳細
Method jobs.reports.get
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リクエスト
HTTP リクエスト
GET https://youtubereporting.googleapis.com/v1/jobs/{jobId}/reports/{reportId}
承認
すべての YouTube Reporting API のリクエストは承認される必要があります。認可ガイドでは、OAuth 2.0 プロトコルを使用して認証トークンを取得する方法を説明しています。
YouTube Reporting API のリクエストでは、次の認証スコープを使用します。
スコープ |
https://www.googleapis.com/auth/yt-analytics.readonly |
YouTube コンテンツの YouTube アナリティクス レポートを表示します。このスコープは再生回数や評価数など、ユーザー アクティビティの指標へのアクセスを提供します。 |
https://www.googleapis.com/auth/yt-analytics-monetary.readonly |
YouTube コンテンツに関する YouTube アナリティクス収益レポートを表示します。このスコープでは、ユーザー アクティビティの指標や、収益と広告パフォーマンスの推定指標を確認できます。 |
パラメータ
パスパラメータ
パラメータ |
jobId |
string
YouTube が取得するレポートに関連するジョブを一意に識別するために使用する ID。 |
reportId |
string
YouTube が取得対象のレポートを一意に識別するために使用する ID。 |
クエリ パラメータ
パラメータ |
onBehalfOfContentOwner |
string
API リクエストを行うコンテンツ所有者の ID。リクエストでこのパラメータの値が指定されていない場合、API サーバーは、ユーザー自身のチャンネルに対するリクエストであると想定します。 |
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンス
成功した場合、レスポンスの本文には Report リソースが含まれます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-02-22 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2023-02-22 UTC。"],[[["This endpoint retrieves metadata for a specific report using its `jobId` and `reportId`."],["Authorization is required for all requests, utilizing OAuth 2.0 and specific scopes like `https://www.googleapis.com/auth/yt-analytics.readonly` or `https://www.googleapis.com/auth/yt-analytics-monetary.readonly`."],["Path parameters `jobId` and `reportId` are required to identify the job and the report being retrieved."],["The `onBehalfOfContentOwner` query parameter allows specifying a content owner ID, otherwise, the request defaults to the user's own channel."],["A successful response returns a `Report` resource containing the report's metadata."]]],["This describes how to retrieve metadata for a specific YouTube report using the Reporting API. A `GET` request is sent to a URL containing the `jobId` and `reportId`. Authorization is required using OAuth 2.0, with scopes for viewing analytics and/or monetary reports. The request can also specify a `content owner` using `onBehalfOfContentOwner`. The request body is empty. A successful response returns a `Report` resource.\n"]]