API to retrieve ingestion endpoints


I am wondering if there is a public API to get the following data, to programmatically create an RTMP url used to stream to a particular users account.

If possible, I’d like to do the following with my application:
-Authenticate a particular user
-Retrieve a list of ingestion endpoints
-Retrieve a stream key to append to the ingestion endpoint
-Send data to said endpoint.

Is this possible? Cheers :slight_smile:

Authentication: https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#oauth-authorization-code-flow

Ingests: https://dev.twitch.tv/docs/v5/reference/ingests/

Get stream key: https://dev.twitch.tv/docs/v5/reference/channels/#get-channel

Sending data to that endpoint is just an RTMP connection, which you can do through ffmpeg directly or a library/app of your choice to handle that.

1 Like

Thank you so much! It seems the ingest API is only available with the v5 API, not the new socket-based API. Does that mean it’ll be deprecated soon?


The new API isn’t socket-based, it’s a REST API just like v3 and v5. But yes, being a v5 endpoint does mean that it is deprecated and currently there are no endpoints in the new API (Helix) for getting a list of ingest servers.

Oi, I have no idea where I got the socket idea. I must have gotten some wires crossed with another API.

Anyways, thanks again. :slight_smile:

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