API to create / publish / end streams

Does Twitch have a live video API similar to Facebook (https://developers.facebook.com/docs/graph-api/reference/live-video/#Creating)? I browsed around at https://dev.twitch.tv/docs, both for the new API and v5, I couldn’t find it.

You create/publish a stream by starting/sending data to the injest Server.

You end a stream by stopping sending data to the injest servers.

There’s nothing more to it than that

Thanks @BarryCarlyon. Do you know how I can get the stream_key programmatically? I’m trying to build an app that users can log in with their Twitch credentials and start broadcasting without manual setup. Essentially I would like to setup an OAuth flow (see image below), get the stream_key and ingest url, also connect to chats. API docs don’t seem to have these details.


When passing an oauth with key access

Thank you very much! That’s what I’ve been looking for.

The “Get Channel” request is a part of v5 API, does that mean it will be deprecated completely or will the new API have an alternative?


Yes to both?


1 Like

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