Endpoint: alerts/summary

The alerts/summary endpoint provides an overall summary of the currently active alerts within the USA and Canada based on search/filter criteria. Example use cases include obtaining the total number of active weather zones or counties with active alerts, the types of active alerts,  what states currently have active alerts and more. Coverage area includes the 50 US states, Puerto Rico and Canada.

Supported Alert Types

Please refer to the full list of available alerts, type and color codes:
https://www.aerisweather.com/support/docs/aeris-overlays/reference/advisory-types/

The alert type codes may be passed in the type element of the query parameter and correspond to the details.type in the response output.

Supported Actions

The following actions are supported with the alerts/summary endpoint:

:id Requesting data by using the :id action is used for returning data for a particular item that has an ID associated with it. This is the primary method for requesting general weather information for a single location (observations, forecasts, advisories, etc.) as the location's name or a zip code serves as the id. Other endpoints may expect a certain value for the ID, such as storm cells whose ID value is a combination of the radar site identifier and unique identifier assigned to every storm cell. Refer to an enpoint's detailed documentation for specific information regarding how to use the :id action.
search The search action is used as a more general query method and expects the query to be defined with the custom query for the request. Unlike the closest action, results will not be returned in any particular order.
within The within action allows for returning data within a variety of different geometrical regions. Currently supported geometries include a circle (requires a center point and radius), square (requires two coordinate points defining the top-left and bottom-right corners) and polygon (requires at least three coordinate points). Unlike the closest action, the results will not be returned in any particular order based on distance.

Supported Parameters

The following parameters are optional unless otherwise noted:

callback callback=:functionName Used with JSONP implementation.

Defines the callback function to use for the response. The response will be enclosed as C(response), where C is the callback function provided.
fields fields=:string Provides a comma separated list of values for the API to return. This parameter is often used to limit the amount of data returned. See Reducing Output.
filter filter=:string Predefined filters for limiting the results. The filter value can be a single, comma-delimited or a semicolon delimited string of filter names.
limit limit=:total The total number of results to return as an integer. Each endpoint may have a set maximum for this value depending on usage.

The default limit is 1 if not specified. The maximum limit for this endpoint is 250.
query query=:string Used to filter results based on certain fields in the data set. See Advanced Queries for more details.
radius radius=:distance:unit When requesting the closest results within a circle, the radius determines how far from the specified location to search. A valid unit value must be included in your radius value, e.g., "5mi", "10km", "25miles". If no unit is provided, your value is assumed to be in meters by default.

Most endpoints utilize a default radius of 50 miles, though some endpoints, such as lightning, may have tighter restrictions specified.

Supported Filters

The following filters can be passed to the filter parameter to reduce the results that are returned:

county Some alerts such as Tornado warnings, severe thunderstorm warnings, flash flood warnings, flood warnings are issued county based, but include a small polygon of the coverage area within the county that is being affected. By default, if this small polygon exists, the API will only return the alert if the requested latitude/longitude is within the provided small polygon.

Using the filter=county option will make the API ignore any small polygon within the warning and return the warning based on the larger county coverage area.
warning Returns all warnings.

A warning is issued when a hazardous weather or hydrologic event is occurring, imminent, or likely. A warning means weather conditions pose a threat to life or property. People in the path of the storm need to take protective action.
watch Returns all watches.

A watch is used when the risk of a hazardous weather or hydrologic event has increased significantly, but its occurrence, location, or timing is still uncertain. It is intended to provide enough lead time so those who need to set their plans in motion can do so. A watch means that hazardous weather is possible. People should have a plan of action in case a storm threatens and they should listen for later information and possible warnings especially when planning travel or outdoor activities.
advisory Returns all alerts.

An alert is issued when a hazardous weather or hydrologic event is occurring, imminent, or likely. Alerts are for "less serious" conditions than warnings that may cause significant inconvenience, and if caution is not exercised could lead to situations that may threaten life or property.
outlook Returns all outlooks.

