# API Helix "Get Broadcaster Subscriptions"

**URL:** <https://discuss.dev.twitch.com/t/api-helix-get-broadcaster-subscriptions/39926>\
**Category:** API\
**Created:** [August 7, 2022, 7:15pm UTC](https://discuss.dev.twitch.com/t/api-helix-get-broadcaster-subscriptions/39926 "2022-08-07T19:15:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abyssian](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@abyssian](https://discuss.dev.twitch.com/u/abyssian)\
**Post date:** [August 7, 2022, 7:15pm UTC](https://discuss.dev.twitch.com/t/api-helix-get-broadcaster-subscriptions/39926/1 "2022-08-07T19:15:28Z")

</div>

Hello !

I’m trying to use this route `https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions`

.

I don’t have any problem when I’m calling with  
`curl -X GET 'https://api.twitch.tv/helix/subscriptions?broadcaster_id=*channel_id*&first=20' \`

But when I try to add the parameter `after` with a value 0 or more I’m getting an Internal Server Error

Is it because the user have a total value of subscriber = 0 ?

---

<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, 2022, 7:17pm UTC](https://discuss.dev.twitch.com/t/api-helix-get-broadcaster-subscriptions/39926/2 "2022-08-07T19:17:56Z")

</div>

`after` should be the pagination token from (aka `cursor`) the previous request.

And sure there is no page 2 if you have no subs

---

<div class="post-metadata">

**Author:** ![abyssian](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@abyssian](https://discuss.dev.twitch.com/u/abyssian)\
**Post date:** [August 7, 2022, 7:20pm UTC](https://discuss.dev.twitch.com/t/api-helix-get-broadcaster-subscriptions/39926/3 "2022-08-07T19:20:53Z")

</div>

Oh thanks I thought it was a number like `offset` or similar. So the first request shouldn’t have any `after` parameter

---

<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, 2022, 7:21pm UTC](https://discuss.dev.twitch.com/t/api-helix-get-broadcaster-subscriptions/39926/4 "2022-08-07T19:21:38Z")

</div>

Kraken used `offset` helix uses a different method for pagination. (`cursor` in the previous request used to `after` for the next page)

---

<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 6, 2022, 7:21pm UTC](https://discuss.dev.twitch.com/t/api-helix-get-broadcaster-subscriptions/39926/5 "2022-09-06T19:21:50Z")

</div>

Closed on September 6, 2022, 7:21pm UTC

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