Hey!
Is it possible to get the last (newest) subscription with /helix/subscriptions
endpoint? I know that it was possible in kraken using the /kraken/channels/channel_id/subscriptions
endpoint with direction=desc
parameter, the first element in returned array was the last subscription, but it appears like this was recently changed, since now when I call /kraken/channels/channel_id/subscriptions?direction=desc
the subscriptions seem to be ordered randomly.
Use the Subscriber events API
It’s missing from the main docs, but it is in the Webhook docs and works as a endpoint it’s just missing from the docs
https://dev.twitch.tv/docs/api/webhooks-reference#topic-subscription-events
So call
https://api.twitch.tv/helix/subscriptions/events?broadcaster_id=BroadcasterID
And that’ll give you recent events, most recent first.
You’ll just have to filter out for what you need
The docs error is noted here
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.