New Twitch API - Invalid value for offset: 1020

Hi there, I am using the New Twitch API to investigate some engagement stats on a certain game.

Overall things are working well, but at some point when I try get a list of all related videos I get:

{"error":"Bad Request","status":400,"message":"{\n \"error\": \"Invalid value for offset: 1020\",\n \"message\": \"Invalid value for offset: 1020\",\n \"status\": 400\n}

You get this when running for instance in Terminal:

curl -H 'Client-ID: afogptx4n2eq4aszz2snqv5lvuk5en' \
-X GET ''

eyJiIjp7Ik9mZnNldCI6OTgwfSwiYSI6eyJPZmZzZXQiOjEwMjB9fQ was the cursor I got in the previous query. Is this because I am hitting ~ 1000 videos?


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