It may be an old thread, but I came across it and decided that I would give a definitive answer.
twitch api is based on json and in order to get your stream key you need to authorize your application for use with api. You do this on the connections tab in your profile directly on twitch.tv. At the bottom of this tab is “register an application” or something similar. Register it and you will get a client id header for your receiving requests.
Now you need to attach your Oauthv2 key to your headers or as a parameter during the request to the next receive request.
curl -H 'Accept: application / vnd.twitchtv.v3 + json' -H 'Authorization: OAuth' \ -X GET https://api.twitch.tv/kraken/channel
documentation here
As you can see in the above documentation, if you did these two things, your stream key will be available to you.
As I said - Sorry for the hit, but some people find it difficult to read jerking * api.
Hope this helps someone in the future.
Gabe
source share