Current conditions for top cities
Returns current weather conditions for the top 50, 100, or 150 largest cities around the world.
path Parameters
listLength
integer · int32 · pattern:50|100|150
· requiredA numerical value representing the amount of results to be returned.
Example: 50
query Parameters
language
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usformat
stringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
Key
string · minLength: 1 · requiredUnique ID to search a location.
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en).
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English.
Country
requiredAn object containing country information.
TimeZone
requiredAn object containing timezone information.
GeoPosition
requiredAn object containing geoposition information.
LocalObservationDateTime
string · date-time · requiredDatetime of the current observation displayed in ISO8601 format: yyyy-mm-ddThh:mm:ss±hh:mm.
EpochTime
integer · int64 · requiredDatetime of the current observation displayed as the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).
WeatherText
string · minLength: 1 · requiredPhrase description of the current weather condition. Displayed in specified language.
WeatherIcon
integer · int64 · requiredNumeric value representing an image that displays the WeatherText.
HasPrecipitation
boolean · requiredFlag indicating the presence or absence of precipitation. True indicates the presence of precipitation, false indicates the absence of precipitation.
PrecipitationType
string · minLength: 1 · requiredIf precipitation is present, the type of precipitation will be returned. Possible values are Rain, Snow, Ice, or Mixed. Null in the absence of precipitation.
IsDayTime
boolean · requiredFlag indicating the time of day (true=>day, false=>night).
Temperature
requiredAn object containing temperature information with a rounded value for Fahrenheit and Celsius. The object may be NULL.
MobileLink
string · minLength: 1 · requiredLink to current conditions on AccuWeather's mobile site for the requested location.
Link
string · minLength: 1 · requiredLink to current conditions on AccuWeather's free site for the requested location.
LocalSource
| nullInformation specific to the local data source. This parameter is not returned if there is no local source information.