this post was submitted on 30 Jun 2023
3 points (100.0% liked)

Lemmy App Development

728 readers
1 users here now

A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.

On-Topic:

Off-Topic:

founded 2 years ago
MODERATORS
 

The Limit property is just a number, but it is different for different API endpoints. I'd like to have a list of the different values so i can easily stay within the max for each endpoint. Are the values documented somewhere? From the official js-client docs site, not even a given endpoint documents its maximum.

you are viewing a single comment's thread
view the rest of the comments
[–] Cr4yfish 2 points 2 years ago* (last edited 2 years ago) (2 children)

I JUST FOUND IT!!! https://join-lemmy.org/api/interfaces/LocalSiteRateLimit.html

Every instance sets own rates limit. You can get ALL RATE LIMITS for a specific instance through that enpoint.

Edit: When finding something in the docs you were looking for feels like an accomplishment, something's wrong with the docs :D.

Here's an example for Lemmy.world:

[–] [email protected] 1 points 2 years ago (1 children)

hm, yes but they're rate limits, not the maximum values that can be passed to the limit param. they must be different because my rate limits are post: 6, comment: 6, and that's definitely not the max value for limit for fetching those items.

[–] Cr4yfish 1 points 2 years ago

Ah, damn. Well back to trial and error I guess.