Weather API & MCP: Forecast, Historical Weather, Alerts avatar

Weather API & MCP: Forecast, Historical Weather, Alerts

Pricing

from $4.00 / 1,000 location-days

Go to Apify Store
Weather API & MCP: Forecast, Historical Weather, Alerts

Weather API & MCP: Forecast, Historical Weather, Alerts

Weather API for apps and AI agents: current conditions, forecasts from MET Norway, DWD, NWS, Environment Canada and ECMWF with a median consensus, weather history from observed stations and official alerts. Works as an MCP tool. Every value names its source.

Pricing

from $4.00 / 1,000 location-days

Rating

0.0

(0)

Developer

SR

SR

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Weather API: multi-source forecast, historical weather data and alerts

This weather API returns one record per place with current conditions, forecasts from several national weather services, a median consensus with spread, observed historical weather data and official warnings. Use it when one forecast provider is not enough: every value carries a provider label and licence credit, so a downstream application can explain where a number came from and how it was calculated.

Use it to compare forecasts for destinations, enrich a location dataset, build a weather dashboard or retrieve recent observations. A place can be a city name, a name followed by an ISO country code, or a latitude and longitude pair. Regional providers are selected automatically. MET Norway supplies global forecasts, DWD supplies station forecasts, NWS covers the United States, Environment and Climate Change Canada covers Canada, and ECMWF contributes open forecast data. MeteoAlarm supplies European warnings where its member feeds cover the requested point.

How this weather API works

  1. Each place is resolved to a name, country, coordinates and timezone.
  2. The current conditions come from a regional station observation where one is available, otherwise from the first MET Norway model step.
  3. Forecasts are requested from every provider that covers the point, normalised to the same units and aggregated to local calendar days.
  4. For each daily metric with at least two provider values, the median becomes the headline value and the minimum, maximum and spread are kept beside it.
  5. Observed history and official warnings are added from regional sources, with their original content preserved.
  6. One dataset row per place is written, with an attribution list for the sources actually used.

Weather API input

locations is a required list of nonempty names or coordinate strings. Empty or whitespace-only entries make the input invalid; successful rows and location errors retain their original input_index. The bundled GeoNames cities catalogue resolves names and selects the largest city when several cities have the same name. Add a country code to narrow that choice. A two-letter suffix is always read as an ISO country code: write Austin, US rather than Austin, TX. The selected name, country, coordinates and timezone are returned. For coordinate input, country and timezone are inferred from a GeoNames city within 50 kilometres. At remote points, dates use UTC and regional routing may be unavailable; the output explains this limitation.

forecast_days accepts one to ten days and defaults to seven, including the current local calendar day. history_days accepts zero to thirty and defaults to zero. History means observations, not model estimates of past weather. A missing observation is reported rather than filled with a forecast.

sources selects forecast and current providers from metno, nws, dwd, eccc and ecmwf. History and warnings have separate regional routing. include_alerts defaults to true. include_hourly defaults to false and, when enabled, includes source time steps for the next 48 hours. Model steps can be three or six hours apart; this option does not interpolate hourly values.

units is metric by default. Choosing imperial adds Fahrenheit, miles per hour, inches and inches of mercury fields. The metric core fields keep their names and values so datasets remain comparable. max_locations bounds the total number of places. The API returns a cursor when more places remain; continue with identical input and that cursor. The actor follows continuation automatically.

Output and interpreting consensus

The dataset contains one weather_place row per successfully collected location. Each row includes source, fetched_at, lat, lng, name, country_code, timezone, providers, current, daily, alerts and attribution. Failed locations are recorded separately with an English error message and are excluded from weather billing. partial and warnings explain missing providers, dates or requested phases. Informational warnings about unavailable regional alert coverage, alerts you switched off or a successful forecast fallback do not set partial. A source failure, missing requested date or missing requested values does.

