Get the latest subscriber
/helix/subscriptions?broadcaster_id=USER_ID doesn't return the data from the most recent to the oldest subscriber.
We could maybe use
/helix/subscriptions/events?broadcaster_id=ID but the data here apparently doesn't last more than 5 days or so. This doesn't work for small streamers who don't have a lot of subscribers coming on a daily basis, for example.
- Create an "order" parameter to the first endpoint, so we could use like
- Make the second endpoint return the latest "forever".
The first endpoint seems buggy, the data being returned comes in random order and the pagination cursor is always present, even if I clearly don't have more results or that's the last page. According to the docs, the pagination cursor should don't return anything in that case.
Even If I use the pagination cursor to fetch ALL subscribers, with 100 results per page, it wouldn't be worth doing 10 calls if a streamer has 1000+ subscribers just to get the latest, for example, this would take A LOT of time to go through all those pages.