Requesting Historical Hazards
The endpoint for fetching historical hazards:
Query the historical hazard database using a SQL-style where clause.
Returns an array of matching hazard records.
JWT access token obtained from POST /authorize. Tokens expire after
15 minutes.
SQL-style filter expression. Example:
type_ID='EARTHQUAKE' AND severity_ID='WARNING'
type_ID='EARTHQUAKE'Array of matching historical hazard records.
A historical hazard record.
Application ID.
1Comma-separated application IDs.
Auto-expiration flag.
Category identifier.
NATURALInternational Charter URI, if applicable.
Editorial comment.
Creation timestamp in epoch milliseconds.
1697157024387Record creator.
DisasterAWARE (Automated)End timestamp in epoch milliseconds.
GLIDE number URI.
Numeric hazard identifier.
203575Human-readable hazard name.
M 5.2 Earthquake - Southern PeruLast update timestamp in epoch milliseconds.
Latitude of the hazard centroid.
-16.25Longitude of the hazard centroid.
-71.58Master incident identifier.
Associated message identifier.
Organisation ID.
Severity identifier.
WARNINGSituational awareness URL.
Start timestamp in epoch milliseconds.
1697157024387Hazard status (e.g. active, expired).
Hazard type identifier.
EARTHQUAKEUpdate timestamp in epoch milliseconds.
User who last updated the record.
Total number of associated products.
Unique identifier.
Whether the hazard appears in the dashboard.
URL to the area brief, if available.
Hazard description text.
Roles associated with the hazard.
Forbidden -- invalid or expired token.
GET /historical_hazards?where=text HTTP/1.1
Host: api-v2.disasteraware.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"app_ID": 1,
"app_IDs": "text",
"autoexpire": "text",
"category_ID": "NATURAL",
"charter_Uri": "text",
"comment_Text": "text",
"create_Date": "1697157024387",
"creator": "DisasterAWARE (Automated)",
"end_Date": "text",
"glide_Uri": "text",
"hazard_ID": 203575,
"hazard_Name": "M 5.2 Earthquake - Southern Peru",
"last_Update": "text",
"latitude": -16.25,
"longitude": -71.58,
"master_Incident_ID": "text",
"message_ID": "text",
"org_ID": 1,
"severity_ID": "WARNING",
"snc_url": "text",
"start_Date": "1697157024387",
"status": "text",
"type_ID": "EARTHQUAKE",
"update_Date": "text",
"update_User": "text",
"product_total": "text",
"uuid": "text",
"in_Dashboard": "text",
"areabrief_url": "text",
"description": "text",
"roles": [
"text"
]
}
]Checking Result Count
Before querying historical hazards, use the hazards_count endpoint to verify your search will return fewer than 1000 matches:
Query Fields
The where parameter accepts the following fields:
status
Hazard status. Use 'E' for expired hazards.
status = 'E'
type_id
Hazard type: AVALANCHE, TORNADO, WILDFIRE, etc.
type_id = 'AVALANCHE' OR type_id = 'WILDFIRE'
category_id
Hazard category: EVENT, EXERCISE, OTHER, RESPONSE
category_id = 'EVENT'
severity_id
Hazard severity: WARNING, WATCH, ADVISORY, INFORMATION
severity_id = 'WARNING'
hazard_name
Hazard name (use UPPER() and LIKE for case-insensitive search)
UPPER(hazard_name) LIKE '%HAWAII%'
comment_text
Any comment text associated with the hazard
UPPER(comment_text) LIKE '%TSUNAMI%'
create_date
Hazard creation date, typically used to check a range of dates
create_date >= to_date('2023-05-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss') AND create_date <= to_date('2023-05-31 00:00:00', 'yyyy-mm-dd hh24:mi:ss')
latitude / longitude
Bounding box using latitude and longitude
(latitude >= 36.58 AND latitude <= 39.06) AND (longitude >= -123.99 AND longitude <= -119.68)
Examples
Filter by hazard type
Filter by multiple types
Search by hazard name (case-insensitive)
Filter by date range
Filter by geographic bounding box
Multi-field query
The following searches for expired WILDFIRE hazards of type EVENT, severity WARNING, created between 5/1/23 and 5/31/23, with "namefoo" (case-insensitive) in the hazard name and "commentfoo" (case-insensitive) in the comment text:
The multi-field example above uses the hazards_count endpoint to first verify the result count before fetching the actual hazards via historical_hazards.
Last updated
