Weather - Get Minute Forecast
Use to get a minute-by-minute forecast for the next 120 minutes in intervals of
1, 5 and 15 minutes.
The Get Minute Forecast API is an HTTP GET request that returns
minute-by-minute forecasts for a given location for the next 120 minutes.
Users can request weather forecasts in intervals of 1, 5 and 15 minutes. The
response will include details such as the type of precipitation (including
rain, snow, or a mixture of both), start time, and precipitation intensity
value (dBZ). For more information, see Request minute-by-minute weather
forecast
data.
GET {endpoint}/weather/forecast/minute/json?api-version=1.1&query={query}
GET {endpoint}/weather/forecast/minute/json?api-version=1.1&query={query}&interval={interval}&language={language}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
endpoint
|
path | True |
string (uri) |
The Azure Maps service hostname. Use |
|
format
|
path | True |
Desired format of the response. Only |
|
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
|
query
|
query | True |
number[] |
The applicable query specified as a comma separated string composed by latitude followed by longitude e.g. "47.641268,-122.125679". Weather information is generally available for locations on land, bodies of water surrounded by land, and areas of the ocean that are within approximately 50 nautical miles of a coastline. |
|
interval
|
query |
integer (int32) |
Specifies time interval in minutes for the returned weather forecast. Supported values are
|
|
|
language
|
query |
string |
Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used. Please refer to Supported Languages for details. |
Request Header
| Name | Required | Type | Description |
|---|---|---|---|
| x-ms-client-id |
string |
Indicates the account intended for use with the Microsoft Entra ID security model. This unique ID for the Azure Maps account can be obtained from the Azure Maps management plane Account API. For more information on using Microsoft Entra ID security in Azure Maps, see Manage authentication in Azure Maps. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
The request has succeeded. |
|
| Other Status Codes |
An unexpected error response. |
Security
AadToken
These are the Microsoft Entra OAuth 2.0 Flows. When paired with Azure role-based access control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.
To implement scenarios, we recommend viewing authentication concepts. In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.
Note
- This security definition requires the use of the
x-ms-client-idheader to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the Maps management API. - The
Authorization URLis specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Microsoft Entra ID configurations. - The Azure role-based access control is configured from the Azure management plane via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.
- Usage of the Azure Maps Web SDK allows for configuration based setup of an application for multiple use cases.
- For more information on Microsoft identity platform, see Microsoft identity platform overview.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| https://atlas.microsoft.com/.default |
subscription-key
This is a shared key that is provisioned when you Create an Azure Maps account in the Azure portal or using PowerShell, CLI, Azure SDKs, or REST API.
With this key, any application can access all REST API. In other words, this key can be used as a master key in the account that they are issued in.
For publicly exposed applications, our recommendation is to use the confidential client applications approach to access Azure Maps REST APIs so your key can be securely stored.
Type:
apiKey
In:
header
SAS Token
This is a shared access signature token is created from the List SAS operation on the Azure Maps resource through the Azure management plane via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.
With this token, any application is authorized to access with Azure role-based access controls and fine-grain control to the expiration, rate, and region(s) of use for the particular token. In other words, the SAS Token can be used to allow applications to control access in a more secured way than the shared key.
For publicly exposed applications, our recommendation is to configure a specific list of allowed origins on the Map account resource to limit rendering abuse and regularly renew the SAS Token.
Type:
apiKey
In:
header
Examples
Successfully retrieve minute-by-minute forecasts for a given location
Sample request
GET https://atlas.microsoft.com/weather/forecast/minute/json?api-version=1.1&query=47.632346,-122.138874&interval=15
Sample response
{
"intervalSummaries": [
{
"briefPhrase": "Rain ending in %minute_value min",
"endMinute": 24,
"iconCode": 12,
"longPhrase": "Rain ending in %minute_value min",
"shortPhrase": "Rain ending in %minute_value min",
"startMinute": 0,
"totalMinutes": 25
},
{
"briefPhrase": "No precipitation for at least %MINUTE_VALUE min",
"endMinute": 119,
"iconCode": 7,
"longPhrase": "No precipitation for at least %MINUTE_VALUE min",
"shortPhrase": "No precip for %MINUTE_VALUE min",
"startMinute": 25,
"totalMinutes": 95
}
],
"intervals": [
{
"cloudCover": 100,
"color": {
"blue": 2,
"green": 98,
"hex": "#086202",
"red": 8
},
"dbz": 23,
"iconCode": 12,
"minute": 0,
"precipitationType": "Rain",
"shortPhrase": "Light Rain",
"simplifiedColor": {
"blue": 39,
"green": 190,
"hex": "#23BE27",
"red": 35
},
"startTime": "2019-11-14T15:18:00-08:00",
"threshold": "LIGHT"
},
{
"cloudCover": 100,
"color": {
"blue": 9,
"green": 133,
"hex": "#208509",
"red": 32
},
"dbz": 18,
"iconCode": 12,
"minute": 15,
"precipitationType": "Rain",
"shortPhrase": "Light Rain",
"simplifiedColor": {
"blue": 39,
"green": 190,
"hex": "#23BE27",
"red": 35
},
"startTime": "2019-11-14T15:33:00-08:00",
"threshold": "LIGHT"
},
{
"cloudCover": 100,
"dbz": 0,
"iconCode": 7,
"minute": 30,
"shortPhrase": "No Precipitation",
"startTime": "2019-11-14T15:48:00-08:00"
},
{
"cloudCover": 100,
"dbz": 0,
"iconCode": 7,
"minute": 45,
"shortPhrase": "No Precipitation",
"startTime": "2019-11-14T16:03:00-08:00"
},
{
"cloudCover": 100,
"dbz": 0,
"iconCode": 7,
"minute": 60,
"shortPhrase": "No Precipitation",
"startTime": "2019-11-14T16:18:00-08:00"
},
{
"cloudCover": 100,
"dbz": 0,
"iconCode": 7,
"minute": 75,
"shortPhrase": "No Precipitation",
"startTime": "2019-11-14T16:33:00-08:00"
},
{
"cloudCover": 100,
"dbz": 0,
"iconCode": 7,
"minute": 90,
"shortPhrase": "No Precipitation",
"startTime": "2019-11-14T16:48:00-08:00"
},
{
"cloudCover": 100,
"dbz": 0,
"iconCode": 7,
"minute": 105,
"shortPhrase": "No Precipitation",
"startTime": "2019-11-14T17:03:00-08:00"
}
],
"summary": {
"briefPhrase": "Rain ending in 25 min",
"briefPhrase60": "Rain ending in 25 min",
"iconCode": 12,
"longPhrase": "Rain ending in 25 min",
"shortPhrase": "Rain ending in 25 min"
}
}
Definitions
| Name | Description |
|---|---|
|
Color |
An RGB color, returned in both component ( |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). |
|
Forecast |
Represents a single time slice within a minute-by-minute forecast,
describing the expected weather conditions during that interval. Each
interval covers 1, 5, or 15 minutes - depending on the resolution
requested - and includes the start time, precipitation intensity ( |
|
Icon |
The numeric weather-condition code that identifies which icon to display.
Each value in this enumeration corresponds to an Azure Maps weather icon
(such as Sunny, Cloudy, or Thunderstorms) and pairs with a human-readable
For the complete list of codes, the icons they map to, and example imagery, see Weather services in Azure Maps. |
|
Interval |
Describes the weather outlook for a contiguous window inside the
minute-by-minute forecast - typically a stretch of similar conditions such
as Rain ending in 25 min or Light snow starting in 10 min. Each summary
specifies the window in minutes from the forecast start ( |
|
Json |
Desired format of the response. Only |
|
Minute |
The response returned by the Get Minute Forecast operation, providing a
minute-by-minute precipitation outlook for a specified location over the
next 120 minutes at the requested resolution (1, 5, or 15 minutes). The
response is organized into three layers: an overall |
|
Minute |
Provides phrase summaries describing the precipitation outlook for the
upcoming minute-by-minute forecast period. Multiple phrase lengths are
included - short (~25 characters), brief (~60 characters), and long
(60+ characters) - so applications can display the level of detail that
best fits the available UI space. An |
|
Precipitation |
Specifies the type of precipitation. Valid values are Rain, Snow, Ice, or Mix. This property is included in the response when dBZ is greater than zero. |
ColorValue
An RGB color, returned in both component (red, green, blue) and
hexadecimal (hex) form. Used by the minute-by-minute forecast to render
each interval on a radar-style display - see ForecastInterval.color for
the full-spectrum color mapped to dbz, and
ForecastInterval.simplifiedColor for the coarser color derived from
precipitationType and threshold. For the underlying color mappings, see
Weather services in Azure
Maps.
| Name | Type | Description |
|---|---|---|
| blue |
integer (int32) |
Blue component of the RGB value. Valid values range from 0-255. |
| green |
integer (int32) |
Green component of the RGB value. Valid values range from 0-255. |
| hex |
string |
The same color as a hexadecimal RGB string prefixed with |
| red |
integer (int32) |
Red component of the RGB value. Valid values range from 0-255. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
maps.weather.getminuteforecast |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
ForecastInterval
Represents a single time slice within a minute-by-minute forecast,
describing the expected weather conditions during that interval. Each
interval covers 1, 5, or 15 minutes - depending on the resolution
requested - and includes the start time, precipitation intensity (dbz),
precipitation type and threshold, a short descriptive phrase, an icon
code, cloud cover, and the full-spectrum and simplified colors used to
visually represent the conditions on a radar-style display.
| Name | Type | Description |
|---|---|---|
| cloudCover |
integer (int32) |
The percentage of the sky covered by clouds during this interval, from 0 (clear) to 100 (overcast). May be NULL. |
| color |
The full-spectrum color that maps to |
|
| dbz |
number (double) |
Forecasted radar reflectivity in decibels relative to Z (dBZ), used as a measure of precipitation intensity. Higher values indicate heavier precipitation; a value of 0 indicates no precipitation. |
| iconCode |
The representative weather icon code for this interval. The numeric value corresponds to an Azure Maps weather icon - for the complete list, see Weather services in Azure Maps. |
|
| minute |
integer (int32) |
The start of this forecast interval expressed as a number of minutes from
the start of the forecast (minute 0). Pairs with |
| precipitationType |
The type of precipitation expected during this interval - one of Rain,
Snow, Ice, or Mix. Returned only when |
|
| shortPhrase |
string |
A short phrase describing the precipitation conditions during this interval (for example, Light rain). Up to approximately 25 characters. |
| simplifiedColor |
A simplified color derived from |
|
| startTime |
string (date-time) |
The start of this forecast interval, in RFC
3339 format
( |
| threshold |
string |
The intensity bucket the precipitation falls into for the current
|
IconCode
The numeric weather-condition code that identifies which icon to display.
Each value in this enumeration corresponds to an Azure Maps weather icon
(such as Sunny, Cloudy, or Thunderstorms) and pairs with a human-readable
iconPhrase returned alongside it. The same code can appear in current,
hourly, daily, quarter-day, and minute-by-minute responses, allowing
applications to render a consistent icon set across all weather services.
For the complete list of codes, the icons they map to, and example imagery, see Weather services in Azure Maps.
| Value | Description |
|---|---|
| 1 |
Sunny |
| 2 |
Mostly Sunny |
| 3 |
Partly Sunny |
| 4 |
Intermittent Clouds |
| 5 |
Hazy Sunshine |
| 6 |
Mostly Cloudy |
| 7 |
Cloudy |
| 8 |
Dreary (Overcast) |
| 11 |
Fog |
| 12 |
Showers |
| 13 |
Mostly Cloudy with Showers |
| 14 |
Partly Sunny with Showers |
| 15 |
Thunderstorms |
| 16 |
Mostly Cloudy with Thunderstorms |
| 17 |
Partly Sunny with Thunderstorms |
| 18 |
Rain |
| 19 |
Flurries |
| 20 |
Mostly Cloudy with Flurries |
| 21 |
Partly Sunny with Flurries |
| 22 |
Snow |
| 23 |
Mostly Cloudy with Snow |
| 24 |
Ice |
| 25 |
Sleet |
| 26 |
Freezing Rain |
| 29 |
Rain and Snow |
| 30 |
Hot |
| 31 |
Cold |
| 32 |
Windy |
| 33 |
Clear |
| 34 |
Mostly Clear |
| 35 |
Partly Cloudy |
| 36 |
Intermittent Clouds |
| 37 |
Hazy Moonlight |
| 38 |
Mostly Cloudy |
| 39 |
Partly Cloudy with Showers |
| 40 |
Mostly Cloudy with Showers |
| 41 |
Partly Cloudy with Thunderstorms |
| 42 |
Mostly Cloudy with Thunderstorms |
| 43 |
Mostly Cloudy with Flurries |
| 44 |
Mostly Cloudy with Snow |
IntervalSummary
Describes the weather outlook for a contiguous window inside the
minute-by-minute forecast - typically a stretch of similar conditions such
as Rain ending in 25 min or Light snow starting in 10 min. Each summary
specifies the window in minutes from the forecast start (startMinute,
endMinute, totalMinutes), provides phrase descriptions at three lengths
(short, brief, and long) so the appropriate level of detail can be shown
for the available UI space, and includes an iconCode for the
representative weather icon. A MinuteForecastResult returns one or more
IntervalSummary entries that together cover the forecast period.
| Name | Type | Description |
|---|---|---|
| briefPhrase |
string |
A brief phrase describing the precipitation conditions during this interval. Up to 60 characters. |
| endMinute |
integer (int32) |
The last minute of this interval, expressed as a number of minutes from the start of the forecast (minute 0). |
| iconCode |
The representative weather icon code for this interval. The numeric value corresponds to an Azure Maps weather icon - for the complete list, see Weather services in Azure Maps. |
|
| longPhrase |
string |
A long phrase describing the precipitation conditions during this interval. Supports more than 60 characters. |
| shortPhrase |
string |
A short phrase describing the precipitation conditions during this interval. Up to 25 characters. |
| startMinute |
integer (int32) |
The first minute of this interval, expressed as a number of minutes from the start of the forecast (minute 0). |
| totalMinutes |
integer (int32) |
The length of this interval, in minutes ( |
JsonFormat
Desired format of the response. Only json format is supported.
| Value | Description |
|---|---|
| json |
MinuteForecastResult
The response returned by the Get Minute Forecast operation, providing a
minute-by-minute precipitation outlook for a specified location over the
next 120 minutes at the requested resolution (1, 5, or 15 minutes). The
response is organized into three layers: an overall summary with phrase
descriptions and a representative icon for the whole period; an
intervalSummaries array that groups consecutive minutes into longer
stretches of similar conditions (such as Rain ending in 25 min); and an
intervals array containing the detailed per-minute forecast points,
including precipitation intensity (dbz), precipitation type, cloud
cover, and the colors used to render radar-style visualizations.
| Name | Type | Description |
|---|---|---|
| intervalSummaries |
Phrase summaries that divide the forecast window into one or more
contiguous stretches of similar conditions - for example, Rain ending
in 25 min followed by Partly cloudy. Each entry specifies the
minutes it covers ( |
|
| intervals |
The detailed per-step forecast points that make up the minute-by-minute
forecast. Each |
|
| summary |
Top-level phrase summaries that describe the precipitation outlook for
the entire ~120-minute forecast window. Includes short, brief, and long
variants so the appropriate level of detail can be displayed for the
available UI space, plus a representative |
MinuteForecastSummary
Provides phrase summaries describing the precipitation outlook for the
upcoming minute-by-minute forecast period. Multiple phrase lengths are
included - short (~25 characters), brief (~60 characters), and long
(60+ characters) - so applications can display the level of detail that
best fits the available UI space. An iconCode indicates the
representative weather icon for the period.
| Name | Type | Description |
|---|---|---|
| briefPhrase |
string |
A brief phrase describing the precipitation outlook for the full ~120 minute forecast window. Up to approximately 60 characters. |
| briefPhrase60 |
string |
A brief phrase describing the precipitation outlook for the next 60 minutes only (a shorter window than the other phrases on this object). Up to approximately 60 characters. |
| iconCode |
A representative weather icon code for the full ~120 minute forecast window. The numeric value corresponds to an Azure Maps weather icon - for the complete list, see Weather services in Azure Maps. |
|
| longPhrase |
string |
A long phrase describing the precipitation outlook for the full ~120 minute forecast window. Supports more than 60 characters. |
| shortPhrase |
string |
A short phrase describing the precipitation outlook for the full ~120 minute forecast window. Up to approximately 25 characters. |
PrecipitationType
Specifies the type of precipitation. Valid values are Rain, Snow, Ice, or Mix. This property is included in the response when dBZ is greater than zero.
| Value | Description |
|---|---|
| Ice |
Ice |
| Mix |
Mix |
| Rain |
Rain |
| Snow |
Snow |