Retrieve Weather Recent Hisotry
GET {{baseUrl}}/weather/history/recent?location={{location}}&units={{units}}×teps={{timesteps}}
Using the recent history weather API you can access historical weather forecasts for your location, including hourly history for the last 24 hours, and daily history for the last day.
For the location query parameter, we support multiple location types:
- Latitude and Longitude (Decimal degree)
location=42.3478, -71.0466
- City name
location=newyork
- US zip
location=10001
- UK postcode
location=SW1
- Canada postal code
location=G2J
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
location | string | (Required) A string representing a location by latitude and longitude (eg. "42.3478, -71.0466"), city name (eg. "newyork"), US zip code (eg. "10001"), UK postcode (eg. "SW1"), or Canada postal code (eg. "G2J") | |
units | string | A string representing units of field values, either "metric" or "imperial" (Default: "metric") | |
timesteps | string | An array of strings representing the interval between timeline items. (Default: "1h") Available values: "1m", "1h", "1d" |