# 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/workflows/passport-index
- Handle: `@passport-index`
- Category: [Travel](https://fous.com/workflows/category/travel)
- Source website: https://passportindex.org
- Last verified: Sep 29, 2026
- Fous is not affiliated with Passport Index.

## Methods

### Check visa requirement

Operation `check_visa_requirement`, version 1. 1 credit per call.

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 call.

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 |  |  |
| `destinations[].destination` | string |  |  |
| `destinations[].requirement` | string |  |  |
| `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

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@passport-index","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with Passport Index?

No. Fous is not affiliated with Passport Index. This workflow reads the public passportindex.org website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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/workflows/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/workflows/embassypages.md): Public listings for embassies and consulates worldwide.
- [GOV.UK API](https://fous.com/workflows/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/workflows/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/workflows/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/workflows/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/workflows/viator.md): Tours, day trips, and experiences.
- [FIFA API](https://fous.com/workflows/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 workflows](https://fous.com/workflows/category/travel)
