Skip to main content

Setup

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

Notes

  • Plan gates: forecast is 3-14 days depending on plan; future.json (14-300 days ahead) is Pro+; history end_dt ranges are Pro+; minutely rain is Starter+; alerts are limited on Free.
  • Dates are yyyy-MM-dd; unixdt/unixend_dt are the Unix-timestamp alternatives (never send both forms).

Endpoints

Get current weather

Get a forecast

Get historical weather

  • How far back a plan reaches varies; older dates need a higher plan.

Get long-range future weather

  • Pro+ plan only.
  • Pass a result’s id as q=id:<id> to other calls.

Get weather alerts

  • Limited on the Free plan.

Get a marine forecast

Get astronomy data

Get a location’s time zone