If you’re coding and need to find the local weather, there are a lot of places you can go to get it. Most are complex and require you to create an account, and generally don’t offer much.

If you’re looking for one that’s simple and based on GPS, try https://api.pulsewise.com/environment/weather/42.3388/-71.0726 , which is free for the first 1,000 calls per month and includes sunrise and sunset, too. Just swap the latitude & longitude coordinates for your own latitude & longitude, or if you leave them off, it will use your browser’s coordinates.

This is just part of a set of tools I wrote at https://pulsewise.com or see the documentation.

Its output is in standard JSON, and looks like this:

“success”: true,
“timestamp_utc”: “2023-10-16 20:25:30”,
“summary”: “Clouds”,
“description”: “Broken clouds”,
“temperature_current”: 56.68,
“temperature_min”: 53.22,
“temperature_max”: 59.11,
“feels_like”: 55.53,
“pressure”: 1003,
“humidity”: 74,
“wind_speed”: 5.75,
“wind_direction”: 120,
“wind_gust”: null,
“sunrise”: 1697453864,
“sunset”: 1697493703,
“lattitude”: “42.33880000”,
“longitude”: “-71.07260000”

Leave A Comment

Related Posts