YouTube Reporting API
  1. reportTypes
YouTube Reporting API
  • jobs
    • /v1/jobs
      GET
    • /v1/jobs
      POST
    • /v1/jobs/{jobId}
      DELETE
    • /v1/jobs/{jobId}
      GET
    • /v1/jobs/{jobId}/reports
      GET
    • /v1/jobs/{jobId}/reports/{reportId}
      GET
  • media
    • /v1/media/{resourceName}
      GET
  • reportTypes
    • /v1/reportTypes
      GET
  1. reportTypes

/v1/reportTypes

GET
/v1/reportTypes
reportTypes
Lists report types.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://youtubereporting.googleapis.com//v1/reportTypes'
Response Response Example
{
  "nextPageToken": "string",
  "reportTypes": [
    {
      "deprecateTime": "string",
      "id": "string",
      "name": "string",
      "systemManaged": true
    }
  ]
}

Request

Query Params
includeSystemManaged
string 
optional
If set to true, also system-managed report types will be returned; otherwise only the report types that can be used to create new reporting jobs will be returned.
onBehalfOfContentOwner
string 
optional
The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).
pageSize
integer 
optional
Requested page size. Server may return fewer report types than requested. If unspecified, server will pick an appropriate default.
pageToken
string 
optional
A token identifying a page of results the server should return. Typically, this is the value of ListReportTypesResponse.next_page_token returned in response to the previous call to the ListReportTypes method.

Responses

🟢200Successful response
application/json
Body
Response message for ReportingService.ListReportTypes.
nextPageToken
string 
optional
A token to retrieve next page of results. Pass this value in the ListReportTypesRequest.page_token field in the subsequent call to ListReportTypes method to retrieve the next page of results.
reportTypes
array[object (ReportType) {4}] 
optional
The list of report types.
deprecateTime
string <google-datetime>
optional
The date/time when this report type was/will be deprecated.
id
string 
optional
The ID of the report type (max. 100 characters).
name
string 
optional
The name of the report type (max. 100 characters).
systemManaged
boolean 
optional
True if this a system-managed report type; otherwise false. Reporting jobs for system-managed report types are created automatically and can thus not be used in the CreateJob method.
Previous
/v1/media/{resourceName}
Built with