Archived alerts captured in the repo with provenance
Archived alerts the golden path replays, for example the Hurricane Milton warning for Manatee County FL pulled from the Iowa Environmental Mesonet archive. Never live; this list comes from committed captures only.
GET
/
alerts
/
archived
Archived alerts captured in the repo with provenance
curl --request GET \
--url https://api.example.com/alerts/archived \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/alerts/archived"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/alerts/archived', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/alerts/archived",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/alerts/archived"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/alerts/archived")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/alerts/archived")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "iem-2024-milton-flz-12081-mock",
"country": "us",
"source": "nws",
"event": "Hurricane Warning",
"headline": "<string>",
"sent": "2023-11-07T05:31:56Z",
"affected_zones": [
{
"id": "FLZ152",
"kind": "county",
"name": "<string>",
"country": "us"
}
],
"zone_based": true,
"severity": "extreme",
"urgency": "immediate",
"certainty": "observed",
"effective": "2023-11-07T05:31:56Z",
"expires": "2023-11-07T05:31:56Z",
"geocode": {
"ugc": [
"FLZ152"
],
"same": [
"012081"
]
},
"geometry": {},
"vtec": {
"office": "TBW",
"phenomena": "HU",
"significance": "W",
"event_id": 42
},
"raw_ref": "<string>",
"fetched_at": "2023-11-07T05:31:56Z",
"mock": true
}
],
"empty_state": {
"code": "no_facilities",
"message": "No facilities sit inside the warning area."
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}⌘I
Archived alerts captured in the repo with provenance
curl --request GET \
--url https://api.example.com/alerts/archived \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/alerts/archived"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/alerts/archived', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/alerts/archived",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/alerts/archived"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/alerts/archived")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/alerts/archived")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "iem-2024-milton-flz-12081-mock",
"country": "us",
"source": "nws",
"event": "Hurricane Warning",
"headline": "<string>",
"sent": "2023-11-07T05:31:56Z",
"affected_zones": [
{
"id": "FLZ152",
"kind": "county",
"name": "<string>",
"country": "us"
}
],
"zone_based": true,
"severity": "extreme",
"urgency": "immediate",
"certainty": "observed",
"effective": "2023-11-07T05:31:56Z",
"expires": "2023-11-07T05:31:56Z",
"geocode": {
"ugc": [
"FLZ152"
],
"same": [
"012081"
]
},
"geometry": {},
"vtec": {
"office": "TBW",
"phenomena": "HU",
"significance": "W",
"event_id": 42
},
"raw_ref": "<string>",
"fetched_at": "2023-11-07T05:31:56Z",
"mock": true
}
],
"empty_state": {
"code": "no_facilities",
"message": "No facilities sit inside the warning area."
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}