Foreca Weather API · Documentation
Weather Maps API Documentation
Visualize weather anywhere in the world with high-quality map layers for radar, satellite, precipitation, cloudiness, temperature, wind and more. Tiles are 256x256 PNGs compatible with common map libraries such as OpenStreetMap, Leaflet, MapLibre and Google Maps. All required and optional parameters are given as path and query parameters respectively.
Read more about features, use cases and plans: Weather Maps API overview
Send your API key or access token in the Authorization: Bearer header, or as the token query parameter. A map library in a web page or an app fetches tiles from the user's device, where anyone can read the key, so let it fetch them from your own server, which adds the key; the JavaScript quickstart shows one. Authorization explains how to get a key. Start with the Capabilities endpoint: it lists the layers and the times, color schemes and zoom levels you need to request their tiles.
Precipitation types on radar layers include rain, sleet, and snow.
Available standard map layers
Precipitation radar, satellite, temperature, wind, air quality, pollen and more, across global and regional coverage. The layer catalog lists every layer the capabilities endpoint returns, with its id, coverage, zoom levels and time range.
Zoom levels correspond to Google Maps zoom levels. Global region latitudes: minLat: -73, maxLat: 73, minLon: -180, maxLon: 180
The Map API delivers maps as a grid of individual images called tiles. Usage is measured based on the number of tiles served to your application — each tile counts as one API request.
To significantly reduce the amount of data your browser requests and speed up map loading, we recommend caching map tiles. This means your browser will temporarily store recently viewed map sections. The duration of this storage depends on how often the map data updates. For example, frequently changing data like radar updates are cached for shorter periods than less frequent updates like temperature. By caching, you'll experience faster map performance and lower data usage.
Endpoints
Capabilities
Capabilities endpoint is used to fetch layer metadata. This metadata is used to perform image queries. Capabilities-response provides layer information such as description, temporal and spatial extents as well as available color schemes.
Images are layers renderable to image formats such as png or svg. The current data property in time element is the index to the most recent available time.
Layers may have additional color schemes which can be optionally specified. Several layers have transparency in the color scheme by default, enabling them to be overlaid directly onto a map. Alternatively, we also offer non-transparent color schemes when only the details of the map – like country borders, roads and city names – are to be placed on top of the weather layer. If an alternative color scheme is available, you can find it in the capabilities endpoint.
Query Parameters
tokenType: stringYour API key or access token, if you do not send it in the Authorization header
/api/v1/capabilitiesShell Curlcurl 'https://weatherapi.foreca.net/api/v1/capabilities' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'{
"images": [
{
"id": 2,
"attribution": null,
"title": "Temperature",
"description": "Global surface temperature",
"formats": [
"image/png"
],
"colorschemes": [
"default"
],
"times": {
"updated": "2022-01-27T00:00:00Z",
"available": [
"2022-01-27T06:00:00Z"
],
"current": 33
},
"analysis": "20240222000000",
"extent": {
"minLat": -90,
"maxLat": 90,
"minLon": -180,
"maxLon": 180,
"minZoom": 2,
"maxZoom": 14
}
}
]
}{
"type": "object",
"properties": {
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"example": 2
},
"attribution": {
"type": "string",
"nullable": true
},
"title": {
"type": "string",
"example": "Temperature"
},
"description": {
"type": "string",
"example": "Global surface temperature"
},
"formats": {
"type": "array",
"items": {
"type": "string",
"example": "image/png"
}
},
"colorschemes": {
"type": "array",
"items": {
"type": "string",
"example": "default"
}
},
"times": {
"type": "object",
"properties": {
"updated": {
"type": "string",
"example": "2022-01-27T00:00:00Z"
},
"available": {
"type": "array",
"items": {
"type": "string",
"example": "2022-01-27T06:00:00Z"
}
},
"current": {
"type": "number",
"example": 33
}
}
},
"analysis": {
"type": "string",
"example": "20240222000000"
},
"extent": {
"type": "object",
"properties": {
"minLat": {
"type": "number",
"example": -90
},
"maxLat": {
"type": "number",
"example": 90
},
"minLon": {
"type": "number",
"example": -180
},
"maxLon": {
"type": "number",
"example": 180
},
"minZoom": {
"type": "number",
"example": 2
},
"maxZoom": {
"type": "number",
"example": 14
}
}
}
}
}
}
}
}Tile
Tile endpoint is used to obtain weather map tiles (size 256x256) for the given layer and color scheme.
Example response

