Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • location takes ‘latitude, longitude’ (latitude first, e.g. 42.3478, -71.0466), a city name, a US zip with country (10001 US) or a UK postcode.
  • Requests per second, hour and day are capped by plan; over the cap answers 429. Remaining-quota headers are sent to Enterprise accounts only.
  • units is metric (default) or imperial; field meanings and units are in the Weather Data Layers reference.

Endpoints

Get the weather forecast for a location

Get current weather for a location

Get the last day of weather history

  • Only the last 24 hours; older history is a separate, token-billed historical API not covered here.

Get a timeline of chosen weather fields

  • A read over POST: the body only carries the query (location, fields, window); nothing is saved.
  • For a polygon or line location, a field without a suffix is the maximum over the area.