Returns a daily forecast - Given Lat/Lon.
Returns a daily forecast, where each point represents one day (24hr) period. Every point has a valid_date string in the format "YYYY-MM-DD". One day begins at 00:00 UTC, and ends at 23:59 UTC.
Query parameters
Latitude component of location.
Longitude component of location.
City search.. Example - &city=Raleigh,NC or &city=Berlin,DE or city=Paris&country=FR
Postal Code. Example: 28546
Country Code (2 letter) - to be used with postal_code.
Station Call ID.
Number of days to return. Default 16.
Convert to units. Default Metric. Options (I = Imperial, M = Metric, S = Scientific)
Language (Default: English) See <a target='blank' href='/api/requests'>language field description</a>
Your registered API key.
Response
A forecast object.
Example response
{
"city_name": "Raleigh",
"state_code": "NC",
"country_code": "US",
"lat": 38.25,
"lon": -78,
"timezone": "America/New_York",
"data": [
{
"valid_date": "2019-03-04",
"datetime": "2019-03-04:17",
"snow": 10.45,
"snow_depth": 45,
"precip": 1.1,
"temp": 1,
"dewpt": 1,
"max_temp": 1.5,
"min_temp": -1.23,
"high_temp": 1.5,
"low_temp": -1.23,
"app_max_temp": 4,
"app_min_temp": -2,
"rh": 95,
"clouds": 100,
"clouds_low": 65,
"clouds_mid": 100,
"clouds_hi": 100,
"weather": {
"icon": "s02n",
"code": 601,
"description": "Snow"
},
"slp": 1012.89,
"pres": 1005,
"uv": 6.5,
"ozone": 340,
"vis": 3,
"pop": 75,
"moon_phase": 0.91,
"moon_phase_lunation": 0.59,
"sunrise_ts": 1530331260,
"sunset_ts": 1530331260,
"moonrise_ts": 1530331260,
"moonset_ts": 1530331260,
"pod": "n",
"wind_spd": 13.85,
"wind_dir": 105,
"wind_cdir": "ENE",
"wind_cdir_full": "East-North-East",
"wind_gust_spd": 16
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.