# Using the 'before' query parameter when fetching clips always gives me 400 - Bad Request

**URL:** <https://discuss.dev.twitch.com/t/using-the-before-query-parameter-when-fetching-clips-always-gives-me-400-bad-request/20413>\
**Category:** API\
**Created:** [March 8, 2019, 11:22pm UTC](https://discuss.dev.twitch.com/t/using-the-before-query-parameter-when-fetching-clips-always-gives-me-400-bad-request/20413 "2019-03-08T23:22:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_Siffert](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@Marco\_Siffert](https://discuss.dev.twitch.com/u/Marco_Siffert)\
**Post date:** [March 8, 2019, 11:22pm UTC](https://discuss.dev.twitch.com/t/using-the-before-query-parameter-when-fetching-clips-always-gives-me-400-bad-request/20413/1 "2019-03-08T23:22:39Z")

</div>

The following request works without a problem:  
[https://api.twitch.tv/helix/clips?game\_id=32399&before=eyJiIjpudWxsLCJhIjp7IkN1cnNvciI6Ik1USXcifX0&first=20](https://api.twitch.tv/helix/clips?game_id=32399&before=eyJiIjpudWxsLCJhIjp7IkN1cnNvciI6Ik1USXcifX0&first=20)

But this does not, with the same cursor and game id:

[https://api.twitch.tv/helix/clips?game\_id=32399&after=eyJiIjpudWxsLCJhIjp7IkN1cnNvciI6Ik1USXcifX0&first=20](https://api.twitch.tv/helix/clips?game_id=32399&after=eyJiIjpudWxsLCJhIjp7IkN1cnNvciI6Ik1USXcifX0&first=20)

Note that I am using a simple Client-ID header for authorization. Why does this happen? The error message is ‘invalid cursor’.  
I am using the new twitch api

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [April 7, 2019, 11:22pm UTC](https://discuss.dev.twitch.com/t/using-the-before-query-parameter-when-fetching-clips-always-gives-me-400-bad-request/20413/2 "2019-04-07T23:22:42Z")

</div>

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