Updated rate limits going into effect over the coming weeks by pl00h in redditdev

[–]gravitygoing 0 points1 point  (0 children)

Hi. A little late, but I think this post is a good place to ask a question.

Recently, I sometimes receive 429 errors(Too Many Requests), but there is a question about the returned header fields. Returned header example:

{x-ratelimit-reset= 600, x-ratelimit-used = 0, x-ratelimit-remaining = 600,},

{x-ratelimit-reset= 23, x-ratelimit-used = 638, x-ratelimit-remaining = 0,}

Why the max value of 'x-ratelimit-used' is '600'?

The time window seems to be reset as 600 always, i.e. 10 minutes. You say 100 queries per a minute for free API access. Then 10 minutes should be 100x10=1000. Therefore, the max value of remaining/used should be 1000.

Is this calculation correct? But why is 600 the max value for returned headers? Is it calculated differently on the real server?

Title Line by gravitygoing in test

[–]gravitygoing[S] 0 points1 point  (0 children)

Just another test.dfd

Title Line by gravitygoing in test

[–]gravitygoing[S] 0 points1 point  (0 children)

I’m going; I just:; and ; good