Question about created_at

Hello everyone. I’ve got a quick question about the created_at key in the kraken API.

I’ve been reading that you can use the created_at key to generate an !uptime sort of command. I’m not asking for technical help on how to do that, that all makes sense to me. However whenever I reference the created_at key on a stream, it seems to be very old. Possibly when the account was actually created?

For instance, for user angrypug_, his JSON return looks like:

{ mature: false, status: "Survivor ONLY - Rank 1 - Prestige 3 Dwight Max Perks", broadcaster_language: "en", display_name: "ANGRYPUG_", game: "Dead by Daylight", language: "en", _id: 63164470, name: "angrypug_", created_at: "2014-05-26T00:37:27Z", updated_at: "2016-08-15T18:04:36Z", delay: null, logo: "https://static-cdn.jtvnw.net/jtv_user_pictures/angrypug_-profile_image-84ae9fadb836b01f-300x300.jpeg", banner: null, video_banner: "https://static-cdn.jtvnw.net/jtv_user_pictures/angrypug_-channel_offline_image-4cf24edaa15bce5c-1920x1080.jpeg", background: null, profile_banner: "https://static-cdn.jtvnw.net/jtv_user_pictures/angrypug_-profile_banner-e20a61bb0088dcad-480.jpeg", profile_banner_background_color: null, partner: true, url: "https://www.twitch.tv/angrypug_", views: 4076856, followers: 121184, _links: { self: "https://api.twitch.tv/kraken/channels/angrypug_", follows: "https://api.twitch.tv/kraken/channels/angrypug_/follows", commercial: "https://api.twitch.tv/kraken/channels/angrypug_/commercial", stream_key: "https://api.twitch.tv/kraken/channels/angrypug_/stream_key", chat: "https://api.twitch.tv/kraken/chat/angrypug_", subscriptions: "https://api.twitch.tv/kraken/channels/angrypug_/subscriptions", editors: "https://api.twitch.tv/kraken/channels/angrypug_/editors", teams: "https://api.twitch.tv/kraken/channels/angrypug_/teams", videos: "https://api.twitch.tv/kraken/channels/angrypug_/videos" } }

This user started a stream this morning, however his created_at key shows the year 2014, and not actually when the stream started.

Am I missing something entirely?

You want to use created_at under the /streams endpoint not /channels.

siiigh. Thank you very much :slight_smile:

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