Platforms · Twitch

Twitch User Schedule Scraper API

Returns the upcoming stream schedule for a Twitch user: each entry includes start time, end time, title, description, and thumbnail URL.

GET /api/v1/data/twitch/user-schedule · 1 credit per call · The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Inputs

  • handle (required): Twitch username.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.__typename (string)
  • source_data.broadcastSettings (object): The title the channel currently has set.
  • source_data.broadcastSettings.__typename (string)
  • source_data.broadcastSettings.id (string): The broadcast settings id.
  • source_data.broadcastSettings.title (string): The stream title the channel last set.
  • source_data.channel (object): The channel and its published schedule.
  • source_data.channel.__typename (string)
  • source_data.channel.id (string): The channel's id.
  • source_data.channel.schedule (object): The channel's stream schedule, or null when the channel has not published one.
  • source_data.channel.schedule.segments (array): The upcoming scheduled streams.
  • source_data.id (string): The user's numeric Twitch id.
  • source_data.lastBroadcast (object): The channel's most recent broadcast, or null when it has never streamed.
  • source_data.lastBroadcast.__typename (string)
  • source_data.lastBroadcast.id (string): The last broadcast's id.
  • source_data.lastBroadcast.startedAt (string): When the last broadcast started, as an ISO 8601 timestamp.
  • source_data.primaryColorHex (string): The channel's accent colour as a hex code without the leading #.
  • source_data.stream (any): Null when the channel is offline.
  • source_data.videos (object)
  • source_data.videos.__typename (string)
  • source_data.videos.edges (array): The channel's latest past broadcasts.
  • source_data.videos.edges.__typename (string)
  • source_data.videos.edges.node (object): The video.
  • source_data.videos.edges.node.__typename (string)
  • source_data.videos.edges.node.createdAt (string): When the video was created, as an ISO 8601 timestamp.
  • source_data.videos.edges.node.game (object): The category the video was streamed in.
  • source_data.videos.edges.node.game.__typename (string)
  • source_data.videos.edges.node.game.id (string): The category's Twitch id.
  • source_data.videos.edges.node.game.name (string): The category name, such as Just Chatting.
  • source_data.videos.edges.node.game.slug (string): The category's URL slug.
  • source_data.videos.edges.node.id (string): The video's id.
  • source_data.videos.edges.node.lengthSeconds (integer): The video length in seconds.
  • source_data.videos.edges.node.previewThumbnailURL (string): A thumbnail image for the video.
  • source_data.videos.edges.node.title (string): The video title.
  • source_data.videos.edges.node.viewCount (integer): How many times the video has been viewed.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 1 credit. A call that finds nothing, or fails, is free.
  • The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Example call

GET /api/v1/data/twitch/user-schedule?handle=kaicenat

Questions

How much does the Twitch User Schedule API cost?

Each call costs 1 credit. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send handle. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Do I need a Twitch account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Twitch endpoints

  • User Videos: List a Twitch user's videos. 1 credit a call

More Twitch scraper APIs