Path Parameters
idType: stringrequiredLayer id
xType: stringrequiredX index of the requested tile
yType: stringrequiredY index of the requested tile
zType: stringrequiredZoom level of the requested tile
timeType: stringrequiredUTC timestamp value for the data to retrieve in ISO 8601 format. Must appear in the available times list
Query Parameters
tokenType: stringYour API key or access token, if you do not send it in the Authorization header
colorschemeType: stringLayer color scheme. Must appear in the color scheme list returned by capabilities endpoint
updatedType: stringInclude the updated timestamp as an optional query parameter when requesting rapidly updating layers to prevent fetching tiles from outdated analyses.
analysesType: stringInclude the analyses timestamps as an optional query parameter when requesting rapidly updating radar layers to prevent fetching tiles from outdated analyses
windunitType: stringWind speed unit on the wind symbol map layer. Supported values: ms (m/s, the default), knots, kmh (km/hour), or mph (miles/hour).
/api/v1/image/tile/{z}/{x}/{y}/{time}/{id}Shell Curlcurl 'https://weatherapi.foreca.net/api/v1/image/tile/{z}/{x}/{y}/{time}/{id}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'Symbol
Symbol endpoint serves compact multi‑location forecast "symbol tiles" for three modes: current, hourly, and daily. Parameters x, y and z have the same meaning as in the Tile endpoint. Symbol endpoint returns a JSON tile with per‑location current or forecast timesteps including temperature and weather symbol codes, designed for use as map overlays with minimal payload.
Path Parameters
modeType: stringrequiredOne of: "current" for the nearest full hour, or "hourly" or "daily" for forecasts. The forecasts cover five days, that is, 120 hourly or 5 daily timesteps
Query Parameters
xType: stringrequiredX index of the requested JSON tile
yType: stringrequiredY index of the requested JSON tile
zType: stringrequiredZoom level of the requested JSON tile. Valid range: 3..12
unitsType: stringUse units=C for Celsius or units=F for Fahrenheit. Default: units=C
wrapType: stringUse wrap=1 for automatic horizontal wrapping of tiles. It makes x = x % (max(x) + 1), where max(x) is the maximum x on the selected zoom level (z). Default: wrap=0
/api/v1/symbol/{mode}Shell Curlcurl 'https://weatherapi.foreca.net/api/v1/symbol/{mode}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'{
"locations": [
{
"city": "Tampere",
"id": 100634963,
"lat": "61.499114990",
"lon": "23.787117004",
"timesteps": [
{
"symbol": "n400",
"temperature": 4.72,
"time": "2025-12-03T14:00"
}
]
}
]
}{
"type": "object",
"properties": {
"locations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"city": {
"type": "string",
"example": "Tampere",
"description": "City name"
},
"id": {
"type": "number",
"example": 100634963,
"description": "Location id"
},
"lat": {
"type": "string",
"example": "61.499114990",
"description": "Latitude (decimal degrees)"
},
"lon": {
"type": "string",
"example": "23.787117004",
"description": "Longitude (decimal degrees)"
},
"timesteps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"symbol": {
"type": "string",
"example": "n400",
"description": "Weather symbol code (see symbol codes in \"Resources\")"
},
"temperature": {
"type": "number",
"example": 4.72,
"description": "Air temperature (units according to units parameter)"
},
"time": {
"type": "string",
"example": "2025-12-03T14:00",
"description": "UTC date and time (for current or hourly mode), or date (for daily mode) of the JSON tile, in ISO 8601 format"
}
}
},
"description": "Array of timestep objects (length depends on mode)"
}
}
}
}
}
}Legend
Legend endpoint is used to obtain legend image for a color scheme
Example response
The legend of the 5 minute Europe Weather Radar Composite, /api/v1/legend/default/115.
Path Parameters
colorschemeType: stringrequiredColor scheme id. Must appear in the color scheme list returned by capabilities endpoint
idType: stringrequiredLayer id
Query Parameters
tokenType: stringYour API key or access token, if you do not send it in the Authorization header
/api/v1/legend/{colorscheme}/{id}Shell Curlcurl 'https://weatherapi.foreca.net/api/v1/legend/{colorscheme}/{id}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'Map layers
The 43 layers the capabilities endpoint returns. Request a tile with the layer id; the zoom, time step and time range are read from the same response and refresh every 30 minutes.
Precipitation radar
-
EuropeEurope precipitation radar and forecast
Radar + radar forecast + cell simulated precipitation with precipitation type (EU)
- rain
- sleet
- snow
- Layer id
5- Zoom
- 2–21
- Time step
- 15 min
- History
- 26 h
- Forecast
- 3 days
- Updates
- every 15 min
Coverage
Albania*, Andorra, Austria, Belgium, Bosnia & Herzegovina, Bulgaria, Croatia, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Kosovo, Latvia, Liechtenstein, Lithuania*, Luxembourg, Malta, Monaco, Montenegro, Netherlands, North Macedonia, Norway, Poland, Portugal, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, The UK (*partial coverage)
-
Europe5 minute Europe Weather Radar Composite
Real-time weather radar composite for Europe in 1km resolution + radar forecast + precipitation type
- rain
- sleet
- snow
- Layer id
115- Zoom
- 2–21
- Time step
- 5 min
- History
- 3 h
- Forecast
- 2 h
- Updates
- every 5 min
Coverage
Europe (see above)
-
Europe5 minute Europe Weather Radar Composite with lightning
Real-time weather radar composite for Europe in 1km resolution + radar forecast + precipitation type + lightning
- rain
- sleet
- snow
- Layer id
141- Zoom
- 2–21
- Time step
- 5 min
- History
- 3 h
- Forecast
- 2 h
- Updates
- every 5 min
Coverage
Europe (see above)
-
North AmericaNorth America radar and precipitation forecast
Radar + radar forecast + cell simulated precipitation with precipitation type (North America)
- rain
- sleet
- snow
- Layer id
10- Zoom
- 2–21
- Time step
- 5 min
- History
- 12 h
- Forecast
- 3 days
- Updates
- every 5 min
Coverage
Continental USA, Alaska, Hawaii, Puerto Rico, Canada (partial coverage)
-
North AmericaNorth America radar with lightning and radar forecast
Real-time weather radar composite for North America + radar forecast + precipitation type + lightning
- rain
- sleet
- snow
- Layer id
123- Zoom
- 2–21
- Time step
- 5 min
- History
- 12 h
- Forecast
- 3 h
- Updates
- every 5 min
Coverage
Continental USA, Alaska, Hawaii, Puerto Rico, Canada (partial coverage)
-
East AsiaEastern Asia radar and precipitation forecast
Radar + radar forecast + cell simulated precipitation with precipitation type (Eastern Asia)
- rain
- sleet
- snow
- Layer id
39- Zoom
- 2–21
- Time step
- 10 min
- History
- 24 h
- Forecast
- 3 days
- Updates
- every 10 min
Coverage
Japan, Taiwan, South Korea
-
SE AsiaSoutheast Asia Radar Composite
Radar composite (Southeast Asia)
- rain
- sleet
- snow
- Layer id
126- Zoom
- 2–21
- Time step
- 10 min
- History
- 24 h
- Forecast
- 110 min
- Updates
- every 10 min
Coverage
Thailand, Philippines, Malaysia, Vietnam, Singapore, Brunei, (parts of Laos, Cambodia)
-
AustraliaAustralia 1km 5min radar composite
Australia radar composite
- rain
- Layer id
94- Zoom
- 2–21
- Time step
- 5 min
- History
- 3 h
- Forecast
- 105 min
- Updates
- every 5 min
Coverage
Australia
-
AustraliaAustralia precipitation radar and forecast
Radar + radar forecast + cell simulated precipitation with precipitation type (Australia)
- rain
- sleet
- snow
- Layer id
21- Zoom
- 2–21
- Time step
- 10 min
- History
- 24 h
- Forecast
- 3 days
- Updates
- every 10 min
Coverage
Australia
-
GlobalPrecipitation forecast
Global precipitation forecast with precipitation type
- rain
- sleet
- snow
- Layer id
22- Zoom
- 2–21
- Time step
- 15 min
- History
- 21 h
- Forecast
- 3 days
- Updates
- every 12h
Coverage
global
-
ThailandThailand Weather Radar Composite
Real-time weather radar composite for Thailand + radar forecast
- rain
- Layer id
91- Zoom
- 2–21
- Time step
- 15 min
- History
- 8 h
- Forecast
- 2 h
- Updates
- every 15 min
Coverage
Thailand
-
TurkeyTurkey Weather Radar Composite
Real-time weather radar composite for Turkey + radar forecast
- rain
- Layer id
90- Zoom
- 2–21
- Time step
- 6 min
- History
- 3 h
- Forecast
- 96 min
- Updates
- every 12 min
Coverage
Turkey
-
BrazilBrazil Weather Radar Composite
Real-time weather radar composite for Brazil + radar forecast
- rain
- Layer id
89- Zoom
- 2–21
- Time step
- 20 min
- History
- 10 h
- Forecast
- 2 h
- Updates
- every 20 min
Coverage
Brazil
-
East MalaysiaEast Malaysia Weather Radar Composite
Real-time weather radar composite for Eest Malaysia + radar forecast
- rain
- Layer id
92- Zoom
- 2–21
- Time step
- 10 min
- History
- 5 h
- Forecast
- 110 min
- Updates
- every 10 min
Coverage
East Malaysia
-
Peninsular MalaysiaPeninsular Malaysia Weather Radar Composite
Real-time weather radar composite for Peninsular Malaysia + radar forecast
- rain
- Layer id
93- Zoom
- 2–21
- Time step
- 10 min
- History
- 5 h
- Forecast
- 110 min
- Updates
- every 10 min
Coverage
Peninsular Malaysia
-
Canary IslandsCanary Weather Radar Composite
Real-time weather radar composite for Canary Islands + radar forecast
- rain
- sleet
- snow
- Layer id
114- Zoom
- 2–21
- Time step
- 10 min
- History
- 9 h
- Forecast
- 4 h
- Updates
- every 10 min
Coverage
Canary Islands
-
MexicoMexico Weather Radar Composite
Real-time weather radar composite for Mexico
- rain
- Layer id
128- Zoom
- 2–21
- Time step
- 10 min
- History
- 6 h
- Forecast
- 100 min
- Updates
- every 10 min
Coverage
Mexico
-
AustraliaAustralia Weather Radar Composite
Real-time weather radar composite for Australia + radar forecast + precipitation type
- rain
- sleet
- snow
- Layer id
133- Zoom
- 2–21
- Time step
- 10 min
- History
- 24 h
- Forecast
- 3 h
- Updates
- every 10 min
Coverage
Australia
-
East AsiaEastern Asia Weather Radar Composite
Real-time weather radar composite for Eastern Asia + radar forecast + precipitation type
- rain
- sleet
- snow
- Layer id
134- Zoom
- 2–21
- Time step
- 10 min
- History
- 24 h
- Forecast
- 110 min
- Updates
- every 10 min
Coverage
Japan, Taiwan, South Korea
Precipitation accumulation
-
EuropeEurope 1 Hour Radar Precipitation Accumulation
Accumulation of precipitation from radar in Europe during an hour.
- rain
- Layer id
136- Zoom
- 2–21
- Time step
- 1 h
- History
- 5 days
- Updates
- every 1 hour
Coverage
Europe
-
EuropeEurope 24 Hour Radar Precipitation Accumulation
Accumulation of precipitation from radar in Europe during 24 hours.
- rain
- Layer id
137- Zoom
- 2–21
- Time step
- 1 h
- History
- 6 days
- Updates
- every 1 hour
Coverage
Europe
-
North AmericaNorth America 1 Hour Radar Precipitation Accumulation
Accumulation of precipitation from radar in North America during an hour.
- rain
- Layer id
138- Zoom
- 2–21
- Time step
- 1 h
- History
- 4 days
- Updates
- every 1 hour
Coverage
Continental USA, Alaska, Hawaii, Puerto Rico, Canada (partial coverage)
-
North AmericaNorth America 24 Hour Radar Precipitation Accumulation
Accumulation of precipitation from radar in North America during 24 hours.
- rain
- Layer id
139- Zoom
- 2–21
- Time step
- 1 h
- History
- 4 days
- Updates
- every 1 hour
Coverage
Continental USA, Alaska, Hawaii, Puerto Rico, Canada (partial coverage)
Lightning
-