current.kind distinguishes a station observation from a model value. The regional observation has priority; the first available MET Norway model step provides a fallback. Temperature, humidity, wind and pressure retain their provider. Sea-level pressure is separate from station pressure because those quantities are different.

daily combines observed history and forecast days in date order. Today is a forecast day. Forecast records include per_source, with provider values, issue times and station information where available. Each metric is calculated separately: a provider that supplies maximum temperature but no precipitation only contributes to temperature. The result is the median. consensus records the median, minimum, maximum, spread, provider count and provider names for every metric supplied by at least two sources. With fewer than two sources for all metrics, consensus is null and a reason is included. Individual values remain available. NWS minimum temperatures come from grid temperatures within the same local calendar day. Canadian night lows belong to the following morning: a Monday-night low contributes to Tuesday. If a provider has no minimum for the first forecast day, that field is omitted for that provider.

This is a comparison of providers, not an ensemble of independent models. MET Norway uses ECMWF outside the Nordic region, and DWD MOSMIX also uses IFS information. Agreement can therefore reflect shared model inputs. Spread describes disagreement between the available provider values; it is not a confidence interval or a calibrated probability of an outcome.

A provider's daily value only counts when that provider actually covers the local day. Maximum, minimum and wind need at least 18 covered hours including the night and the afternoon; a precipitation total needs the whole day, with at most one uncovered hour. A provider whose time series ends early in a day, such as the last day of a model horizon or the end of the NWS precipitation grid, is left out of that field for that day rather than contributing a partial value. Today is treated the same for every provider: only the remaining hours from fetched_at count, so today's maximum is the highest value still expected today. If no provider covers a day, the day is omitted with a warning and is not charged. Canadian forecasts are official period values (day high, night low) and are used as published. ECMWF uses the nearest 0.25-degree grid point, while DWD uses nearby stations. These resolutions can matter in mountains, coastal areas and small local climates.

Real output example

This is an excerpt of a real response for New York City, collected on 5 October 2026 with forecast_days: 7 and history_days: 7. It shows one forecast day with the four provider values, the median that became the headline value, and the consensus record for maximum temperature. The other consensus metrics, the observed days, current, the imperial fields and the attribution list are left out here for length.

{
"source": "super-weather-api",
"fetched_at": "2026-10-05T23:15:24.569648Z",
"lat": 40.71427,
"lng": -74.00597,
"name": "New York City",
"country_code": "US",
"timezone": "America/New_York",
"providers": [
"dwd",
"ecmwf",
"metno",
"ncei",
"nws"
],
"daily": [
{
"date": "2026-10-06",
"kind": "forecast",
"provider": "derived",
"temp_max_c": 16.9,
"temp_min_c": 9.14,
"precipitation_mm": 0.0,
"wind_speed_max_kmh": 21.77,
"per_source": {
"metno": {
"provider": "metno",
"issued_at": "2026-10-05T19:19:15Z",
"temp_max_c": 16.6,
"temp_min_c": 8.8,
"precipitation_mm": 0.0,
"wind_speed_max_kmh": 19.44
},
"dwd": {
"provider": "dwd",
"issued_at": null,
"temp_max_c": 17.2,
"temp_min_c": 11.3,
"wind_speed_max_kmh": 25.9,
"station": "NEW YORK"
},
"nws": {
"provider": "nws",
"issued_at": "2026-10-05T19:01:45+00:00",
"temp_max_c": 18.3,
"temp_min_c": 9.4,
"precipitation_mm": 0.0,
"wind_speed_max_kmh": 24.1
},
"ecmwf": {
"provider": "ecmwf",
"issued_at": "2026-10-05T12:00:00+00:00",
"temp_max_c": 16.47,
"temp_min_c": 8.89,
"precipitation_mm": 0.0,
"wind_speed_max_kmh": 13.35
}
},
"consensus": {
"temp_max_c": {
"median": 16.9,
"min": 16.47,
"max": 18.3,
"spread": 1.83,
"n_sources": 4,
"providers": [
"dwd",
"ecmwf",
"metno",
"nws"
],
"provider": "derived"
}
}
}
],
"alerts_coverage": "full",
"alerts": []
}

