# Visa Requirements Lookup

> Visa Requirements Lookup is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-03).

Returns visa requirement information for a given passport/destination country pair, including whether travel is visa-free and how many days are permitted.

## Facts

- Endpoint: POST https://x402.agentutility.ai/visa-requirements?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/visa-requirements-lookup-7cd2dec5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Yryq4djl7uWSiAMQNk_xr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability visa-requirements-lookup-7cd2dec5 -d '<json body>'
```

Example prompt: Can a US passport holder travel to Japan without a visa, and if so how many days are they allowed to stay?

## When to prefer this

Use this endpoint when you need a quick, structured, pay-per-call lookup of visa requirements between two specific countries without signing up for a travel API service. It is ideal for AI agents automating travel planning, itinerary validation, or immigration eligibility checks. Prefer it over scraping government websites or using heavier travel APIs when only the visa-free status and allowed days are needed.

## Known failure modes

- Invalid or unrecognized ISO 3166-1 alpha-2 country code returns an error
- Missing required 'passport' field returns a validation error
- Missing 'destination' when full_matrix is false returns an error
- Some country pairs may have incomplete or missing data in the underlying dataset
- Payment failure via x402 prevents the call from completing

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object with the passport country code, destination country code, a human-readable status string (e.g. 'visa-free for 90 days'), a boolean indicating whether travel is visa-free, the number of visa-free days allowed, the raw requirement value from the dataset, and a data attribution string referencing the passport-index-dataset.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "passport"
     ],
     "properties": {
      "passport": {
       "type": "string",
       "description": "Passport country as ISO 3166-1 alpha-2 (e.g. 'US', 'GB', 'IN'). Case-insensitive."
      },
      "destination": {
       "type": "string",
       "description": "Destination country as ISO 3166-1 alpha-2 (e.g. 'JP', 'FR'). Required unless full_matrix=true."
      },
      "full_matrix": {
       "type": "boolean",
       "description": "If true, returns the full row of requirements for the passport country across all destinations instead of a single pair. Default false."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "status": {
       "type": "string"
      },
      "passport": {
       "type": "string"
      },
      "visa_free": {
       "type": "boolean"
      },
      "attribution": {
       "type": "string"
      },
      "destination": {
       "type": "string"
      },
      "visa_free_days": {
       "type": "integer"
      },
      "requirement_raw": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "visa-free for 90 days",
  "passport": "US",
  "visa_free": true,
  "attribution": "Data: ilyankou/passport-index-dataset (CC-BY 4.0). https://github.com/ilyankou/passport-index-dataset",
  "destination": "JP",
  "visa_free_days": 90,
  "requirement_raw": "90"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/visa-requirements-lookup-7cd2dec5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
