Requesting Active Hazards of a Specific Severity

get
https://api.disasteraware.com/
hazards/active/severity/{severity-id}
Get active hazards of a specific severity
See Authorizing Requests page to get your accessToken.
See Requesting Hazard Severities page to see a list of severity-id.
Below is an example request with path parameters severity-id=WARNING
cURL
Java
Node.js
PHP
Python
curl --location --request GET \
'https://api.disasteraware.com/hazards/active/severity/WARNING' \
--header 'Authorization: Bearer '
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
URL url = new URL("https://api.disasteraware.com/hazards/active/severity/WARNING");
HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
httpConn.setRequestMethod("GET");
httpConn.setRequestProperty("Authorization", "Bearer");
InputStream responseStream = httpConn.getResponseCode() / 100 == 2
? httpConn.getInputStream()
: httpConn.getErrorStream();
Scanner s = new Scanner(responseStream).useDelimiter("\\A");
String response = s.hasNext() ? s.next() : "";
System.out.println(response);
}
}
var fetch = require('node-fetch');
fetch('https://api.disasteraware.com/hazards/active/severity/WARNING', {
headers: {
'Authorization': 'Bearer'
}
});
<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
'Authorization' => 'Bearer'
);
$response = Requests::get('https://api.disasteraware.com/hazards/active/severity/WARNING', $headers);
import requests
headers = {
'Authorization': 'Bearer',
}
response = requests.get('https://api.disasteraware.com/hazards/active/severity/WARNING', headers=headers)