Get streams summary replacement in new api?

GET https://api.twitch.tv/kraken/streams/summary

I tired this endpoint in helix to no avail. Is there a replacement or do I have to count every stream?

Works ok for me:

{
"channels": 24585,
"viewers": 743808
}

Make sure your request includes the v5 accept header

curl -H 'Accept: application/vnd.twitchtv.v5+json' \
-H 'Client-ID: uo6dggojyb8d6soh92zknwmi5ej1q2' \
-X GET 'https://api.twitch.tv/kraken/streams/'

hello barry,
i think it’s deprecated now,i get 410 error

You get a 410 if you omit the v5 header

Works fine here:

summary:

Please read

The migration guide:

The documentation for this endpoint

Note the requirement to specify two headers

A ClientID and an Accept header

1 Like

no i get it with v5 header :confused:
image

Your code is wrong.

request.Accept should be request.Headers.Add

sorry barry but it works good like this …
i’m using System.Net.Http,so it works

i found the problem and it work’s perfectly :smiley:
image
image

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