81trust / 100

Travel Visa

by travel-visa in Weather & location

x402 APIPassing, checked 50 min ago

Visa requirement for a passport and destination pair from a community visa-matrix. Returns the normalized requirement such as visa free, visa on arrival, e-visa, electronic travel authorization or visa required, with the visa-free day allowance where applicable. Indicative, not authoritative. Verify with the embassy.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
22 ms typical, 22 ms slowest 5%
Last check
50 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/visa?destination=Japan&passport_country=DE"
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%2Fvisa
const res = await pay("https://api.agentstools.dev/travel/visa?destination=Japan&passport_country=DE");
console.log(await res.json());

Example input

{
  "destination": "Japan",
  "passport_country": "DE"
}

Example output

{
  "destination": {
    "iso2": "JP",
    "iso3": "JPN",
    "name": "Japan"
  },
  "found": true,
  "passport_country": {
    "iso2": "DE",
    "iso3": "DEU",
    "name": "Germany"
  },
  "sources": {
    "partial": false
  },
  "visa": {
    "allowed_days": 90,
    "requirement": "visa free",
    "requirement_label": "Visa free",
    "source": "visa_matrix"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
50 min agoPassed40222 ms$0.008
6 h agoPassed40233 ms$0.008