An outlook is issued daily to indicate that a hazardous weather or hydrologic event may occur in the next several days. The outlook will include information about potential severe thunderstorms, heavy rain or flooding, winter weather, extremes of heat or cold, etc., that may develop over the next 7 days with an emphasis on the first 24 hours of the forecast. It is intended to provide information to those who need considerable lead time to prepare for the event.
statement Returns all special weather statements.
severe Returns all severe-related alerts:
- severe thunderstorm
- tornado
flood Returns all flood/hydro-related alerts:
- debris flow
- flood, flash flood
- hydrologic
tropical Returns all tropical-related alerts:
- tropical storm, hurricane, typhoon
- tropical storm wind
- hurricane wind
- extreme wind
winter Returns all winter-related alerts:
- blizzard, winter storm, winter weather
- snow, heavy snow
- lake effect snow
- snow and blowing snow
- ice pellets, freezing rain, ice storm
- wind chill
marine Returns all marine/coastal-related alerts:
- marine
- freezing spray, heavy freezing spray
- small craft
- small craft for winds
- small craft for hazardous seas
- small craft for rough bar
- gale
- hazardous seas
- hurricane force winds
- lakeshore flood
- coastal flood, high surf
- tsunami
- low water
- dense fog, dense smoke, ashfall (marine)
nonprecip Returns all non-precipitation-related alerts:
- blowing dust/dust storm
- wind, high wind, lake wind
- dense smoke
- dense fog, freezing fog
- freeze, frost
- heat, excessive heat, extreme cold
forecast Returns forecasts, normally short-term forecasts.
all Return all warnings, watches, advisories, statements, outlooks and forecasts.
wind Returns wind-related alerts.
fire Returns fire-related alerts.
tsunami Returns tsunami-related alerts.
beach Returns beach-related alerts, such as rip current statements.
now Returns alerts that are currently in effect.
synopsis Returns a synopsis of the alerts.
tornado Returns tornado related alerts (Tornado watches/warnings)
emergency Returns emergency-specific alerts.
canada Returns only Canadian alerts. Equivalent to query=country:ca
usa Returns only USA alerts. Equivalent to query=country:us
allcountries Returns alerts for all countries (the default).
hassmallpoly Returns alerts that have a small polygon (US severe thunderstorm, tornado, flash flood etc)
distinct Returns a summary based on counting alerts issued for multiple locations once.
nonmarine Returns all warnings, watches, and alerts that are not marine related.

Supported Query Properties

Use the following supported property keys when creating custom queries for your requests:

type Used to query the alert type. The value should be set to the VTEC Code or the WMO if no VTEC code exists. Review the list of allowed Alert Types.

Examples:
/alerts/minneapolis,mn?query=type:TO.W will return only the tornado warnings
/alerts/minneapolis,mn?query=type:TO.W;type:NOW will return tornado warnings and short-term forecasts
wxzone Used to query by the zone id the alert is issued for. Normally will be a NOAA public weather zone that looks similar to: VAZ014 or if issued for a specific county : VAC023
state Used to query by state, useful for requesting all alerts for a specific state. Two letter, lower case state abbreviation.
sig Used to query by the one character coded significance of an alert type.
W = Warning
A = Watch
Y = Advisory
S = Statement
O = Outlook
F = Forecast

Examples:
/alerts/minneapolis,mn?query=sig:W,sig:A (returns only warnings and alerts for Minneapolis, MN)
sigp Used to query by the numeric representation of an alert type. A lower number has higher significance.
1 = Warning
3 = Watch
5 = Advisory
7 = Statement
9 = Forecast (Short term)
11 = Outlook

Examples:
/alerts/minneapolis,mn?query=sigp:1:3 (returns only warnings and alerts for Minneapolis, MN)
name County name or weather zone name (lowercase) of the location the alert has been issued for.
country Two letter country abbreviation (lowercase) of the location the alert was issued for. (US only)
issued Used to query by the date the alert is issued for.
expires Used to query by the date the alert is scheduled to expire.
active Used to query active or inactive alerts.
0 = not active
1 = active
By default the API will not return in active alerts

Examples:
/alerts/minneapolis,min?query=active:0:0 (returns only alerts that are no longer active for Minneapolis, MN)
emergency Used to query emergency specific alerts, such as tornado emergencies.
true = emergency specific alerts
false = non emergency specific alerts
issued Used to query alerts based on the issued time. Values can be relative formats or dates. Times are not currently supported.

Examples:
/alerts/minneapolis,mn?query=issued:-10minutes&limit=100 (returns alerts issued within the past 10 minutes for Minneapolis, MN)
begins Used to query alerts based on the begins time of the alert. Some alerts such as winter storm warnings may be issued now, but do not go into effect until several hours later.
Values can be relative formats or dates. Times are not currently supported.

Examples:
/alerts/minneapolis,mn?query=begins:-6hours:6hours&limit=100 (returns active alerts that either went into effect in the past six hours or are set to go live in the next 6 hours for Minneapolis, MN)
expires Used to query alerts based on the expiration time. Values can be relative formats or dates. Times are not currently supported.

Examples:
/alerts/minneapolis,mn?query=expires:now:10minutes&limit=100 (returns alerts set to expire within the next 10 minutes for Minneapolis, MN)
added Used to query alerts based on the time they were added to the API database. Values can be relative formats or dates. Times are not currently supported.

Examples:
/alerts/minneapolis,mn?query=added:-10minutes&limit=100 (returns alerts received and added within the last 10 minutes for Minneapolis, MN)

Examples

The /[:endpoint]/[:action]? portion within the query template below can be exchanged with any of the examples. Also, please note you will need to input your client credentials in the [ID] and [SECRET] fields which can be found under the Apps section of the members area.

https://api.aerisapi.com/[:endpoint]/[:action]?client_id=[ID]&client_secret=[SECRET]

Return a summary for all active alerts.
/alerts/summary?

Return a summary for all active alerts within the state of Minnesota
/alerts/summary/search?query=state:mn&

Return a summary for all active alerts within the state of Minnesota or Wisconsin.
Note the semicolon is used to represent a logical 'OR'.
/alerts/summary/search?query=state:mn;state:wi&

Return a summary for all active alerts within a 50 mile radius of Minneapolis, MN
/alerts/summary/minneapolis,mn?

Return a summary for all active alerts within a 100 mile radius of Minneapolis, MN
/alerts/summary/minneapolis,mn?radius=100miles&

Return a summary for all severe thunderstorm and tornado watches/warnings.
/alerts/summary/?filter=severe&

Return a summary for all alerts for severe or flood related events.
Note the semicolon is used to represent a logical 'OR'.
/alerts/summary/?filter=severe;flood&

Response

The following is an example of what each object in the response will consist of. Depending on your requested action, the response may contain multiple instances of this object within an array.


{
    "success": true,
    "error": null,
    "response": {
        "summary": {
            "count": 354,
            "states": ["ca.mb", "ca.on", "ca.sk", "ia", "ks", "mn", "mo", "ne", "ok", "tx", "wi"],
            "typeCodes": ["SV.W", "TO.W", "SV.A", "TO.A"],
            "types": [{
                "type": "SEVERE THUNDERSTORM WARNING",
                "code": "SV.W",
                "count": 36,
                "states": ["ca.mb", "ia", "ks", "mn", "ne", "ok", "tx", "wi"],
                "zones": ["CLC-055242", "IAC009", "IAC029", "IAC137", "IAC153", "IAC155", "IAC181", "KSC007", "KSC025", "KSC033", "KSC047", "KSC057", "KSC083", "KSC097", "KSC113", "KSC141", "KSC145", "KSC163", "KSC165", "KSC169", "MNC007", "NEC029", "NEC101", "NEC135", "OKC007", "OKC059", "OKC151", "TXC087", "TXC179", "TXC211", "TXC295", "TXC393", "TXC483", "WIC017", "WIC033", "WIC107"]
            }, {
                "type": "TORNADO WARNING",
                "code": "TO.W",
                "count": 3,
                "states": ["ks", "tx"],
                "zones": ["KSC057", "TXC179", "TXC483"]
            }, {
                "type": "SEVERE THUNDERSTORM WATCH",
                "code": "SV.A",
                "count": 291,
                "states": ["ca.mb", "ca.on", "ca.sk", "ia", "ks", "mn", "mo", "ne"],
                "zones": ["CLC-042520", "CLC-042610", "CLC-042620", "CLC-047110", "CLC-047120", "CLC-047210", "CLC-047220", "CLC-047310", "CLC-047320", "CLC-047410", "CLC-047510", "CLC-051110", "CLC-051130", "CLC-051140", "CLC-051150", "CLC-051160", "CLC-051170", "CLC-051211", "CLC-051212", "CLC-051213", "CLC-051220", "CLC-051231", "CLC-051232", "CLC-051241", "CLC-051242", "CLC-051243", "CLC-051310", "CLC-051320", "CLC-051331", "CLC-051332", "CLC-051340", "CLC-051412", "CLC-051422", "CLC-051431", "CLC-051432", "CLC-051441", "CLC-051442", "CLC-051450", "CLC-052100", "CLC-052212", "CLC-052223", "CLC-052231", "CLC-052232", "CLC-052240", "CLC-052251", "CLC-052260", "CLC-052270", "CLC-052310", "CLC-052321", "CLC-052322", "CLC-052323", "CLC-052331", "CLC-052332", "CLC-052340", "CLC-052410", "CLC-052422", "CLC-052431", "CLC-052433", "CLC-052510", "CLC-052520", "CLC-052530", "CLC-052540", "CLC-052550", "CLC-052560", "CLC-052611", "CLC-052612", "CLC-052620", "CLC-052630", "CLC-052641", "CLC-052642", "CLC-052651", "CLC-052652", "CLC-053110", "CLC-053120", "CLC-053130", "CLC-053140", "CLC-053150", "CLC-053211", "CLC-053221", "CLC-053222", "CLC-053231", "CLC-053232", "CLC-053243", "CLC-053250", "CLC-053310", "CLC-053320", "CLC-054120", "CLC-054210", "CLC-054221", "CLC-054230", "CLC-054242", "CLC-054243", "CLC-054250", "CLC-054260", "CLC-055110", "CLC-055121", "CLC-055122", "CLC-055123", "CLC-055131", "CLC-055132", "CLC-055133", "CLC-055140", "CLC-055150", "CLC-055160", "CLC-055210", "CLC-055221", "CLC-055222", "CLC-055230", "CLC-055241", "CLC-055242", "CLC-055243", "CLC-055251", "CLC-055252", "CLC-055253", "CLC-055260", "CLC-055310", "CLC-055321", "CLC-055331", "CLC-055340", "CLC-055350", "CLC-057310", "CLC-057320", "CLC-057330", "CLC-062511", "CLC-062512", "CLC-062513", "CLC-062514", "CLC-062521", "CLC-062522", "CLC-062523", "CLC-062524", "CLC-062531", "CLC-062532", "CLC-062533", "CLC-062534", "CLC-062541", "CLC-062542", "CLC-062543", "CLC-062544", "CLC-063211", "CLC-063212", "CLC-063221", "CLC-063222", "CLC-063223", "CLC-063224", "CLC-063231", "CLC-063232", "CLC-063241", "CLC-063242", "CLC-063243", "CLC-063244", "CLC-063251", "CLC-063252", "CLC-063311", "CLC-063312", "CLC-063321", "CLC-063322", "CLC-063331", "CLC-063332", "CLC-063341", "CLC-063342", "CLC-063351", "CLC-063352", "CLC-063353", "CLC-063354", "IAC001", "IAC009", "IAC015", "IAC021", "IAC025", "IAC027", "IAC029", "IAC033", "IAC041", "IAC047", "IAC049", "IAC059", "IAC063", "IAC069", "IAC071", "IAC073", "IAC077", "IAC079", "IAC081", "IAC083", "IAC091", "IAC109", "IAC121", "IAC129", "IAC137", "IAC145", "IAC147", "IAC151", "IAC153", "IAC155", "IAC161", "IAC169", "IAC181", "IAC187", "IAC189", "IAC195", "IAC197", "KSC009", "KSC013", "KSC017", "KSC027", "KSC029", "KSC041", "KSC047", "KSC053", "KSC057", "KSC061", "KSC069", "KSC079", "KSC083", "KSC085", "KSC097", "KSC105", "KSC111", "KSC113", "KSC115", "KSC117", "KSC119", "KSC127", "KSC131", "KSC135", "KSC143", "KSC145", "KSC149", "KSC151", "KSC155", "KSC159", "KSC161", "KSC165", "KSC169", "KSC177", "KSC185", "KSC197", "KSC201", "MNC003", "MNC009", "MNC013", "MNC015", "MNC019", "MNC023", "MNC025", "MNC033", "MNC037", "MNC041", "MNC043", "MNC047", "MNC053", "MNC059", "MNC063", "MNC065", "MNC067", "MNC079", "MNC085", "MNC091", "MNC093", "MNC095", "MNC097", "MNC103", "MNC121", "MNC123", "MNC127", "MNC129", "MNC131", "MNC139", "MNC141", "MNC143", "MNC145", "MNC147", "MNC151", "MNC153", "MNC161", "MNC163", "MNC165", "MNC171", "MOC005", "MOC087", "MOC147", "NEC025", "NEC055", "NEC067", "NEC097", "NEC127", "NEC131", "NEC133", "NEC147", "NEC153"]
            }, {
                "type": "TORNADO WATCH",
                "code": "TO.A",
                "count": 24,
                "states": ["ks", "ok", "tx"],
                "zones": ["KSC007", "KSC025", "KSC033", "KSC077", "KSC095", "KSC173", "KSC191", "OKC003", "OKC007", "OKC009", "OKC011", "OKC039", "OKC043", "OKC045", "OKC047", "OKC053", "OKC059", "OKC093", "OKC129", "OKC149", "OKC151", "OKC153", "TXC211", "TXC295"]
            }]
        }
    }
}
								

Response Properties

The following properties will be provided in every response object:

summary (object) Object containing the summary
summary.count (number) The total number of weather zones or FIPS that have active alerts.
summary.states (array) Array of two letter US state abbreviations or Canadian province in the format of "ca.xx", that have active alerts
summary.typeCodes (array) Array of active VTEC or WMO (if no VTEC) codes for the active alerts.

Please refer to the full list of available alerts, type and color codes:
https://www.aerisweather.com/support/docs/aeris-overlays/reference/advisory-types/
summary.types (array) Array of each active alert type, with summary information for each
summary.types[#].type (string) The alert type name
summary.types[#].code (string) The VTEC or WMO (if no VTEC) codes for the alert

Please refer to the full list of available alerts, type and color codes:
https://www.aerisweather.com/support/docs/aeris-overlays/reference/advisory-types/
summary.types[#].count (number) The total number of weather zones or FIPS that the alert is active within.
summary.types[#].states (array) Array of two letter US state abbreviations or Canadian province in the format of "ca.xx",that the alert is active within
summary.types[#].zones (array) Array of NOAA public weather zones and/or FIPS codes that the alert is active within.