I'm using the APIs explorer to call the analytics API. See here.
These are the fields filled in:
ids: channel==MINE
start date: 2016-01-01
end date: 2017-11-11
metrics: dislikes,likes, fields
fields: columnHeaders,kind,rows
It's able to authenticate successfully, and returns the rowheaders. However, there are no metrics returned as part of the response (see below). Am I missing something in the parameters?
This post said rows will not be returned if there are no data - ROWS not returning in Youtube Analytics API?.
However, I do have one video uploaded to my channel.
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": "dislikes",
"columnType": "METRIC",
"dataType": "INTEGER"
},
{
"name": "likes",
"columnType": "METRIC",
"dataType": "INTEGER"
},
{
"name": "views",
"columnType": "METRIC",
"dataType": "INTEGER"
}
]
}