#Rate limiting / limiting paginated queries

6 messages · Page 1 of 1 (latest)

knotty osprey
onyx crypt
torn quail
knotty osprey
# onyx crypt <@950724594929655869> take a look at this https://discord.com/channels/101935047...

Thanks, I've read the thread, I'm asking this to prevent too much resource being somewhat automatically scraped or therefore too much network bandwidth is used. However I wonder if it's possible to limit the pagination cursor from the server-side query function. For example, I'm trying to implement 'Free tier users can only retrieve 500 posts.' I can easily check if the user is authenticated or not already but I'm not sure if limiting pagination cursor is available in the API.

solar stratus
peak mural
#

for a free tier you could also do more hard-coded offset pagination. e.g. the first request fetches the first 100. The next fetches 200 and returns the last 200, and you limit it to 500 max. Then for pro you could have infinite scroll. just a thought