Historical Weather API: Hourly, Daily, Forecast and Climatology avatar

Historical Weather API: Hourly, Daily, Forecast and Climatology

Pricing

from $5.00 / 1,000 weather history or forecast rows

Go to Apify Store
Historical Weather API: Hourly, Daily, Forecast and Climatology

Historical Weather API: Hourly, Daily, Forecast and Climatology

Historical weather API: daily and hourly weather history, 15 day forecast and climatology normals by latitude/longitude, ZIP or postal code, DMA or OnPoint ID. Temperature, precipitation, snowfall, humidity, wind, cloud cover and solar radiation from Weather Source OnPoint. Bring your own key.

Pricing

from $5.00 / 1,000 weather history or forecast rows

Rating

0.0

(0)

Developer

Nabeel Hassan

Nabeel Hassan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 days ago

Last modified

Features

Limited permissions

Share

Get daily and hourly historical weather, a 15 day forecast and climatology normals for any coordinate, ZIP or postal code, DMA or OnPoint grid point, as clean rows you can export to CSV, Excel or JSON.

This actor wraps the Weather Source OnPoint History, Forecast and Climatology APIs (by Pelmorex, The Weather Network for Business). OnPoint is a gap-free, homogeneous global weather grid covering every landmass and up to 200 miles offshore. Bring your own Weather Source API key.

BYOK, not live tested: every route, parameter and field comes from Weather Source's own OpenAPI descriptions, and every route was probed on 2026-11-07 with a bogus key of realistic length. It has not been run against a live key.

What it does

  • Historical weather API: daily or hourly weather history for any past date range. Daily rows carry min, average and max temperature, feels like, dew point, heat index, wind chill, wet bulb, humidity, pressure, wind speed and direction at 10, 80 and 100 meters, cloud cover, visibility, solar radiation, precipitation, snowfall, snow depth and precipitation type hour counts.
  • Weather forecast API: the full daily forecast (up to 15 days) or hourly forecast (up to 240 hours) from NOAA GFS on the OnPoint grid, with probability of precipitation and snowfall.
  • Climatology API: typical weather for each calendar day or hour, with standard deviations, 25th to 90th percentiles of precipitation and snowfall, and precipitation and snowfall frequency bands. Use it as the baseline for weather anomalies.
  • Any location type: latitude/longitude points, ZIP and postal codes in many countries, Designated Market Areas (DMAs) and OnPoint IDs.
  • Long periods made easy: date ranges longer than the documented 1 year per request are split automatically.
  • Units you choose: imperial, metric or SI, with each field's unit saved to the key-value store as FIELD_UNITS.

What you need

A Weather Source API key: sign up for a developer account at developer.weathersourceapis.com or ask Weather Source sales for a subscription. Paste the key into the Weather Source API key field, or set the DATA_API_KEY secret. Requests count against your Weather Source plan. The actor never signs up or buys anything for you.

Input

FieldNotes
modehistory, forecast or climatology
intervaldaily or hourly
apiKeyyour Weather Source key; falls back to DATA_API_KEY
locationsone per line: 40.7128,-74.0060, 10001, M5V 3L9,CA, dma:501, onpoint:10725864
countryCodeISO country for postcodes written without one (default US)
startDate, endDatehistory and climatology: YYYY-MM-DD, or a date-time for hourly data
fieldsfield names or groups (default popular)
unitScaleIMPERIAL, METRIC (default here) or SI
maxResultsstop after this many rows (default 1,000)

Example input:

{
"mode": "history",
"interval": "daily",
"locations": ["40.7128,-74.0060", "60601", "SW1A 1AA,GB"],
"startDate": "2024-07-01",
"endDate": "2024-07-31",
"fields": ["tempMax", "tempMin", "precip", "snowfall", "relHumAvg", "windSpdAvg"],
"unitScale": "METRIC"
}

Field names

Groups work in every mode: popular, all, allTemp, allPrecip, allHum, allWind, allPres, allRad, allCldCvr.

  • History, daily: provisionalFlag, cldCvrMin/Avg/Max, dewPtMin/Avg/Max, feelsLikeMin/Avg/Max, heatIndexMin/Avg/Max, mslPresMin/Avg/Max, precip, presTendMin/Avg/Max, radSolarMin/Avg/Max/Tot, relHumMin/Avg/Max, sfcPresMin/Avg/Max, snowDepth, snowfall, spcHumMin/Avg/Max, tempMin/Avg/Max, visMin/Avg/Max, wetBulbMin/Avg/Max, windChillMin/Avg/Max, windDirAvg, windDir80mAvg, windDir100mAvg, windSpdMin/Avg/Max, windSpd80mMin/Avg/Max, windSpd100mMin/Avg/Max, precipHourCnt, snowfallHourCnt, freezingRainFlagCnt, icePelletsFlagCnt, rainFlagCnt, snowFlagCnt.
  • History, hourly: provisionalFlag, cldCvr, dewPt, feelsLike, heatIndex, mslPres, precip, presTend, radSolar, relHum, sfcPres, snowfall, spcHum, temp, vis, wetBulb, windChill, windDir, windDir80m, windDir100m, windSpd, windSpd80m, windSpd100m, freezingRainFlag, icePelletsFlag, rainFlag, snowFlag.
  • Forecast: the daily and hourly history names without visibility, pressure tendency, snow depth and precipitation type fields, plus precipProb, snowfallProb and timestampInit (model run time).
  • Climatology: the daily or hourly names with Sd standard deviations (tempAvgSd, precipSd), percentiles (precip25p to precip90p, precipIqr, the same for snowfall) and frequencies (precipFreq, precipFreq0, precipFreq001To009 up to precipFreq500Plus, snowfallFreq bands), and hourly wind vector speeds (windVecSpd).

