Weather Maps API

Live global weather map tiles for precipitation, snowfall, cloud cover, and temperature.

API Guide

Weather Maps API

Live global weather map tiles for precipitation, snowfall, cloud cover, and temperature.

This API returns map tiles for a variety of weather fields. Supported fields are: current precipitation, temperature, and cloud cover. Maps are updated once every 15 minutes. Most currently available maps can be viewed on our maps page. Use this for tiled weather map rendering with clients like Leaflet, OpenLayers, and Mapbox.

Note: Map tile integrations can easily consume hundreds of requests per use. Please make sure you are in an appropriate API subscription to avoid rate limiting.

  • Supported sources: temp2m (Temperature), catprecipdbz (Precipitation), fullsat (Satellite).
  • Requires key query parameter.

Base URL

  • http://maps.weatherbit.io/v2.0/{source}/{field}/{time}/{z}/{x}/{y}.png
  • https://maps.weatherbit.io/v2.0/{source}/{field}/{time}/{z}/{x}/{y}.png

Request Parameters

Field Optional/Required Type Data Type Description
key Required Your API key as a query parameter.
source Required Tile source segment in URL path (singleband). Options: singleband
field Required Weather map layer segment in URL path. Options: catprecipdbz, fullsat, temp2m
time Required Timestamp segment or latest in URL path. Options: latest
z Required Tile zoom level segment.
x Required Tile X coordinate segment.
y Required Tile Y coordinate segment.

LeafletJS Tile Example

Enter API key
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<div id="map" style="height: 360px;"></div>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script>
  const map = L.map("map").setView([35.7796, -78.6382], 5);
  L.tileLayer("https://maps.weatherbit.io/v2.0/singleband/__MAPS_FIELD__/latest/{z}/{x}/{y}.png?key=API_KEY", {
    maxZoom: 10,
    attribution: "Weatherbit Maps API"
  }).addTo(map);
</script>

Related Resources