# Passport Index API

> Passport Index returns visa requirements, passport ranks, and mobility scores as a workflow and API.

Passport Index checks visa requirements and allowed stays using passport and destination countries. Passport Index returns ranks, mobility scores, visa requirement counts, and optional destinations using a passport country.

- Page: https://fous.com/tools/passport-index
- Handle: `@passport-index`
- Category: [Travel](https://fous.com/tools/category/travel)
- Source website: https://passportindex.org
- Last verified: Sep 29, 2026

## Methods

### Check visa requirement

Operation `check_visa_requirement`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Check a passport holder’s visa requirement and permitted stay for a destination. This is guidance; travellers should confirm entry rules with the embassy before travel. Visits to the passport’s issuing country are not listed.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `passport_country` | string | yes | `"US"` | Country that issued the passport, as a name or two-letter code, for example India or IN. |
| `destination_country` | string | yes | `"France"` | Country to visit, as a name or two-letter code, for example Japan or JP. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "passport_country",
    "destination_country"
  ],
  "properties": {
    "passport_country": {
      "type": "string",
      "description": "Country that issued the passport, as a name or two-letter code, for example India or IN.",
      "examples": [
        "US",
        "India",
        "Israel"
      ]
    },
    "destination_country": {
      "type": "string",
      "description": "Country to visit, as a name or two-letter code, for example Japan or JP.",
      "examples": [
        "France",
        "Japan",
        "Iran"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "passport_country": "US",
      "destination_country": "France"
    },
    {
      "passport_country": "India",
      "destination_country": "Japan"
    },
    {
      "passport_country": "Israel",
      "destination_country": "Iran"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `requirement` | string | `"visa free"` | Visa or entry requirement in plain words. |
| `allowed_stay` | string or null | `"90 days"` | Allowed stay as stated by Passport Index, if shown. |
| `raw_requirement` | string | `"visa-free"` | Requirement value as shown by Passport Index. |
| `passport_country` | string | `"United States of America"` | Passport issuing country. |
| `destination_country` | string | `"France"` | Destination country. |
| `passport_index_link` | string | `"https://www.passportindex.org/passport/united-states-of-america/"` | Passport Index passport page containing the requirement. |

**Example input**

```json
{
  "passport_country": "US",
  "destination_country": "France"
}
```

**Example output**

```json
{
  "requirement": "visa free",
  "allowed_stay": "90 days",
  "raw_requirement": "visa-free",
  "passport_country": "United States of America",
  "destination_country": "France",
  "passport_index_link": "https://www.passportindex.org/passport/united-states-of-america/"
}
```

### Get passport rank

Operation `get_passport_rank`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Get a country’s Passport Index global rank, mobility score, visa requirement counts and optional alphabetized destinations. eVisa counts include eVisitor visas; destination categories can overlap, and eTA is listed separately from visas.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `country` | string | yes | `"DE"` | Passport country name or two-letter country code, for example Germany or DE. |
| `include_destinations` | boolean | no | `true` | Whether to include every destination and its visa requirement; for example true. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "country"
  ],
  "properties": {
    "country": {
      "type": "string",
      "description": "Passport country name or two-letter country code, for example Germany or DE.",
      "examples": [
        "DE",
        "Germany",
        "Japan"
      ]
    },
    "include_destinations": {
      "type": "boolean",
      "default": false,
      "description": "Whether to include every destination and its visa requirement; for example true.",
      "examples": [
        true
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "country": "DE"
    },
    {
      "country": "Germany",
      "include_destinations": true
    },
    {
      "country": "Japan",
      "include_destinations": true
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `country` | string | `"Germany"` | Country of the passport. |
| `evisa_count` | integer | `50` | Destinations listing eVisa or eVisitor, including destinations that also list visa on arrival. |
| `global_rank` | integer | `4` | Global passport power rank. |
| `destinations` | array |  |  |
| `destinations[].link` | string | `"https://www.passportindex.org/country/afghanistan/"` |  |
| `destinations[].destination` | string | `"Afghanistan"` |  |
| `destinations[].requirement` | string | `"eVisa"` |  |
| `mobility_score` | integer | `173` | Number of destinations accessible without a visa arranged in advance, including eTA. |
| `visa_free_count` | integer | `120` |  |
| `passport_index_link` | string | `"https://www.passportindex.org/passport/germany/"` |  |
| `visa_required_count` | integer | `25` |  |
| `visa_on_arrival_count` | integer | `42` |  |

**Example input**

```json
{
  "country": "DE"
}
```

**Example output**

```json
{
  "country": "Germany",
  "evisa_count": 50,
  "global_rank": 4,
  "mobility_score": 173,
  "visa_free_count": 120,
  "passport_index_link": "https://www.passportindex.org/passport/germany/",
  "visa_required_count": 25,
  "visa_on_arrival_count": 42
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@passport-index",
  "visibility": "public",
  "operation": "check_visa_requirement",
  "version": 1,
  "input": {
    "passport_country": "US",
    "destination_country": "France"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@passport-index\",\n  \"visibility\": \"public\",\n  \"operation\": \"check_visa_requirement\",\n  \"version\": 1,\n  \"input\": {\n    \"passport_country\": \"US\",\n    \"destination_country\": \"France\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@passport-index",
  "visibility": "public",
  "operation": "check_visa_requirement",
  "version": 1,
  "input": {
    "passport_country": "US",
    "destination_country": "France"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/passport-index`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `check_visa_requirement`: Check visa requirement. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `get_passport_rank`: Get passport rank. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-passport-index https://api.fous.com/mcp/tools/passport-index --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Check entry requirements before planning a trip
- Compare passport mobility across countries
- Review destinations by visa requirement
- Count destinations requiring a visa
- Build destination lists for travel research

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Passport Index tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Passport Index account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from passportindex.org when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What visa requirement applies to a passport holder visiting a country?

Check visa requirement returns the entry requirement and allowed stay, if shown, for the passport country and destination.

### What is a country’s passport rank and mobility score?

Get passport rank returns a country’s global rank, mobility score, and visa requirement counts.

## Related

- [US State Department API](https://fous.com/tools/us-state-department.md): US State Department provides current travel advisories, entry rules, embassy and consulate contacts, and published monthly visa bulletin dates; guidance may be incomplete; consular agencies are excluded.
- [EmbassyPages API](https://fous.com/tools/embassypages.md): Public listings for embassies and consulates worldwide.
- [GOV.UK API](https://fous.com/tools/gov-uk.md): GOV.UK provides summarized current travel advice with linked details, published regional holidays (none for unpublished years), and possible matches on the current UK Sanctions List.
- [IMF API](https://fous.com/tools/imf.md): IMF economic data provides country and regional forecasts with actual or forecast labels, and country rankings by World Economic Outlook indicators, excluding groups and missing values.
- [World Bank API](https://fous.com/tools/world-bank.md): World Bank provides country statistics and latest values within selected years, plus country rankings for a chosen year or the latest broadly covered year.
- [Airbnb API](https://fous.com/tools/airbnb.md): Airbnb returns public stays, listing details, dated trip prices, and night availability, which depend on dates and may be limited, unavailable, or change.
- [Viator API](https://fous.com/tools/viator.md): Tours, day trips, and experiences.
- [FIFA API](https://fous.com/tools/fifa.md): FIFA provides official men’s and women’s national-team rankings, excluding unranked teams, and year-specific tournament matches with scores, teams, stages and venues.
- [All Travel tools](https://fous.com/tools/category/travel)
