Description | : The `Get Current Conditions` API is an HTTP `GET` request that returns detailed current weather conditions such as precipitation, temperature and wind for a given coordinate location. Also, observations from the past 6 or 24 hours for a particular location can be retrieved. The basic information returned with The response includes details such as observation date and time, brief description of the weather conditions, weather icon, precipitation indicator flags, and temperature. Additional details such as RealFeel™ Temperature and UV index are also returned. For more information, see [Request real-time weather data](/azure/azure-maps/how-to-request-weather-data#request-real-time-weather-data) |
Reference | : Link ¶ |
⚶ Changes
{ "#id": "Weather_GetCurrentConditions", "$responses": { "200": { "$properties": { "results": { "$properties": { "precipitationSummary": [ { "@added_292f37322fd24bb99f231400a0e83288": { "#name": "past3Hours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past three hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@added_9ff805a9531540a0867a409b485350ec": { "#name": "past6Hours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past six hours. Contains Metric and Imperial Values.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@added_bdc64317c12d4b23818653e52894aa89": { "#name": "past9Hours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past nine hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@added_e4592c414cff485bbced18af6a433e97": { "#name": "past12Hours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past 12 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@added_17f540993c8c491aa475b4f43b38e80b": { "#name": "past18Hours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past 18 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@added_cb3a8716e2f34c92ac2389f7bcc4e418": { "#name": "past24Hours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past 24 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@removed_a92cf7774d1144eea24fcedf0142ecc5": { "#name": "pastThreeHours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past three hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@removed_e932dd52b5284f5abff41d89559ca1d8": { "#name": "pastSixHours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past six hours. Contains Metric and Imperial Values.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@removed_fd26c67f9a1e45fbac82d94e73da293c": { "#name": "pastNineHours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past nine hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@removed_0cc0f2c0fcc041ceb5be162df367a5b7": { "#name": "pastTwelveHours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past 12 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@removed_c107bde348f347f88b23a89d7644d6d5": { "#name": "pastEighteenHours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past 18 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } }, { "@removed_443d24b838f446e78d052932b9465473": { "#name": "pastTwentyFourHours", "Description": "The amount of precipitation (liquid equivalent) that has fallen in the past 24 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } } ], "temperatureSummary": [ { "@added_7d5337b8e65d4225839b96814dcebc49": { "#name": "past6Hours", "Description": "Summary of temperature fluctuations over the past 6 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "minimum", "Description": "minimum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] }, { "#name": "maximum", "Description": "maximum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } ] } }, { "@added_5ea2a0e02fc840beb682c029bfcf182a": { "#name": "past12Hours", "Description": "Summary of temperature fluctuations over the past 12 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "minimum", "Description": "minimum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] }, { "#name": "maximum", "Description": "maximum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } ] } }, { "@added_2daaea356514437484abadb08e364fb3": { "#name": "past24Hours", "Description": "Summary of temperature fluctuations over the past 24 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "minimum", "Description": "minimum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] }, { "#name": "maximum", "Description": "maximum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } ] } }, { "@removed_3d40595ccb8b4b87af7abacff9150678": { "#name": "pastSixHours", "Description": "Summary of temperature fluctuations over the past 6 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "minimum", "Description": "minimum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] }, { "#name": "maximum", "Description": "maximum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } ] } }, { "@removed_1a236c69ffed4afca3770d1c94371e51": { "#name": "pastTwelveHours", "Description": "Summary of temperature fluctuations over the past 12 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "minimum", "Description": "minimum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] }, { "#name": "maximum", "Description": "maximum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } ] } }, { "@removed_b958019fafb64d63b4caa6cc2c4bc396": { "#name": "pastTwentyFourHours", "Description": "Summary of temperature fluctuations over the past 24 hours.", "Required": false, "Type": "object", "$properties": [ { "#name": "minimum", "Description": "minimum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] }, { "#name": "maximum", "Description": "maximum", "Required": false, "Type": "object", "$properties": [ { "#name": "value", "Description": "Rounded value.", "Format": "float", "Required": false, "Type": "number" }, { "#name": "unit", "Description": "Type of unit for the returned value.", "Required": false, "Type": "string" }, { "#name": "unitType", "Description": "Numeric ID value associated with the type of unit being displayed. Can be used for unit translation. Please refer to [Weather services in Azure Maps](/azure/azure-maps/weather-services-concepts#unit-types) for details.", "Format": "int32", "Required": false, "Type": "integer" } ] } ] } } ] } } } } } }
⚼ Request
GET:
/weather/currentConditions/{format}
{
x-ms-client-id:
string
,
api-version:
string
,
format:
string
,
query:
array
,
unit:
string
,
details:
string
,
duration:
integer
,
language:
string
,
}
⚐ Response (200)
{
results:
}
[
]
,
{
,
dateTime:
string
,
phrase:
string
,
iconCode:
integer
,
hasPrecipitation:
boolean
,
isDayTime:
boolean
,
temperature:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
realFeelTemperature:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
realFeelTemperatureShade:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
relativeHumidity:
integer
,
dewPoint:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
wind:
{
,
direction:
{
,
degrees:
integer
,
localizedDescription:
string
,
}
speed:
}
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
windGust:
{
,
direction:
{
,
degrees:
integer
,
localizedDescription:
string
,
}
speed:
}
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
uvIndex:
integer
,
uvIndexPhrase:
string
,
visibility:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
obstructionsToVisibility:
string
,
cloudCover:
integer
,
ceiling:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
pressure:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
pressureTendency:
{
,
localizedDescription:
string
,
code:
string
,
}
pastTwentyFourHourTemperatureDeparture:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
apparentTemperature:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
windChillTemperature:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
wetBulbTemperature:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
precipitationSummary:
{
,
pastHour:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
past3Hours:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
past6Hours:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
past9Hours:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
past12Hours:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
past18Hours:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
past24Hours:
}
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
temperatureSummary:
}
{
,
past6Hours:
{
,
minimum:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
maximum:
}
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
past12Hours:
{
,
minimum:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
maximum:
}
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
past24Hours:
}
{
,
minimum:
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
maximum:
}
{
,
value:
number
,
unit:
string
,
unitType:
integer
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
,
string
,
]
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}