Write tempMin/Avg/Max as three names: tempMin, tempAvg, tempMax.

Output

One row per location and day or hour. Example (history, daily, metric):

{
"recordType": "historyDay",
"found": true,
"mode": "history",
"interval": "daily",
"query": "40.7128,-74.006",
"locationType": "point",
"unitScale": "METRIC",
"latitude": 40.7128,
"longitude": -74.006,
"timezone": "America/New_York",
"countryCode": "US",
"countryName": "United States",
"subdivCode": "US-NY",
"subdivName": "New York",
"grid": "NORTH_AMERICA_GRID",
"elevation": 10.4,
"date": "2024-07-01",
"tempMax": 27.8,
"tempMin": 19.1,
"precip": 0,
"snowfall": 0,
"relHumAvg": 58.2,
"windSpdAvg": 14.6
}

The values above show the shape only. A skipped line, empty answer or refused lookup becomes a row with found: false and a note, and is never charged.

Pricing

Pay per event, to this actor, on top of your Weather Source plan:

  • Weather history or forecast row: $0.005 per location per day or hour.
  • Climatology row: $0.01 per location per day or hour.

Skipped lines, empty answers and refused lookups are free. Set Maximum rows to cap spend: a year of hourly history for one location is 8,784 rows at most.

FAQ

How do I get historical weather data for a ZIP code?

Set the mode to history, put the ZIP code (for example 10001) in Locations, and set a start and end date. Postcodes outside the US take a country code after a comma, such as M5V 3L9,CA. Weather Source documents which countries have postcode support on its developer portal.

How far back does the historical weather go?

Weather Source History is built on a NOAA reanalysis dataset on the OnPoint grid. How many years your key can read depends on your Weather Source subscription; this actor sends any dates you give and reports the provider's answer.

What is the difference between history and climatology?

History is what actually happened on a date. Climatology is the typical weather for that calendar day or hour at that location, with standard deviations and percentiles, so you can tell how unusual a day was or plan around normal conditions.

Can I get hourly weather data?

Yes. Set the interval to hourly. For history and climatology you can give exact date-times with an offset, such as 2024-07-01T06:00:00-04:00. Hourly forecasts cover up to 240 hours.

What weather forecast does it return?

The Weather Source Forecast API, based on the NOAA GFS model on the OnPoint grid: up to 15 days daily or 240 hours hourly from today. Every forecast request returns the complete forecast; Maximum rows trims it.

What is a DMA or OnPoint ID?

A DMA is a Designated Market Area, a US media market such as 501 for New York; rows for a DMA are aggregated over sample points in it. An OnPoint ID is a point on Weather Source's grid. Both are documented on the Weather Source developer portal.

Which units are used?

You choose: imperial (Fahrenheit, inches, miles per hour), metric (Celsius, centimeters, km per hour) or SI (Kelvin). The exact unit of every returned field is saved to the key-value store as FIELD_UNITS.

Is it good for retail, energy and insurance analytics?

Weather Source data is widely used for demand forecasting, weather normalized sales, energy load modeling and claims checks. Your Weather Source agreement decides how you may use the data.

Keyword map

historical weather API, weather history API, past weather data, hourly weather data, daily weather data, weather by ZIP code, weather by postal code, weather by latitude longitude, weather forecast API, 15 day forecast, climatology API, weather normals, climate normals, weather anomalies, DMA weather, temperature history, precipitation history, snowfall data, Weather Source OnPoint, Pelmorex.

Routes and verification

ModeRoutesProbe with a bogus key (twice)
HistoryGET history.weathersourceapis.com/v2/{points/{lat},{lng} or postcodes/{postcode},{country} or dmas/{id} or onpoints/{id}}/days/{date} or /days/{start},{end}, /hours/{timestamp} or /hours/{start},{end} (fields, unitScale)403 JSON "PERMISSION DENIED. Invalid API key"
ForecastGET forecast.weathersourceapis.com/v2/{location}/days or /hours (fields, unitScale)same
ClimatologyGET climatology.weathersourceapis.com/v2/{location}/days/... or /hours/... (fields, unitScale)same
Invented control routes/v2/pointz/..., /v2/inventedz, /v3/points/...404 JSON "NOT FOUND. Resource not found"

The key travels only in the X-API-KEY header.

Licensing and data use

This actor works only with your own Weather Source API key, and your agreement with Weather Source applies. Weather Source licenses its data for the subscriber's internal business use; reselling or redistributing raw data needs a separate reseller agreement with Weather Source. Here every request runs on your own key for your own use. This actor is not affiliated with or endorsed by Weather Source or Pelmorex.