Global lightning
Near Global lightning strikes from satellites with 10 minute interval (Meteosat and GOES)
- Layer id
143- Zoom
- 2–21
- Time step
- 10 min
- History
- 24 h
- Updates
- every 10 min
Coverage
North America, South America, Europe, Africa, Middle East (Near Global)
Satellite
-

Satellite
Cloud cover from satellite
- Layer id
14- Zoom
- 2–21
- Time step
- 1 h
- History
- 32 h
- Updates
- every 1h
Coverage
global
-

Satellite 10 minutes day/night
Cloud cover from satellite with 10 minute resolution, day and night composite
- Layer id
140- Zoom
- 2–21
- Time step
- 10 min
- History
- 90 min
- Updates
- every 10 min
Coverage
global
-

Satellite and cloud forecast
Satellite observations + cloud forecast
- Layer id
130- Zoom
- 2–21
- Time step
- 1 h
- History
- 33 h
- Forecast
- 39 h
Coverage
global
Temperature & atmosphere
-

Temperature
Global surface temperature
- Layer id
2- Zoom
- 2–21
- Time step
- 1 h
- History
- 24 h
- Forecast
- 5 days
- Updates
- every 12h
Coverage
global
-

Cloud cover
Global cloud cover forecast
- Layer id
4- Zoom
- 2–21
- Time step
- 1 h
- History
- 20 h
- Forecast
- 3 days
- Updates
- every 6h
Coverage
global
-

