4
Crost
8y

Need some help finding a free weather api please.

I need to be able to search the api based on temperature or humidity. Alternatively I could locally store the next 2 weeks of data for every country in a database and update it every night with a cron.

Has anyone used weather APIs before? Could you suggest me some?

Comments
  • 0
    I have been using various sources for weather events such as wind, earthquakes, tornados...
    I will soon be testing https://openweathermap.org
    It looks good. Let me know what you think.
  • 0
    @Jumpshot44 I was looking at this but it looks like it searches on location, not by what I need.

    If I can avoid writing a cron to save the next 2 weeks of weather of every country in the world to a db that would be great...aside from anything else I think I'd have to loop the list of countries, make an api call for that could try, save that and continue the loop. This script would probably run for a very long time...
  • 0
    What about http://api.met.no/#english ? Perhaps you can search the way you like there?
  • 0
    @Hakash cheers but the documentation is very bad. It doesn't look like I can search it like that and it seems the data set is only for Norway.

    Otherwise, yes I would use it hahaha
  • 0
    Following
  • 1
    You're gonna need to get weather data yourself and go through it on your own. Also probably should update it more than once a day.
Add Comment