jangxx
April 29, 2021, 9:24pm
1
I have a question about an inconsistency in the API reference:
The response fields for the endpoint to retrieve a list of EventSub subscriptions specify a pagination
object in the response, but no pagination related query parameters are mentioned. Is the endpoint not actually paginated and the pagination
object always empty or is this a case of missing optional query parameters in the documentation?
In the latter case, are the pagination parameters the same as for the other paginated endpoints, i.e. before
, after
and first
?
Generally speaking, all helix endpoints support after and first (for consistency)
Not all helix endpoints support before
At time of writing/last I tested eventsub/subscriptions doesn’t support first.
So assume that a given Helix endpoint supports after and first
See also:
opened 08:56PM - 17 Dec 20 UTC
product: docs
**Brief description**
https://dev.twitch.tv/docs/eventsub/helix-endpoints#get… -eventsub-subscriptions
Omits the optional query parameter for `after` for cursor usage as per other helix endpoints
opened 08:38PM - 17 Dec 20 UTC
closed 06:19PM - 22 Aug 23 UTC
product: eventsub
ticketed
**Brief description**
First doesn't work and probably should?
If it shouldn'… t it throws an error if you `out of bounds` a value
**How to reproduce**
A call to `https://api.twitch.tv/helix/eventsub/subscriptions?first=1`
results in
```json
{
"error": "Bad Request",
"status": 400,
"message": "The parameter \"first\" was malformed: the value must be greater than or equal to 10"
}
```
And `https://api.twitch.tv/helix/eventsub/subscriptions?first=101`
```json
{
"error": "Bad Request",
"status": 400,
"message": "The parameter \"first\" was malformed: the value must be less than or equal to 100"
}
```
But `https://api.twitch.tv/helix/eventsub/subscriptions?first=50` (or any other "valid" `first` value)
Results in 100 records always
**Expected behavior**
First to work and be added to the documentation in line with other helix endpoints
**Additional Context**
Documentation would need to be updated to say first is supported
https://dev.twitch.tv/docs/eventsub/helix-endpoints#get-eventsub-subscriptions
Both first/after should be documented, but first is not working as expected
1 Like
system
Closed
May 29, 2021, 11:02pm
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.