curl -H "Client-ID: " -H ‘Accept: application/vnd.twitchtv.v5+json’ -X GET ‘https://api.twitch.tv/kraken/streams/?limit=1’
This returns the below. All well and good.
{
"_total":27568,
"streams":[
{
"_id":24260093376,
.
.
.
"channel":
{
.
.
.
}
},
{
.
.
.
}
]
}'
But if I take this ID, changing the url to ‘https://api.twitch.tv/kraken/streams/24260093376’, I get this.
{
"stream":null
}
And I know that’s the response if they’re offline. However, I’ve double checked they are online before and after, and have received the same response each time. Am I doing something wrong? The docs say the proper request is -X GET ‘https://api.twitch.tv/kraken/streams/7236692’ which I am doing.