UV Index
Global UV index forecast
- Layer id
9- Zoom
- 2–21
- Time step
- 1 day
- History
- 24 h
- Forecast
- 5 days
- Updates
- every 12h
Coverage
global
-

Sea temperature
Global sea temperature
- Layer id
43- Zoom
- 2–21
- Time step
- 1 h
- History
- 24 h
- Forecast
- 5 days
- Updates
- every 12h
Coverage
global, NOTE! Land areas are also covered. It is easiest to add a map layer on top of the sea temperature layer.
-

Mean sea level pressure
Mean sea level pressure (contour)
- Layer id
81- Zoom
- 4–14
- Time step
- 3 h
- History
- 36 h
- Forecast
- 3 days
- Updates
- every 12h
Coverage
global
-

Mean sea level pressure
Mean sea level pressure (colored)
- Layer id
80- Zoom
- 2–21
- Time step
- 3 h
- History
- 36 h
- Forecast
- 3 days
- Updates
- every 12h
Coverage
global
-

Approximate snow depth
Approximation of global snow depth
- Layer id
77- Zoom
- 2–21
- Time step
- 3 h
- History
- 24 h
- Forecast
- 9 days
- Updates
- every 12h
Coverage
global
Wind
-

Wind symbol
Wind symbol with wind speed and direction
- Layer id
3- Zoom
- 2–21
- Time step
- 1 h
- History
- 36 h
- Forecast
- 3 days
- Updates
- every 12h
Coverage
global
-

