Help with querying the remaining rate limit with curl

Hi friends, I’m looking for guidance to query the rate limit. The documentation only provides a minimum explanation that I can use the ‘Ratelimit-Remaining’ header, but I’m very new to this and everything I tried for the last 2 hours failed. Basically the documentation reads as if you can query the remaining rate limit by adding a new header to ANY query. I’m probably wrong but I don’t know what it means TBH.

Here is one trial, which doesn’t return anything related to remaining rate limit.

curl -X GET '' \
-H 'Authorization: Bearer <...>' \
-H 'Client-Id: <....>' -H 'Ratelimit-Remaining'

Thank you!

Ah, I figured it out. It is actually embedded in the response header, as the doc mentioned (and I misunderstood). So I only need to use -v for curl and then parse the header.

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