81trust / 100

Travel Advisory

by travel-advisory in Weather & location

x402 APIPassing, checked 48 min ago

US State Department travel advisory for a destination country. Returns the advisory level one to four, its label, the summary and the last-updated date, normalized to one cited JSON. Authoritative and live. Informational, not travel advice.

GET https://api.agentstools.dev/travel/advisory

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
26 ms typical, 26 ms slowest 5%
Last check
48 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.agentstools.dev/travel/advisory?destination=France"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.agentstools.dev%2Ftravel%2Fadvisory
const res = await pay("https://api.agentstools.dev/travel/advisory?destination=France");
console.log(await res.json());

Example input

{
  "destination": "France"
}

Example output

{
  "advisory": {
    "level": 2,
    "level_label": "Exercise Increased Caution",
    "source": "state_advisory",
    "updated": "2024-01-08"
  },
  "destination": {
    "iso2": "FR",
    "iso3": "FRA",
    "name": "France"
  },
  "found": true,
  "sources": {
    "partial": false
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
48 min agoPassed40227 ms$0.01
6 h agoPassed40226 ms$0.01