Jerry Hardaway
Jerry Hardaway

Reputation: 267

YouTube Analytics API Questions

I'm new to the YouTube Analytics API, and had a couple of questions:

Any help would be greatly appreciated!

Upvotes: 5

Views: 1658

Answers (1)

Jeff Posnick
Jeff Posnick

Reputation: 56034

  • The recommended approach is to do a channels.list(mine=true). The first result returned will be the channel corresponding to the currently authorized user. (channels.list() returns a list of channels because there are other combinations of request parameters that could result in more than one channel being returned.)

  • Going back to some arbitrary date in the past should be harmless. 2005, 2000, etc. The YouTube Analytics backend should know how to properly deal with that, and you'll obviously only get stats that date back to the first views associated with your channel.

  • The value of the ids= parameter tells the API whether you want to do a report against a channel associated with the current authorized user (ids=channel==UC...) or against channels/videos that you have access to as a CMS content owner (ids=contentOwner==CONTENT_OWNER_NAME).

Upvotes: 4

Related Questions