I was looking at the X-Ratelimit-Reset returned in each response header and trying to understand what time it represents. It doesn’t seem to be represent 12AM GMT or any other timezone, so what is the logic behind the value of the X-Ratelimit-Reset value? Is it related to the time the account was created?
the x-ratelimit-reset value is still not working as expected for all endpoints.
However, in my test just now it seems to be pretty consistent for the /v2/directions endpoint at least.
If you are going to implement it somehow, better check for the endpoint you are using, if it is good enough for your needs.
The value is a timestamp for the UTC timezone in unix format.
I need it for /v2/directions so the value is indeed working fine for me as well. However, about the value itself, I’m currently receiving 1627939933 which is Monday, August 2, 2021 9:32:13 PM GMT. This seems like a arbitrary value and hence I was wondering how it came to be this value.
Also, about the x-ratelimit-remaining value, should I depend on that value to track when my daily limit is over or should I depend on http code 429 instead?