0

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"
    }
  ]
}
Community
  • 1
  • 1

1 Answers1

0

Use API Explorer instead of Youtube API TRy-it

I ran the link you gave with your parameters filled-in. Authorized and executed it and here's what I got:

enter image description here

which indicates that you have:

0 dislikes
5 likes
98 views
ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56