# Get Clips API call not returning right number

**URL:** <https://discuss.dev.twitch.com/t/get-clips-api-call-not-returning-right-number/46793>\
**Category:** API\
**Created:** [August 7, 2023, 8:33am UTC](https://discuss.dev.twitch.com/t/get-clips-api-call-not-returning-right-number/46793 "2023-08-07T08:33:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![relicsvk](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@relicsvk](https://discuss.dev.twitch.com/u/relicsvk)\
**Post date:** [August 7, 2023, 8:33am UTC](https://discuss.dev.twitch.com/t/get-clips-api-call-not-returning-right-number/46793/1 "2023-08-07T08:33:46Z")

</div>

Hello, i was trying to get all clips of my channel and iam familiar with twitch API for some time and mostly know how to use it 😄

I created script which goes in loop and on end will give me all clips. Problem is it returns bad number of total clips and some clips are missing.

I see problem in parameter “&first” (100 is maximum on one call) because it never return 100 entries but only 99 and for next i use parameter “&after” with cursor value and it shouls have send another 100 entries, but it never send 100, mostly 99, sometimes 98… there should be some bug in this because in end from 305 clips i know i have it will send only 285 sometimes 286.

ONLY when i get all clips was if i call &first=1 (but i dont want make so many calls) and get it by one, or maybe sometimes with &first=5 (but that works i think only because my 305 clips can be divisible by 5…maybe)

Get followers and other calls i try, they works without problem and get always right number and &first=100 always get 100 entries. That is why i think there is bug.

Thank you very much

---

<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:** [August 7, 2023, 10:46am UTC](https://discuss.dev.twitch.com/t/get-clips-api-call-not-returning-right-number/46793/2 "2023-08-07T10:46:25Z")

</div>

> [@relicsvk](#):
>
> I see problem in parameter “&first” (100 is maximum on one call) because it never return 100 entries but only 99 and for next i use parameter “&after” with cursor value and it shouls have send another 100 entries, but it never send 100, mostly 99, sometimes 98… there should be some bug in this because in end from 305 clips i know i have it will send only 285 sometimes 286.

Helix just does this, I don’t think it’s a bug per sae it’s just na oddity

heres “get streams” being not 100 per page

 ![image](https://d2opxh93rbxzdn.cloudfront.net/original/3X/5/9/59e9d2efa1c47fa1d2dd6ca57a790cded5937137.png)

[https://barrycarlyon.github.io/twitch\_misc/examples/browse\_categories/](https://barrycarlyon.github.io/twitch_misc/examples/browse_categories/)

You might also want to check the current list of reported issues with the Clips API - [Issues · twitchdev/issues · GitHub](https://github.com/twitchdev/issues/issues?q=is%3Aissue+is%3Aopen+clips)

Specifically [Missing clips when using an expanded date range · Issue #80 · twitchdev/issues · GitHub](https://github.com/twitchdev/issues/issues/80)

---

<div class="post-metadata">

**Author:** ![relicsvk](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@relicsvk](https://discuss.dev.twitch.com/u/relicsvk)\
**Post date:** [August 8, 2023, 8:09am UTC](https://discuss.dev.twitch.com/t/get-clips-api-call-not-returning-right-number/46793/3 "2023-08-08T08:09:38Z")

</div>

Hi, thank you very much for your informative answer and useful link to check.

I can understand that its random with API, but why then GET followers is without problem every time?

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [August 8, 2023, 8:41am UTC](https://discuss.dev.twitch.com/t/get-clips-api-call-not-returning-right-number/46793/4 "2023-08-08T08:41:34Z")

</div>

Different underlying services may store and hand data differently, which can result in endpoints for different services behaving slightly differently.

---

<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:** [August 8, 2023, 8:45am UTC](https://discuss.dev.twitch.com/t/get-clips-api-call-not-returning-right-number/46793/5 "2023-08-08T08:45:56Z")

</div>

> [@relicsvk](#):
>
> I can understand that its random with API, but why then GET followers is without problem every time?

This useful website offers a potential answer to this question

[https://shouldiblamecaching.com/](https://shouldiblamecaching.com/)

(Yes satire and yes likely the reason)\*

\*Advice may be invalid due to caching

---

<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:** [September 7, 2023, 8:46am UTC](https://discuss.dev.twitch.com/t/get-clips-api-call-not-returning-right-number/46793/6 "2023-09-07T08:46:15Z")

</div>

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