3

For YouTube Analytics API, there is a "day" dimension that can be used to break down metrics by day.

My question is

  • What timezone is used in order to aggregate data into "day" buckets? The user's timezone or some fixed timezone like PST.
  • Is DST handled properly with these daily aggregations?
Jerry Hardaway
  • 267
  • 3
  • 11

1 Answers1

4

YouTube Analytics (and the API) uses the Pacific time zone (PDT/PST) for all reports, regardless of anything about the channel or the user running the report.

It does handle daylight savings time as you'd expect.

Jeff Posnick
  • 53,580
  • 14
  • 141
  • 167
  • Thanks Jeff! What's the typical lag time for aggregations? In other words, if I query for a report using the day dimension using a date range that ends with today, will I get data back for today? Yesterday? etc. – Jerry Hardaway Jan 08 '13 at 06:25
  • Please see http://stackoverflow.com/questions/13018142/latency-with-youtube-analytics-api – Jeff Posnick Jan 08 '13 at 16:13
  • For people as confused as me: Is this just UTC-08:00 or do I need to observe daylight saving times? – yankee Jun 18 '15 at 15:24
  • It might be UTC-08:00 or UTC-07:00 depending on whether DST is in effect in the Pacific Time Zone. If you use a library to get the current time offsets for that time zone you should be fine. – Jeff Posnick Jun 18 '15 at 15:41
  • Joda time [lists 9 time zones in UTC-8](http://joda-time.sourceforge.net/timezones.html). Which one would it be? – yankee Jun 18 '15 at 15:49
  • America/Los_Angeles should be fine. – Jeff Posnick Jun 18 '15 at 15:50