8
Rate limit is way too low
Oleksii Holub
Current rate limit of 15 requests per minute is absurdly low, considering that each request to /supporters endpoint returns only 5 items. In order for me to get all 100 donations from my page, I have to make 20 requests, which (with the current rate limit) makes the API absolutely unusable.
D
Dominated
I have to make about 30 requests only for donations. If I try to fetch Supporter after that I will get a Time-Out for at least two Hours.
Vee
Oleksii Holub - response is having "support_id": 245731 and they are in DESC order. Maybe you can save support_id in your database and when your server reaches the page where the previously saved support_id is located, then the parsing stops and there is no need to check 20 pages ?
Oleksii Holub
Vee: I mean there are many ways to work around this, including just caching pages because the data is supposedly immutable. The issue is that there shouldn't be a reason for the rate limit to be so low and for the requests to return such a small chunk of data, effectively forcing you to make even more requests than would otherwise be necessary. I have not seen 15req/min be a limit anywhere, especially for read-only queries. It should definitely be raised to something more adequate.
Vee
The other solution is to allow POST and mark parsed donations, so when I call GET with &only_new=1 , then I will get only new donations.
Josh Mass
I have the same issue. At least give an option to increase the items returned per API call