4 ms·
You could let users enter their a city and fetch the data locally via javascript. That way, the usage counts against their IP's API limit, not yours. Edit: To
by necubi 16y ago
You could let users enter their a city and fetch the data locally via javascript. That way, the usage counts against their IP's API limit, not yours.
Edit: To be more clear, this would only work for showing the data to the user that requests it, not sending it back to the server for other users to see.
- nbpoole 16y agoYes, except then you're relying on data coming from untrusted users. How long do you think it would take before someone figures out a way to put themselves at the top of the list? ;) Edit: OK. Assuming you're only looking at data locally, you'll probably run into API limits. Users are only allowed to make 60 requests to the API per minute. My guess is you need more than that to generate these statistics.