curl --request POST \
--url https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "GM"
}'import requests
url = "https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory"
payload = { "code": "GM" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'GM'})
};
fetch('https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory', 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.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'code' => 'GM'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory"
payload := strings.NewReader("{\n \"code\": \"GM\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"GM\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"GM\"\n}"
response = http.request(request)
puts response.read_body{
"advisories": [
{
"code": "GM",
"country": "Germany",
"destination_code": "deu",
"level": 2,
"level_label": "Exercise Increased Caution",
"published": "2025-05-12T20:00:00-04:00",
"summary": "Exercise increased caution in Germany due to terrorism.\nTerrorist groups and lone actors remain a constant threat in Germany and Europe, attacking people in public locations with knives, small arms, rudimentary explosive devices, and vehicles. Such attacks may occur with little or no warning and target:\n- Tourist locations\n- Transportation centers (airports, train, or bus stations)\n- Markets and shopping malls\n- Local government facilities\n- Hotels, clubs, and restaurants\n- Places of worship and educational institutions\n- Parks\n- Major sporting and cultural events\n- Schools",
"title": "Germany - Level 2: Exercise Increased Caution",
"updated": "2025-05-12T20:00:00-04:00",
"url": "https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destination.deu.html"
}
],
"code": "GM",
"source_url": "https://cadataapi.state.gov/api/TravelAdvisories/GM"
}Advisory
Look up the level and advice for one destination when you know its State Department code (GM, UK, MX) or have its travel.state.gov advisory link. Use advisories to find a destination by name.
curl --request POST \
--url https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "GM"
}'import requests
url = "https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory"
payload = { "code": "GM" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'GM'})
};
fetch('https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory', 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.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'code' => 'GM'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory"
payload := strings.NewReader("{\n \"code\": \"GM\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"GM\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"GM\"\n}"
response = http.request(request)
puts response.read_body{
"advisories": [
{
"code": "GM",
"country": "Germany",
"destination_code": "deu",
"level": 2,
"level_label": "Exercise Increased Caution",
"published": "2025-05-12T20:00:00-04:00",
"summary": "Exercise increased caution in Germany due to terrorism.\nTerrorist groups and lone actors remain a constant threat in Germany and Europe, attacking people in public locations with knives, small arms, rudimentary explosive devices, and vehicles. Such attacks may occur with little or no warning and target:\n- Tourist locations\n- Transportation centers (airports, train, or bus stations)\n- Markets and shopping malls\n- Local government facilities\n- Hotels, clubs, and restaurants\n- Places of worship and educational institutions\n- Parks\n- Major sporting and cultural events\n- Schools",
"title": "Germany - Level 2: Exercise Increased Caution",
"updated": "2025-05-12T20:00:00-04:00",
"url": "https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destination.deu.html"
}
],
"code": "GM",
"source_url": "https://cadataapi.state.gov/api/TravelAdvisories/GM"
}Request contract
- Method and path: POST /apis/v1/travel-state-gov/travel-advisories/advisory
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory
{
"operationId": "travel-state-gov.travel-advisories.advisory",
"method": "POST",
"path": "/apis/v1/travel-state-gov/travel-advisories/advisory",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"code": "GM"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"code": {
"description": "The State Department's two-character destination code as cadataapi.state.gov uses it, mostly FIPS 10-4 (GM Germany, UK United Kingdom, CH China, KN North Korea), not ISO 3166. Case-insensitive. Pattern: ^[A-Za-z0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"url": {
"description": "A pasted travel.state.gov advisory page URL instead of `code`, e.g. https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destination.deu.html.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
A pasted travel.state.gov advisory page URL instead of code, e.g. https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destination.deu.html.
Response
The current travel advisory for one destination code, or for a pasted travel.state.gov advisory page URL. A code can cover several advisories (IS returns Israel, the West Bank and Gaza; KN returns North Korea and Saint Kitts and Nevis), so all rows filed under it are returned. Unknown codes and URLs that no advisory links to are not_found.
The response contains the tool result directly.
The provider identifies advisories as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
code | string | Destination code the feed files this advisory under (Category). Mostly FIPS 10-4, but some rows use other codes and codes can be shared: KN covers North Korea and Saint Kitts and Nevis, IS covers Israel, the West Bank and Gaza. |
country | string | Destination name from the advisory title, e.g. Burma, Gaza, Hong Kong. |
destination_code | string | Code in a current destination.<code>.html page URL, usually ISO 3166-1 alpha-3 (deu, prk; xks for Kosovo). Null for rows that still link to a legacy-layout page. |
level | number | Advisory level: 1 exercise normal precautions, 2 exercise increased caution, 3 reconsider travel, 4 do not travel. |
level_label | string | |
published | string | Publication timestamp as the feed states it. |
summary | string | Advisory text converted from the feed's HTML to plain text; list items start with -. |
title | string | Advisory title as published, whitespace collapsed. |
updated | string | Last update timestamp as the feed states it. |
url | string | The advisory page on travel.state.gov. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.