# Twitch Clips API

**URL:** <https://discuss.dev.twitch.com/t/twitch-clips-api/26045>\
**Category:** API\
**Created:** [June 1, 2020, 2:45am UTC](https://discuss.dev.twitch.com/t/twitch-clips-api/26045 "2020-06-01T02:45:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevUser](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/devuser/32/7344_2.png) [@DevUser](https://discuss.dev.twitch.com/u/DevUser)\
**Post date:** [June 1, 2020, 2:45am UTC](https://discuss.dev.twitch.com/t/twitch-clips-api/26045/1 "2020-06-01T02:45:28Z")

</div>

I’m having trouble sometimes accessing the twitch clips endpoint in the Kraken API. I get an Internal Server Error.

The other services work fine, I just have problems with this one.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 1, 2020, 10:59am UTC](https://discuss.dev.twitch.com/t/twitch-clips-api/26045/2 "2020-06-01T10:59:44Z")

</div>

> <https://github.com/twitchdev/issues/issues/122>
>
> \*\*Brief description\*\*
> As informed on issue https://github.com/twitchdev/issues/…issues/66
> This api is not working properly since above issue was open.
> 
> After loading a page of 100 clips, one can't request more clips using the "cursor" when a language is set.
> 
> \*\*How to reproduce\*\*
> Load the first "page" and filter just the cursor
> 
> \`\`\`
> curl -s \\
> -H "Accept: application/vnd.twitchtv.v5+json" \\
> -H "Client-ID: yours\_app\_id" \\
> "https://api.twitch.tv/kraken/clips/top?limit=100&period=day&language=en" \\
> | jq -r ".\_cursor"
> \`\`\`
> 
> \*\*Result\*\*
> \`MTAw\`
> 
> \*\*Now use the cursor\*\*
> 
> \`\`\`
> curl -s \\
> -H "Accept: application/vnd.twitchtv.v5+json" \\
> -H "Client-ID: yours\_app\_id" \\
> "https://api.twitch.tv/kraken/clips/top?limit=100&period=day&cursor=MTAw&language=en" \\
> | jq -r ".\_cursor"
> \`\`\`
> \*\*Result\*\*
> 
> \`null\`
> 
> Try again without the \`jq\` filter to see the error:
> \`\`\`
> curl -s \\
> -H "Accept: application/vnd.twitchtv.v5+json" \\
> -H "Client-ID: yours\_app\_id" \\
> "https://api.twitch.tv/kraken/clips/top?limit=100&period=day&cursor=MTAw&language=en"
> \`\`\`
> \*\*Result\*\*
> \`\`\`
> {
> "error": "Internal Server Error",
> "status": 500,
> "message": ""
> }
> 
> \`\`\`
> 
> \*\*Expected behavior\*\*
> The proper API result, that when no more content exist return a cursor="" or a empty cursor meaning last page was reached, any subsequent request just cause the api to return repetitive result starting again from top.
> 
> \*\*Screenshots\*\*
> Doesn't applies.
> 
> \*\*Additional context or questions\*\*
> Doesn't applies.

Issued on github as 122

---

<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:** [July 1, 2020, 11:08am UTC](https://discuss.dev.twitch.com/t/twitch-clips-api/26045/3 "2020-07-01T11:08:51Z")

</div>

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