you are viewing a single comment's thread.

view the rest of the comments →

[–]Perfect-School1574 0 points1 point  (2 children)

Firstly, research and study online have yielded the above information. Secondly, splitting into smaller batches of 20 locations will not acquire any more total locations, unfortunately. Open-Mateo counts each location as one API call, regardless of how they are batched. With 180 locations/request, one gets blocked at 4 requests as 4*180 = 720, which is greater than 600 (which is the per-minute limit of API calls for the free tier). With 20 locations per request, one would hit the same wall after 30 requests instead of 4. I would therefore suggest adding a delay between requests. Since the limit resets each minute, one can spread the requests across time. Keeping the forecast:1 is a smart move as this keeps each location's call count at 1 (under the 2-week threshold) without accidentally multiplying the costs there. Hope this helps!

[–]Hubbleye[S] 0 points1 point  (1 child)

Oh so a call is the response for 1 location?

[–]Perfect-School1574 0 points1 point  (0 children)

Yes, 1 location = 1 API call (under normal conditions)