Skip to content

Rate limit #1296

@stbischof

Description

@stbischof

I try to adjust my client that i can work with the x-ratelimit .

the docs say:
https://docs.clearlydefined.io/docs/get-involved/using-data

All other endpoints are max 2K requests per minute.

after running 5 requests like:

curl -X GET "https://api.clearlydefined.io/definitions/npm/npmjs/%40yarnpkg/lockfile/1.1.13" -H "accept: */*" -v

I expected to have
x-ratelimit-remaining: 1995

bit is was

x-ratelimit-limit: 2000 
x-ratelimit-remaining: 1893
x-ratelimit-reset: 1742743739

this way it is hard to calc when and how often i can do requests, since the number remaining seems to decreases for each request differently

if i use the

post on definitions i always get

x-ratelimit-limit: 0 
x-ratelimit-remaining: 0
x-ratelimit-reset: 174xxxxxxx

so i never know before when i get an 429.

what is the best way to respect your api restrictions but can do efficient requests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions