Fields

Alert Object Field Reference

FieldExample ValueFormatSpecial FormatExplanation
id278209IntegerUnique ID number for Alert
titlePro-choice activists to rally on 8 July in Tallahassee, FloridaStringTitle of the Alert
textPro-choice activists plan to rally at the Florida State Capitol (400 South Monroe Street) in Tallahassee, Florida, from 17:00 local time (21:00 GMT) on 8 July, in support of abortion access after a Supreme Court ruling restricted it.StringText of the Alert
adviceAnticipate heightened security and associated disruptions in the vicinity of the rally site on 8 July. Plot route bypasses.StringAdvice of the Alert
takes_placefutureStringpast, now, futureIndicates when the incident described in the Alert takes place according to the time of publication
is_publishedTRUEBooleanIndicates if the Alert is published or not
is_activeTRUEBooleanIndicates if the impact of the Alert is active or not
start_date2022-07-08StringDate format
YYYY-MM-DDThe day of an incident or event, in local time
end_date2022-07-09StringDate format
YYYY-MM-DDThe first full day after an incident or event ends, in local time

risk_level

FieldExample ValueFormatSpecial FormatExplanation
id2Integer1 to 5Risk Level in number form
nameModerateStringLow, Moderate, Medium, High, ExtremeRisk Level in text form

category

Alert Category Field Reference

FieldExample ValueFormatSpecial FormatExplanation
id3Integer1 to 7Category in number form
nameDemonstrations and UnrestStringCategory in text form, numbered in the order listed
Political Developments
Conflict and Terrorism
Demonstration and Unrest
Crime
Natural and Environmental
Health and Medical
Travel Safety and Disruptions

subcategories

Alert Subcategory Field Reference

FieldExample ValueFormatSpecial FormatExplanationCategory it belongs to
id27Integer8 to 47Subcategory in number form
nameSecurity AlertString
AvalanchesNatural and Environmental
BlizzardsNatural and Environmental
Dangerous wildlifeNatural and Environmental
DroughtNatural and Environmental
Dust/Sand StormsNatural and Environmental
EarthquakesNatural and Environmental
FloodingNatural and Environmental
Heat WavesNatural and Environmental
Hurricanes/Typhoons/Tropical CyclonesNatural and Environmental
Landslides/MudslidesNatural and Environmental
Smog/Haze and PollutionNatural and Environmental
Surf/Rip currentsNatural and Environmental
TornadoesNatural and Environmental
TsunamiNatural and Environmental
Volcanic EruptionsNatural and Environmental
WildfiresNatural and Environmental
WindstormsNatural and Environmental
FogNatural and Environmental
RainfallNatural and Environmental
Security AlertNatural and Environmental
ThunderstormsNatural and Environmental
Extreme coldNatural and Environmental
VisaTravel Safety and Disruptions
Kidnap and RansomTravel Safety and Disruptions
Air travelTravel Safety and Disruptions
AirspaceTravel Safety and Disruptions
Borders and entryTravel Safety and Disruptions
IdentificationTravel Safety and Disruptions
Road travelTravel Safety and Disruptions
Maritime travelTravel Safety and Disruptions
Rail travelTravel Safety and Disruptions
TransitTravel Safety and Disruptions
ExitTravel Safety and Disruptions
Public transportTravel Safety and Disruptions
Movement control ordersTravel Safety and Disruptions
LGBTQ travelTravel Safety and Disruptions
Female travelTravel Safety and Disruptions
Transport strikeTravel Safety and Disruptions
Healthcare strikeHealth and Medical
HailNumbered in the order listed hereNatural and Environmental

perpetrators_and_targets

FieldExample ValueFormatPossible valuesExplanation
actor_1state forcesStringstate forces, armed non-state forces, unarmed non-state group, armed civilians, unarmed civiliansthis is the primary actor described in the alert. Ie. the Perpetrator.
actor_2armed civiliansStringstate forces, armed non-state forces, unarmed non-state group, armed civilians, unarmed civiliansthis is the secondary actor in the alert, the one that is most likely the target of the incident i.e the victim or target
civilian_targetingcivilians targetedString"civilians targeted", blank

Impact

FieldExample ValueFormatSpecial FormatExplanation
impact_typefor_allStringfor_all, for_travellersIndicates whether the impact of the Alert is for all or only for travellers

impacted_areas

The structure of the API fields under "impacted_areas" depends on the type of geographic feature that is affected. Below are the fields for each type.

Point Example

FieldExample ValueFormatSpecial FormatExplanation
typegeojsonStringgeojson, country, region, airport, offshoreIndicates the type of the geographic feature
contentsee subfields belowArray
content.typeFeatureCollection
content.featuressee subfields belowArray
content.features.typeFeatureStringIndicates the type of geographic feature
content.features.propertiessee subfields below
content.features.properties.radius1000Integerin metresImpact radius of the geographic feature
content.features.properties.descriptionFlorida State Capitol - 400 S Monroe St, Tallahassee, FL 32399, United StatesStringDescription of geographic feature
content.features.properties.geometry_id33199IntegerUnique ID given by Riskline for the geographic feature
content.features.properties.alert_id278209IntegerCorresponds to the Alert ID
content.features.properties.risk_level_id2Integer1 to 5Corresponds to Alert Risk Level
content.features.properties.category_id3Integer1 to 7Corresponds to Alert Category
content.features.geometrysee subfields below
content.features.geometry.typePointStringDescribes the type of geographic feature
content.features.geometry.coordinatessee subfields belowArray
content.features.geometry.coordinates.0-84.2825836Number-180 to 180Longitude (for point geometry)
content.features.geometry.coordinates.130.4381328Number-90 to 90Latitude (for point geometry)

see an example below

"impacted_locations": [
      {
        "type": "geojson",
        "content": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "properties": {
                "radius": 1000,
                "description": "Massachusetts Ave - Massachusetts Ave, Cambridge, MA, USA",
                "geometry_id": "42755",
                "alert_id": "284807",
                "risk_level_id": "2",
                "category_id": "7"
              },
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -71.12005599999999,
                  42.37831850000001
                ]
              }
            }
          ]
        }
      }

Airport Example

FieldExample ValueFormatSpecial FormatExplanation
typeairportStringairportIndicates the type of the geographic feature
iata_codeBCNStringIATA Three-letter CodeIATA code for airport
nameJosep Tarradellas Barcelona-El Prat Airport, Barcelona, ESStringName of airport
country_iso_codeESStringISO 3166 Alpha-2 CodeCountry or territory location of airport

Country Example

FieldExample ValueFormatSpecial FormatExplanation
typecountryStringcountryIndicates the type of the geographic feature
iso_codeESStringISO 3166 Alpha-2 CodeISO Code of country or territory
nameSpainStringName of country or territory

Region Example

FieldExample ValueFormatSpecial FormatExplanation
typeregionStringregionIndicates the type of the geographic feature
iso_codeES-MDStringISO 3166-2 CodeISO Code for region
nameCommunity of MadridStringName of the region
country_iso_codeESStringISO 3166 Alpha-2 CodeCountry or territory location of region

City Example

FieldExample ValueFormatSpecial FormatExplanation
typecityStringcityIndicates the type of the geographic feature
codeGROStringIATA Three-letter CodeCode for city
nameGironaStringName of city
country_iso_codeESStringISO 3166 Alpha-2 CodeISO Code of country or territory of the region

travel_routes

If a specific travel route is impacted by the event, this section will be populated based on which geographic feature is affected. Below are the fields for each type.

Airport Example

FieldExample ValueFormatSpecial FormatExplanation
originssee subfields belowArray
typeairportStringIndicates the type of the geographic feature
iata_codeFRUStringIATA Three-letter CodeIATA code for airport
nameManas International Airport, Bishkek, KGStringName of the airport
country_iso_codeKGStringISO 3166 Alpha-2 CodeISO code of country or territory
destinationssee subfields belowArray
typeairportStringIndicates the type of the geographic feature
iata_codeURCStringIATA Three-letter CodeIATA code for airport
nameÜrümqi Diwopu International Airport, Urumqi, CNStringName of the airport
country_iso_codeCNStringISO 3166 Alpha-2 CodeISO code of country or territory

Country Example

FieldExample ValueFormatSpecial FormatExplanation
originssee subfields belowArray
typecountryStringcountryIndicates the type of the geographic feature
iso_codeESStringISO 3166 Alpha-2 CodeISO code of country or territory
nameSpainStringName of the country or territory
destinationssee subfields belowArray
typecountryStringcountryIndicates the type of the geographic feature
iso_codeEGStringISO 3166 Alpha-2 CodeISO code of country or territory
nameEgyptStringName of the country or territory

impacted_carriers_type

FieldExample ValueFormatSpecial FormatExplanation
impacted_carriers_typeaviationArrayaviation, maritime, rail, ground, public transportModes of transport impacted

impacted_carriers

If a carrier is impacted by the event, this section will be populated based on which type of carrier is affected. Below are the fields for each type.

airline example

FieldExample ValueFormatSpecial FormatExplanation
typeairlineStringType of carrier
nameRyanairStringName of carrier
codessee subfields belowArray
codes.type.0iataStringiata, icaoType of code use to identify carrier
codes.code.0FRStringCode of carrier
codes.type.1icaoStringiata, icaoType of code use to identify carrier
codes.code.1RYRStringCode of carrie

impacted_flights

FieldExample ValueFormatSpecial FormatExplanation
airlinesee subfields belowString(two-digit alphanumeric)
nameQantasString
codessee subfields below
codes.type.0iataString
codes.code.0QFString
codes.type.1icaoString
codes.code.1QFAString
flight_number1871String(3-4 digit numeric)
departure_airportsee subfields below(name, IATA, ICAO)optional
iata_codeTSVString
nameTownsville Airport, Townsville, AUString
country_iso_codeauString
departure_date2024-09-17String(day, month, year)optional
arrival_airportsee subfields belowString(name, IATA, ICAO)optional
iata_codeBNEString
nameBrisbane International Airport, Brisbane, AUString
country_iso_codeauString
arrival_date2024-09-17String(day, month, year)optional

relations

Each Alert will restate a list of all geographic locations included in the Alert, in the Impact section and all related higher level administrative divisions. This section allows clients to file, search for and display on a map Alerts as they see fit. For example, an Alert impacting only the city of "Paris" will also include in the relations data for region "Ile de France" and country "France".

See the following example:

"relations": [
      {
        "type": "country",
        "iso_code": "US",
        "name": "United States of America"
      },
      {
        "type": "airport",
        "iata_code": "DEN",
        "name": "Denver International Airport, Denver, US",
        "country_iso_code": "us"
      },
      {
        "type": "airport",
        "iata_code": "FLG",
        "name": "Flagstaff Pulliam Airport, Grand Canyon, US",
        "country_iso_code": "us"
      },
      {
        "type": "airline",
        "name": "United Airlines",
        "codes": [
          {
            "type": "iata",
            "code": "UA"
          },
          {
            "type": "icao",
            "code": "UAL"
          }
        ]
      }
    ]

meta

FieldExample ValueFormatSpecial FormatExplanation
company_id1IntegerCompany ID number
languageenStringLanguage code