Wind
Global wind forecast
- Layer id
8- Zoom
- 2–21
- Time step
- 1 h
- History
- 36 h
- Forecast
- 3 days
- Updates
- every 12h
Coverage
global
Air quality
-

Air quality index
Global air quality index + forecast
- Layer id
79- Zoom
- 2–21
- Time step
- 1 h
- History
- 14 h
- Forecast
- 3 days
- Updates
- every 1h
Coverage
global
Pollen (Europe)
-

Ragweed pollen forecast
Ragweed pollen forecast for Europe
- Layer id
45- Zoom
- 2–21
- Time step
- 1 h
- History
- 38 h
- Forecast
- 45 h
- Updates
- every 24h
Coverage
Europe
-

Alder pollen forecast
Alder pollen forecast for Europe
- Layer id
47- Zoom
- 2–21
- Time step
- 1 h
- History
- 38 h
- Forecast
- 45 h
- Updates
- every 24h
Coverage
Europe
-

Birch pollen forecast
Birch pollen forecast for Europe
- Layer id
48- Zoom
- 2–21
- Time step
- 1 h
- History
- 38 h
- Forecast
- 45 h
- Updates
- every 24h
Coverage
Europe
-

Olive pollen forecast
Olive pollen forecast for Europe
- Layer id
49- Zoom
- 2–21
- Time step
- 1 h
- History
- 38 h
- Forecast
- 45 h
- Updates
- every 24h
Coverage
Europe
-

Grass pollen forecast
Grass pollen forecast for Europe
- Layer id
50- Zoom
- 2–21
- Time step
- 1 h
- History
- 38 h
- Forecast
- 45 h
- Updates
- every 24h
Coverage
Europe
-

Mugwort pollen forecast
Mugwort pollen forecast for Europe
- Layer id
51- Zoom
- 2–21
- Time step
- 1 h
- History
- 38 h
- Forecast
- 45 h
- Updates
- every 24h
Coverage
Europe
Try the layers on a map
Every layer above on a live map, with its colour schemes, legend and time steps, drawn from the same tile and capabilities endpoints.
Loads about 1 MB of map code and live tiles.