In the same run, Milan received a MeteoAlarm "Yellow Thunderstorm Warning for Italy - Lombardia" issued by the Italian Air Force National Meteorological Service, with the original warning object attached, and Toronto received a yellow frost advisory from Environment and Climate Change Canada.

History and warnings

Germany uses DWD observations. US history combines recent NWS station observations and NOAA NCEI GHCN-Daily records from US stations. NWS history starts at local midnight and requires temperature observations in at least twenty distinct hours, including the start and end of the local day. Incomplete days are omitted with a warning and incur no location-day charge. Canada uses ECCC climate-daily stations with actual populated values. Other locations use Meteostat bulk records within the available station radius. Values with model or mixed model flags are excluded from observed history. NCEI can publish several days after an observation, and recent days can consequently be missing. NCEI history selects the nearest station that supplies both maximum and minimum temperatures and overlaps the requested dates. Closed stations and stations that report only rainfall are excluded. Up to two further eligible stations are tried if a data response contains no temperatures for the requested dates.

Warnings retain original text and an original source object. MeteoAlarm warnings are filtered to the point's warning area, expiry and an available language, preferring English. Green awareness messages are excluded. alerts_coverage: "full" means at least one regional warning source was queried successfully; an empty alerts list then means that source returned no active warning for the location. US and Canadian warnings are queried even when nws or eccc is absent from sources. Disabled alerts, missing geographical coverage and failed warning requests give alerts_coverage: "none" with a reason in warnings. The United Kingdom has no usable warning coverage in this version. In Germany, MeteoAlarm republishes DWD warnings; when the DWD warning request succeeds, only the DWD copies are returned, so a warning is not listed twice. MeteoAlarm remains the fallback when DWD is unavailable.

Time delays between this website and the www.meteoalarm.org website are possible. For the most up-to-date awareness information as published by the participating National Meteorological and Hydrological Services, please refer to www.meteoalarm.org.

Use cases

  • Travel and events. Compare the forecast for several destinations or venues in one run and see where providers disagree before committing to a date.
  • Location data enrichment. Add current conditions, recent observed weather and active warnings to a list of stores, sites or properties.
  • Weather dashboards and apps. Use the median as the headline value and show the spread as an honest signal of forecast uncertainty, with credits ready to display.
  • Analytics and reporting. Join historical weather data to sales, footfall or delivery data by place and date, with observed days kept separate from forecasts.
  • Risk and operations. Monitor official warnings for a portfolio of locations in Europe, the United States and Canada, with the issuing service and original text preserved.

How it compares with other weather APIs

Most weather actors in the Apify Store wrap a single source and return that source's numbers. Commercial weather APIs usually require their own account, an API key and a monthly plan. This actor takes a different approach:

This weather APITypical single-source actorTypical commercial weather API
Forecast providers per placeUp to five, by regionOneOne (their own blend)
Consensus with spreadMedian, min, max, spread per metricNoNo
Provider value per fieldYes, in per_source and field_sourcesNoNo
Observed historyStation observations, never model fillOften model reanalysisVaries by plan
Official warningsNWS, ECCC, DWD, MeteoAlarmRarelyVaries by plan
Licence credits in the outputYes, per rowRarelyTerms page only
Account and API keyYour Apify account onlyYour Apify account onlySeparate signup

Pricing

The proposed launch price is $0.01 per run plus $0.004 per delivered location-day. One location-day means one actually delivered daily record for one location, whether forecast or observed history. Several provider values for the same day count once. Missing days and failed locations do not incur a location-day charge. The start fee applies once per run, including runs without weather results. Check the actor's Pricing tab for the published price before running it; the launch proposal awaits publication review.

