API Reference
Stay organized with collections
Save and categorize content based on your preferences.
Google provides several tools to help you develop applications that retrieve YouTube Analytics data.
- Applications should use the YouTube Reporting API if they retrieve data and store it in a data warehouse, then provide tools to filter, sort, and mine that data.
- Applications should use the YouTube Analytics API to retrieve customized reports from YouTube in response to user interaction.
Tools
|
APIs Explorer
|
You can use the APIs Explorer to test and debug API queries. The tool enables you to authorize requests and see API responses.
- For
bulk reports
, some API responses specify URLs from which you can retrieve the actual reports.
- For
targeted query reports
, API responses contain actual YouTube Analytics data.
|
Client libraries
|
Google API client libraries, which are available for many programming languages, can greatly simplify your API implementation. In addition, the
Samples
section of the documentation provides a number of code samples that use the client libraries to retrieve YouTube Analytics data.
The links below point to documentation for Google API client libraries:
|
Code samples
|
The
youtube/api-samples
GitHub repository contains all of the
code samples
accessible via the
Samples
tab.
|
Except as otherwise noted, the content of this page is licensed under the
Creative Commons Attribution 4.0 License
, and code samples are licensed under the
Apache 2.0 License
. For details, see the
Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-12-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]