# The pagination returned by the new unban\_requests API seems wrong

**URL:** <https://discuss.dev.twitch.com/t/the-pagination-returned-by-the-new-unban-requests-api-seems-wrong/56815>\
**Category:** API\
**Created:** [March 14, 2024, 5:53pm UTC](https://discuss.dev.twitch.com/t/the-pagination-returned-by-the-new-unban-requests-api-seems-wrong/56815 "2024-03-14T17:53:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvanus](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/sylvanus/32/8271_2.png) [@Sylvanus](https://discuss.dev.twitch.com/u/Sylvanus)\
**Post date:** [March 14, 2024, 5:53pm UTC](https://discuss.dev.twitch.com/t/the-pagination-returned-by-the-new-unban-requests-api-seems-wrong/56815/1 "2024-03-14T17:53:10Z")

</div>

Hi,

It’s been a long time since I posted a topic 😃  
Feedback from the new API in beta GET helix/moderation/unban\_requests

I have been using it since it was made available in the following way: I created an interface which allows me to process each deban request for a streamer, in a slightly more role play way. It’s a kind of court that will allow the streamer to judge each ban call by providing him with the information we have on the user (messages, previous timeouts, whatchtime, etc.)

In this context I use this last API by providing it, at the beginning only with the field first = 1/status = pending, to have one case at a time.

 ![image](https://d2opxh93rbxzdn.cloudfront.net/original/3X/3/a/3aab26d92f9b487cf1aecad892e79936b204812e.png)

When we move on to the next case, I use the pagination cursor to provide it to the query. So I send the same API call as previous but with after = previous cursor.

It works very well, let’s say at the beginning… after a while, and I noticed from 30 cases, without the delay having anything to do with it, the API starts to send me empty data, while continuing to give me cursors…

![image](https://d2opxh93rbxzdn.cloudfront.net/original/3X/8/b/8b9b5e9d651c4840d6c3210c08971f26d1462383.png)

While I continue to provide it and I make the calls… and after a moment, magically, I have the following recording (which is indeed the one which should have been given to me from the start).

![image](https://d2opxh93rbxzdn.cloudfront.net/original/3X/f/6/f6523bce4852ff5a0c7382efe1bfc5bdbc8c9753.png)

In the same way when I theoretically arrive at the last deban request in pending status (around forty, easy to check with the call without first parameter), the API continues to send me cursors for the next pagination…

My theory is that there is a bug which means that the pagination does not apply to the data filtered by the status but continues as if there was none, but that when I send the data back of the recording, so having filtered everything that is not pending, there is nothing left in the response body.

---

<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 13, 2024, 5:54pm UTC](https://discuss.dev.twitch.com/t/the-pagination-returned-by-the-new-unban-requests-api-seems-wrong/56815/2 "2024-04-13T17:54:02Z")

</div>

Closed on April 13, 2024, 5:54pm UTC

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