Core Weather

Location Key

Endpoint:https://dataservice.accuweather.com

Goverment-issued alerts by location key

GET
https://dataservice.accuweather.com
/alerts/v1/{locationKey}

Returns severe weather alerts from official Government Meteorological Agencies and leading global weather alert providers for a specific location, using a locationKey obtained from another endpoint (e.g., city search or geoposition)

Goverment-issued alerts by location keypath Parameters

  • locationKeystring · required

    A unique ID that designates a specific location. More information can be found here.

    Example: 349727

Goverment-issued alerts by location keyquery Parameters

  • languagestring

    A string that indicates the language in which to return the response. More information can be found here.

    Default: en-us
  • formatstring

    A string value that specifies what type of format to provide the response.

    Default: json
  • detailsboolean

    A boolean value that specifies whether or not to include extended information.

    Default: false

Goverment-issued alerts by location keyHeaders

  • Authorizationstring · required

    The Authorization header is used to authenticate using your API key. Format is Bearer YOUR_API_KEY.

Goverment-issued alerts by location keyResponses

OK

  • CountryCodestring · minLength: 1 · required

    A unique ID number assigned to a specific country.

  • AlertIDinteger · int64 · required

    A unique ID number that identifies a specific alert for a particular country.

  • Descriptionrequired

    An object containing a short phrase that summarizes the alert.

  • Categorystring · minLength: 1 · required

    A classification word or phrase that describes the alert type.

  • Priorityinteger · int32 · required

    A ranking number that indicates the alert's importance based on the issuing authority's list of alert types. Higher impact alerts have a lower numnber. The highest priority is 1.

  • Typestring · minLength: 1 · required

    An abbreviated alert description.

  • TypeIDstring · minLength: 1 · required

    An alphanumeric ID that indicates the alert description.

  • Classstring · minLength: 1 · required

    The alert classification. Not available for all countries. Can be null.

  • Levelstring · minLength: 1 · required

    Indicates the alert severity. Not available for all countries. Can be null.

  • AlarmLevelstring · minLength: 1 · required

    A color-based system that indicates the alert severity.

  • Sourcestring · minLength: 1 · required

    The alert data provider.

  • SourceIdinteger · int32 · required

    An ID integer that identifies the alert data provider.

  • Disclaimerstring · minLength: 1 · required

    A disclaimer that must be displayed with the alert data. Can be null.

  • HaveReadyStatementsboolean · required

    A boolean value determining if ready statements are available.

  • Color | null

    An object containing definitions for an additive color that indicates the alert type.

  • SourceIconUrlstring | null

    SourceIconUrl

  • SourceTeamstring | null

    SourceTeam

  • SourceTeamIconUrlstring | null

    SourceTeamIconUrl

  • Areaarray | null

    An array containing information that defines the requested alert location, alert timing, and alert text.

  • MobileLinkstring | null · uri

    Link to severe weather alerts on AccuWeather's mobile site for the requested location.

  • Linkstring | null · uri

    Link to severe weather alerts on AccuWeather's free site for the requested location.