Get Ad Schedule

next_ad_at
String
The UTC timestamp of the broadcaster’s next scheduled ad, in RFC3339 format. Empty if the channel has no ad scheduled or is not live.

The timestamp I receive is not in RFC3339 format. I receive a unix timestamp like 1728825458 instead. Please also check the fields last_ad_at and snooze_refresh_at. Thank you!

documentation is incorrect pending a fix to the documentation

Maybe it’s not the documentation that should be fixed here. Other API endpoints do indeed return timestamps in RFC3339 format. Would be nice if it would be consistent.

#961 describes exactly my issue and is NOT a duplicate of #857

They can’t change an API thats in general use by everyone as these endpoints are GA/General Availability.

as everyone at this point is expecting unix timestamps

Hence 961 was closed.

So I don’t think or expect them to change the API here

I don’t know how much this endpoint is really used but I do understand. Still - the two issues are not really duplicates. One is about some fields having the wrong type. The other one is about other fields (of the same endpoint) delivering the wrong format. Even if only the documentation can be changed, then the two issues still talk about different fields that need fixing in the documentation.

Appreciate the quick replies. Thank you very much. I’ll rely on the unix timestamps in this endpoint then (which is weird because inconsistent) but I can live with it.

This part is also not correct:

Empty if the channel has no ad scheduled or is not live.

For next_ad_at we do receive a timestamp if the channel is not live. We shouldn’t.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.