https://api.rainviewer.com/public/weather-maps.json
Contains the past 2 hours of weather radar data with 10-minute intervals. Suitable to display in applications, on websites, or in any other mapping software.
Path format changed. The identifier in the path field changed from a Unix timestamp to a hash (72250d5768d7 instead of 1609401600). The path structure /v2/radar/{id} remains the same. You must use the path value from the API response as-is. Constructing tile URLs by inserting timestamps into paths will no longer work.
/v2/radar/latest/ discontinued. The latest endpoint is no longer available and returns HTTP 400. To get the most recent radar frame, use the last element of the radar.past array from the API response.
Legacy API files discontinued. The following endpoints are no longer available:
maps.jsonmaps2.jsonmaps3.jsonUse https://api.rainviewer.com/public/weather-maps.json as the only supported endpoint.
How to migrate. If your code constructs tile URLs by inserting Unix timestamps into paths (e.g., /v2/radar/{timestamp}/...), update it to use the path value directly from the API response instead. The time field is still available for display and sorting purposes.
Here is an example of the weather maps API file. The data inside the example is out of date and cannot be used in real queries. To get actual data, please open the API file directly.
{
"version": "2.0",
"generated": 1609402525,
"host": "https://tilecache.rainviewer.com",
"radar": {
"past": [
{
"time": 1609401600,
"path": "/v2/radar/72250d5768d7"
},
{
"time": 1609402200,
"path": "/v2/radar/a1b2c3d4e5f6"
}
]
}
}
| key | Description | Example |
|---|---|---|
| version | API Version. Values: String(8) | “2.0.1” |
| generated | Unix timestamp date (UTC) when this API file was generated. Useful for checking for updates. Values: Int(8) | 1609402525 |
| host | Host and protocol for the images. Values: String(255) | https://tilecache.rainviewer.com |
| radar | Weather radar maps. Values: Radar object |
| key | Description | Example |
|---|---|---|
| past | Past weather radar frames. 2 hours, with 10-minute steps. Values: Array(Frame Object) |
| key | Description | Example |
|---|---|---|
| time | Map frame generation date in UNIX timestamp format (UTC). The map frame typically contains the images (radar) from different times, so this is not the time of the data rather than frame generation time. Values: Int(8) | 1609401600 |
| path | Base path for the images of that frame. Contains a hash identifier, not a timestamp. Always use this value as-is when constructing tile URLs. For information on its usage, refer to the next How to use host and path information section of this page Values: String(255) | /v2/radar/72250d5768d7 |
host and path informationYou should use the host and path data from the API as a part of the URL. Always use the path value from the API response directly — do not construct paths manually using timestamps. All available URLs and their parameters are described below.
Each url starts with {host}, where:
{host} is a host from the Root Object of this API.| URL | Description |
|---|---|
{path}/{size}/{z}/{x}/{y}/{color}/{options}.png | Radar data: displays one tile with the composite radar reflectivity data, with specified size, color scheme, and additional options. |
{path}/{size}/{z}/{lat}/{lon}/{color}/{options}.png | Radar data: same as the link above, but with the center at specified coordinates (EPSG:4326) with desired zoom size. Great for widgets. |
Parameters:
{x}, {y}, {z} – x, y, and zoom level of the tile that you want to download. Maximum zoom level is 7. Read more about tiles{lat}, {lon} - latitude and longitude of specific coordinates accordingly. Decimal format. Must contain a dot in the number. Example: -32.7892, 108.67821.{size} – image size, can be 256 or 512.{color} - the color scheme ID. See Color Schemes.{options} – list of options separated by the _ symbol. For example: ‘1_0’ means smoothed (1) image without snow color scheme (0). Two options are available: {smooth}_{snow}{smooth} - blur (1) or not (0) radar data.{snow} - display (1) or not (0) snow in separate colors on the tiles.Additionally, one more product is available: the weather radar coverage mask. This mask shows where weather radar coverage is available (transparent areas) and where it is not (black areas). We don’t update this mask often. The links are the same as for radar products, but without options and color scheme.
| URL | Description |
|---|---|
/v2/coverage/0/{size}/{z}/{x}/{y}/0/0_0.png | Coverage tile: where radar data is available (transparent areas) and where it is not (black areas). |
/v2/coverage/0/{size}/{z}/{lat}/{lon}/0/0_0.png | Coverage data as above but for specified center coordinates (latitude, longitude). |
Basic HTML + JS (Leaflet) example: github.com/rainviewer/rainviewer-api-example
| Description | Link |
|---|---|
| Standard tile (x/y/z) | [RADAR_PATH]/512/2/2/1/2/1_1.png |
| Coordinate tile (lat/lon) | [RADAR_PATH]/256/2/35.71/-70.87/2/1_1.png |
For coverage requests, set color scheme and options to “0”. Coverage may be hard to see against white backgrounds due to transparency.
| Description | Link |
|---|---|
| Standard tile | /v2/coverage/0/512/2/2/1/0/0_0.png |
| Coordinate tile | /v2/coverage/0/512/3/35.71/-70.87/0/0_0.png |