Users without a paid Apify plan receive at most ten location rows and incur at most ten location-day charges per run, plus the single start fee. All requested forecast and history days remain available within those rows; any delivered location-days beyond the first ten are not charged. Paying users are charged for every delivered location-day and can request up to one thousand places with automatic continuation. Run limits supplied by Apify still apply. Attribution does not constitute endorsement by any source agency.

Attribution and licences

Based on data from MET Norway, under NLOD 2.0 and CC BY 4.0. Source: MET Norway. Unit conversion and daily aggregation are modifications by ShoppingResult.

Source: U.S. National Weather Service, public domain; not endorsed by NOAA/NWS and not official government material. See the NWS disclaimer. Source values are normalised and aggregated.

Quelle: Deutscher Wetterdienst. Datenbasis: Deutscher Wetterdienst; values are converted and aggregated by ShoppingResult, under CC BY 4.0, via Bright Sky. Original warnings are preserved.

Data Source: Environment and Climate Change Canada, under the Data Services End-use Licence. Numeric values are normalised and aggregated. Original warnings are preserved.

EUMETNET – MeteoAlarm, under CC BY 4.0 and additional redistribution conditions. Each warning includes its national meteorological service and issue time. Original warning objects are included alongside the normalised fields.

This service is based on data and products of the European Centre for Medium-Range Weather Forecasts (ECMWF). Source www.ecmwf.int. This ECMWF data is published under a Creative Commons Attribution 4.0 International (CC BY 4.0). ECMWF does not accept any liability whatsoever for any error or omission in the data, their availability, or for any loss or damage arising from their use. Modifications: nearest grid-point selection, unit conversion and daily aggregation.

Source: Meteostat and its data providers, CC BY 4.0, filtered to observed values. Original provider flags are retained. NOAA NCEI GHCN-Daily v3 is cited as Menne et al. (2012), doi:10.7289/V5D21VHZ; US federal data are public domain in the United States and supplied without warranty. Place metadata: GeoNames, CC BY 4.0, selected and matched by ShoppingResult. Each output row credits the sources actually used.

FAQ

Why does a place have fewer forecast providers?

Regional coverage, station distance, source outages and the available forecast horizon affect the number of providers. Read warnings, per_source and the count for the metric concerned. Missing sources are never replaced with fabricated values.

Why can temperature metrics have different provider counts?

Each metric is counted separately, and a provider only contributes what it publishes for that local day. National text forecasts can drop the daytime period as the day progresses. A forecast for "Tonight" supplies a low for the following morning; it does not fill a missing minimum for the day before. Check n_sources per metric rather than assuming one count per day.

Does imperial input change the core schema?

No. The metric core is preserved and imperial fields are added. This keeps saved datasets suitable for joins and comparisons across runs.

Why is a historical day missing?

A station may not have published observations, the record may still be delayed, or the available value may be modelled. The actor reports the missing date and only bills the daily records that were delivered.

Can I redistribute the output?

The selected sources permit commercial reuse subject to their licences and credits. Preserve attribution and original warning content, include the MeteoAlarm disclaimer and keep the source licence links when displaying or redistributing results.

Is this a free weather API?

Not entirely. The run start fee and each delivered location-day are charged as listed under Pricing, and users without a paid Apify plan are limited to ten places per run. There is no separate signup and no API key to manage: the actor runs on your Apify account.

Can I call this weather API from my own code?

Yes. Start the actor through the Apify API or one of the Apify clients for Python and JavaScript, wait for the run, and read the dataset. Each dataset item is one weather_place row as described above, so the same parser works for one place or a thousand.

How far back does the historical weather data go?

history_days accepts up to thirty days before today. The history consists of observed station values, so the depth that is actually filled depends on the stations near the place and on publication delays.

How fresh is the ECMWF forecast?

ECMWF open data is published twice a day, at 00 and 12 UTC, and a run becomes available in stages. The actor only uses a run once all of its forecast steps are published; until then it keeps using the previous complete run. The issued_at field in the ecmwf entry shows which run you received. A run older than 36 hours is never delivered: ECMWF is then left out of the consensus and a warning explains why.