Current conditions for top cities
Returns current weather conditions for the top 50, 100, or 150 largest cities around the world.
path Parameters
listLengthinteger · int32 · pattern:50|100|150· requiredA numerical value representing the amount of results to be returned.
Example: 50
query Parameters
languagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usformatstringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
Keystring · minLength: 1 · requiredUnique ID to search a location.
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en).
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English.
CountryrequiredAn object containing country information.
TimeZonerequiredAn object containing timezone information.
GeoPositionrequiredAn object containing geoposition information.
LocalObservationDateTimestring · date-time · requiredDatetime of the current observation displayed in ISO8601 format: yyyy-mm-ddThh:mm:ss±hh:mm.
EpochTimeinteger · int64 · requiredDatetime of the current observation displayed as the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).
WeatherTextstring · minLength: 1 · requiredPhrase description of the current weather condition. Displayed in specified language.
WeatherIconinteger · int64 · requiredNumeric value representing an image that displays the WeatherText.
HasPrecipitationboolean · requiredFlag indicating the presence or absence of precipitation. True indicates the presence of precipitation, false indicates the absence of precipitation.
PrecipitationTypestring · 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.
IsDayTimeboolean · requiredFlag indicating the time of day (true=>day, false=>night).
TemperaturerequiredAn object containing temperature information with a rounded value for Fahrenheit and Celsius. The object may be NULL.
MobileLinkstring · minLength: 1 · requiredLink to current conditions on AccuWeather's mobile site for the requested location.
Linkstring · 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.