# Travel Buddy Visa Requirements API: guide for coding agents

> Visa rules for 213 passports and 213 destinations, sold through RapidAPI. This file is for AI coding agents and developers: everything needed to integrate the API correctly, with exact request and response shapes, how to read them, every error, and tested helper code.
>
> Guide version 1.1.1 · Last updated 2026-11-09 · API version 2.0 · Human docs: https://travel-buddy.ai/api/ · Subscribe and get a key: https://rapidapi.com/TravelBuddyAI/api/visa-requirement

## Read first: this data is unofficial

> **Travel Buddy's visa data is unofficial. Travelers must check the official source before they travel.**
>
> The passport, visa, and travel requirement information provided by this API is unofficial and intended solely for informational, statistical research, and entertainment purposes. This service is not affiliated with, endorsed by, or a substitute for IATA Timatic or any official immigration authority. Data may be incomplete, outdated, or inaccurate. This API must not be used to make official travel, airline boarding, or immigration decisions.
>
> Before they book and before they travel, travelers must confirm the entry requirements with the official immigration authority, embassy or consulate of the destination, or with an authorized travel information provider.

If you build on this API, or you are an AI agent answering a question with it, you must do this:

1. **Say it every time you show a result.** Put a short notice next to every visa answer, for example: "Unofficial information. Rules change: confirm with the destination's official immigration authority, embassy or consulate before you travel." An answer with no notice is not acceptable, in an app or in a chat reply.
2. **Never call the data official.** Do not describe a result as official, verified, authoritative, guaranteed, approved, final or equivalent to IATA Timatic. Do not write "you can travel", "you do not need a visa" or "you are allowed in" as a fact. Write "Travel Buddy's data says …".
3. **Do not use it as the only basis for a decision** about a passenger's eligibility, boarding or entry. This is for planning and research, not for airline check-in or border checks.
4. **Send the traveler to the official source.** When a rule has a `link`, show it: v2 links go to official government or authorized websites. The link is where to confirm the rule; it does not make the rule official.
5. **Show the date or the doubt.** If your cache is older than a day, or the traveler's case is not covered (a second passport, a refugee travel document, a long stay, work or study), say the answer may not apply and send them to the official source.

The same statement is on https://travel-buddy.ai/api/ ("Unofficial data, for information only") and in the Terms of Use (https://travel-buddy.ai/terms-of-use-api/, section 3), which bind everyone who uses the API.

## TL;DR

- **Base URL:** `https://visa-requirement.p.rapidapi.com`
- **Auth:** send `x-rapidapi-key: <your key>` and `x-rapidapi-host: visa-requirement.p.rapidapi.com` on every request. The key comes from a RapidAPI subscription (the free plan has 120 requests a month). Keep the key on your server; never ship it in browser or mobile code.
- **The data is unofficial.** Show a notice with every answer and tell travelers to confirm with the official source before they travel (see "Read first" above).
- **Use v2.** v1 is kept only for old clients.
- **Main call:** `POST /v2/visa/check` with JSON `{"passport": "IN", "destination": "TH"}`.
- **Country codes:** ISO 3166-1 alpha-2. The United Kingdom is `GB`, Kosovo is `XK`. Full list at the end of this file.
- **Check `error` even on HTTP 200.** `/v2/visa/check` answers "unknown pair" and "same passport and destination" with status 200 and `{"error": true, "message": "..."}`.
- **Decode HTML entities** in `comment`, `note` and `full_text` before showing them (`&quot;` → `"`, `&#039;` → `'`), then strip HTML tags: a few `full_text` values hold an `<a>` link.
- **Color is the status.** `green` no visa needed (visa-free, freedom of movement), `yellow` an eTA or similar quick online step, `blue` visa on arrival or eVisa, `red` a visa needed before travel (from an embassy, or online), a special permit, or not admitted. Group and color by `color`, never by parsing the rule's name: the same name can have different colors.
- **Exceptions:** read `exception_rules` (every exception). `exception_rule` holds only the first.
- **Freshness:** every answer is built when you ask, and rules change rarely. Caching a pair for up to 24 hours on your side is fine.

## Endpoints

| Method | Path | Body | Returns |
|---|---|---|---|
| POST | `/v2/visa/check` | `{"passport": "CN", "destination": "ID"}` | Rules, exceptions, registrations and destination facts for one pair |
| POST | `/v2/visa/map` | `{"passport": "CN"}` | Every destination's color for one passport |
| POST | `/v2/passport/rank/custom` | `{"weights": {...}}`, all 8 categories | Every passport ranked by your weights |
| GET | `/v2/visa/check/history/{passport}/{destination}/{fromDate}` | none | Changes of the main rule since a date (real data on the MEGA and VIP plans only) |
| GET | `/v2/passports` | none | The 213 passports the API has rules for |
| GET | `/v2/destinations` | none | The 213 destinations the API has rules for (the same countries as `/v2/passports`) |
| GET | `/v2/health` | none | `{"error": false, "status": "ok"}` |

POST bodies are JSON with `Content-Type: application/json`. Codes are trimmed and upper-cased by the API, so `" in "` works, but send `IN`.

## 1. Visa check: `POST /v2/visa/check`

### Request

```bash
curl -X POST https://visa-requirement.p.rapidapi.com/v2/visa/check \
  -H "Content-Type: application/json" \
  -H "x-rapidapi-key: $RAPIDAPI_KEY" \
  -H "x-rapidapi-host: visa-requirement.p.rapidapi.com" \
  -d '{"passport":"CN","destination":"ID"}'
```

### Response shape

Fields without a value are left out of the answer, never sent as `null` or `""`. Treat every field marked `?` as optional.

```ts
type Color = "green" | "yellow" | "blue" | "red";

interface VisaCheckResponse {
  data: {
    passport: { code: string; name?: string; currency_code?: string };
    destination: {
      code: string;
      name?: string;
      continent?: string;          // "Asia", "Europe", "North America", ...
      capital?: string;
      currency_code?: string;      // ISO 4217, "IDR"
      currency?: string;           // "Indonesian Rupiah"
      exchange?: string;           // value of 1 unit of the destination's currency in the passport's currency:
                                   // "0.000374" (1 IDR = 0.000374 CNY); "1" when both use the same currency; "N/A" when unknown
      passport_validity?: string;  // "6 months", "3 months longer than the duration of stay", "Valid for period of stay", "Valid on arrival"
      phone_code?: string;         // "+62"
      timezone?: string;           // "+08:00"; negative offsets use the Unicode minus "−" (U+2212): "−04:00",
                                   // except Canada and the US ("-05:00", ASCII). Normalize before parsing.
      population?: number;
      area_km2?: number;
      embassy_url?: string;        // the passport country's embassies and consulates abroad
    };
    mandatory_registration?: Registration;     // the first required pre-arrival form
    mandatory_registrations?: Registration[];  // every required form; one item when there is one
    visa_rules: {
      primary_rule: Rule;                // the rule for this passport; its color is the status
      secondary_rule?: Rule;             // another way in, e.g. an eVisa beside visa on arrival
      exception_rule?: LegacyException;  // the FIRST exception only, kept for older integrations
      exception_rules?: ExceptionRule[]; // EVERY exception, in display order
    };
  };
  meta: { version: "2.0"; language: "en"; generated_at: string };
}

interface Rule {
  name: string;        // "Visa on arrival", "eVisa", "Visa not required", "Visa required", "eTA", ...
                       // may end in "*"; the note then explains it ("eTA*" + "*between 18 and 64 years old")
  duration?: string;   // "30 days"
  color: Color;
  link?: string;       // official government or authorized website
  comment?: string;    // HTML-escaped text about the destination
  note?: string;       // HTML-escaped public note for this passport and destination; includes the comment
}

interface Registration {
  name: string;        // "e-Arrival", "ED card", ...
  duration?: string;
  color?: Color;
  link?: string;
  comment?: string;    // only on a single registration
  note?: string;       // HTML-escaped
}

interface LegacyException {
  name?: string;
  exception_type_name?: string;   // "If have a valid visa issued by"
  duration?: string;
  color?: Color;
  country_codes?: string[];       // may include the group codes SH, EU, GC
  link?: string;
  note?: string;                  // HTML-escaped
  full_text?: string;             // HTML-escaped display text, only when the pair has an exception (see "full_text" below)
}

type ExceptionType =
  | "valid-visa" | "valid-multi-visa" | "residence-permit"
  | "age" | "tourist-group" | "invitation-letter" | "event" | "other";

interface ExceptionRule {
  number: number;                 // display order, 1 first
  name: string;                   // the rule the traveler gets: "Visa not required", "eTA", ...
  type: ExceptionType[];          // what qualifies; holding ANY ONE of them is enough
  exception_type_name?: string;   // the condition in words
  duration?: string;
  color?: Color;
  country_codes?: string[];       // countries named one by one, no group codes
  country_groups?: { code: string; name?: string; country_codes?: string[] }[]; // SH Schengen, EU, GC Gulf states, ...
  all_country_codes?: string[];   // every country, groups expanded: match visas and permits against this
  age_min?: number;               // age exceptions only, see "Exceptions" below
  age_max?: number;
  link?: string;
  note?: string;                  // HTML-escaped
}

interface ApiError { error: true; message: string; details?: string[] }

// POST /v2/visa/map
interface VisaMapResponse {
  data: { passport: string; colors: Partial<Record<Color, string>> }; // "AE,AG,AL" comma-separated codes
  meta: { version: "2.0"; language: "en"; generated_at: string };
}

// POST /v2/passport/rank/custom
type Category = "Visa required" | "Visa on arrival" | "Visa-free" | "eVisa" | "eTA" | "Tourist card" | "Freedom of movement" | "Not admitted";
interface RankResponse {
  data: { rank: number; score: number; passport: { code: string; name: string }; categories: Record<Category, number> }[];
  meta: { version: "2.0"; language: "en"; generated_at: string; message?: string }; // message: BASIC plan, top 10 only
}

// GET /v2/visa/check/history/{passport}/{destination}/{fromDate}
interface HistoryRule { id: number; name: string; display_label?: string; duration?: string; duration_days?: number; color: Color }
interface HistoryResponse {
  data: {
    pcc: string; dcc: string; from_date: string;               // from_date normalized to YYYY-MM-DD
    passport: { code: string; name?: string };
    destination: { code: string; name?: string };
    has_changes_since_from_date: boolean;
    current_rule: HistoryRule;
    changes: { date: string; old_rule: HistoryRule; new_rule: HistoryRule }[]; // date YYYY-MM-DD
  };
  meta: {
    version: "2.0"; language: "en"; generated_at: string;
    data_mode: "real" | "demo"; is_demo: boolean;
    required_subscription?: string[]; message?: string;        // demo answers only
  };
}

// GET /v2/passports, GET /v2/destinations (sorted by name)
interface CountryListResponse {
  data: { iso_alpha2: string; iso_alpha3: string; name: string }[];
  meta: { version: "2.0"; language: "en"; generated_at: string };
}
```

### Example: China → Indonesia

```json
{
  "data": {
    "passport": { "code": "CN", "name": "China", "currency_code": "CNY" },
    "destination": {
      "code": "ID",
      "name": "Indonesia",
      "continent": "Asia",
      "capital": "Jakarta",
      "currency_code": "IDR",
      "currency": "Indonesian Rupiah",
      "exchange": "0.000374",
      "passport_validity": "6 months",
      "phone_code": "+62",
      "timezone": "+08:00",
      "population": 277329163,
      "area_km2": 1916907,
      "embassy_url": "https://www.embassypages.com/china#titlePlaceholder2"
    },
    "mandatory_registration": {
      "name": "e-Arrival",
      "color": "yellow",
      "link": "https://allindonesia.imigrasi.go.id/"
    },
    "mandatory_registrations": [
      { "name": "e-Arrival", "color": "yellow", "link": "https://allindonesia.imigrasi.go.id/" }
    ],
    "visa_rules": {
      "primary_rule": { "name": "Visa on arrival", "duration": "30 days", "color": "blue" },
      "secondary_rule": { "name": "eVisa", "duration": "30 days", "color": "blue", "link": "https://evisa.imigrasi.go.id/" }
    }
  },
  "meta": { "version": "2.0", "language": "en", "generated_at": "2026-10-16T08:00:00+00:00" }
}
```

### Showing the main rule

Show one line built from the primary and secondary rules, colored by `primary_rule.color`:

| Situation | Show | Days from |
|---|---|---|
| No `secondary_rule` | `primary – N days` | `primary_rule.duration` |
| Both rules have a duration | `primary / secondary – N days` | `primary_rule.duration` |
| Only the secondary rule has a duration | `primary / secondary – N days` | `secondary_rule.duration` |
| Neither has a duration | `primary / secondary` | none |

China → Indonesia reads **Visa on arrival / eVisa – 30 days**, in blue.

### Exceptions

An exception gives some travelers a different rule: holders of a valid visa or residence permit from certain countries, an age group, an organized tour group, travelers with an invitation letter or attending an event.

- `exception_rules` lists every exception for the pair, in the order to show them. A pair can have several.
- `exception_rule` is the first one, in the older shape. Read `exception_rules` in new code.
- Show each exception as a note under the main rule. Do not recolor the main rule unless you know the traveler qualifies (see the helper code below).

How to tell whether a traveler qualifies, per `type` value:

| `type` | Qualifies when |
|---|---|
| `valid-visa` | the traveler holds a valid visa (single or multiple entry) from a country in `all_country_codes` |
| `valid-multi-visa` | the traveler holds a valid multiple-entry visa from a country in `all_country_codes` |
| `residence-permit` | the traveler holds a residence permit from a country in `all_country_codes` |
| `age` | the traveler is over `age_min` and under `age_max` (either may be missing). When `age_min` is higher than `age_max`, either side qualifies: `age_min` 49 and `age_max` 18 means under 18 or over 49. A traveler exactly at `age_min` or `age_max` cannot be checked: the rules are written "above 55" / "below 55" and do not say whether that age counts |
| `tourist-group`, `invitation-letter`, `event`, `other` | cannot be checked from the data; show the exception as text with its `note` |
| any other value | treat as "cannot be checked"; new values may be added |

Use the code of the country that issued the visa or permit. For a Schengen visa that is the issuing state, such as `FR`; every Schengen member is in `all_country_codes` when the group is.

Two exceptions on one pair, Congo → Morocco (no visa above age 55, an eTA below it):

```json
"visa_rules": {
  "primary_rule": { "name": "Visa required", "color": "red" },
  "exception_rule": { "name": "Visa not required", "duration": "90 days", "color": "green" },
  "exception_rules": [
    { "number": 1, "name": "Visa not required", "type": ["age"], "exception_type_name": "Age", "duration": "90 days", "color": "green", "age_min": 55 },
    { "number": 2, "name": "eTA", "type": ["age"], "exception_type_name": "Age", "duration": "90 days", "color": "yellow", "age_max": 55, "link": "https://www.acces-maroc.ma/" }
  ]
}
```

The live `exception_rule` of this pair also has a `full_text`: Morocco's general text about its eVisa for visa holders, not about age. See `full_text` below.

An exception named by countries and a group, India → Costa Rica:

```json
"visa_rules": {
  "primary_rule": { "name": "Visa required", "color": "red" },
  "exception_rule": {
    "name": "Visa not required",
    "exception_type_name": "If have a valid visa issued by",
    "duration": "30 days",
    "color": "green",
    "country_codes": ["CA", "US", "SH"],
    "full_text": "Visa-exempt for 30 days if have a valid visa issued by Canada, USA or a Schengen."
  },
  "exception_rules": [
    {
      "number": 1,
      "name": "Visa not required",
      "type": ["valid-visa"],
      "exception_type_name": "If have a valid visa issued by",
      "duration": "30 days",
      "color": "green",
      "country_codes": ["CA", "US"],
      "country_groups": [
        { "code": "SH", "name": "Schengen Area", "country_codes": ["AT", "BE", "BG", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GR", "HR", "HU", "IS", "IT", "LI", "LT", "LU", "LV", "MT", "NL", "NO", "PL", "PT", "RO", "SE", "SI", "SK"] }
      ],
      "all_country_codes": ["AT", "BE", "BG", "CA", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GR", "HR", "HU", "IS", "IT", "LI", "LT", "LU", "LV", "MT", "NL", "NO", "PL", "PT", "RO", "SE", "SI", "SK", "US"]
    }
  ]
}
```

### Registrations, notes and links

- **Registrations** are free, required pre-arrival forms (e-Arrival, ED card). They are not visas and never change the main rule or its color. Show them near the top with their `link`. `mandatory_registrations` has them all.
- **Notes**: `note` on a rule is a public note for this passport and destination. Show it under the rule. It already contains the destination's `comment`, so show `note` when present and `comment` only when there is no `note`.
- **Links** in v2 are the official government or authorized websites. Open them in a new tab; never rewrite them. v1 answers use `link.travel-buddy.ai` redirects instead.
- **`full_text`** (on `exception_rule` only) is display text, never data to decide with. It is the destination's text about its exceptions, the same as v1's `except_text`; when the destination has none, it is a sentence built from the rule: `"Visa on arrival for 30 days if have a PR issued by SH, GB."`. It appears only when the pair has an exception. The destination's text is shared by every passport, so on a few pairs it describes another of the destination's exceptions (Congo → Morocco gets Morocco's eVisa text). Decide with `exception_rules`.
- **Text fields** `comment`, `note` and `full_text` are HTML-escaped. Decode the entities and strip any tags (Iraq's, Japan's and Morocco's `full_text` hold an `<a>` link), then show the result as plain text.

## 2. Visa map: `POST /v2/visa/map`

```bash
curl -X POST https://visa-requirement.p.rapidapi.com/v2/visa/map \
  -H "Content-Type: application/json" \
  -H "x-rapidapi-key: $RAPIDAPI_KEY" \
  -H "x-rapidapi-host: visa-requirement.p.rapidapi.com" \
  -d '{"passport":"CN"}'
```

```json
{
  "data": {
    "passport": "CN",
    "colors": {
      "red": "AD,AF,AR,AT,CN,YE",
      "green": "AE,AG,AL,AM,ZM",
      "blue": "AI,BD,BF,BH,ZW",
      "yellow": "CI,KE,KN,LK,SC"
    }
  },
  "meta": { "version": "2.0", "language": "en", "generated_at": "2026-10-16T08:00:00+00:00" }
}
```

(Lists shortened.)

- Each color holds a **comma-separated string**, not an array. Split it.
- A color with no destinations is left out.
- The passport's own country is in the `red` list (China's list contains `CN`). Remove it.
- Colors come from the main rule only; exceptions are not applied.

## 3. Custom passport ranking: `POST /v2/passport/rank/custom`

Ranks every passport by the number of destinations in each category, multiplied by your weights.

- `weights` must contain **all 8 categories**, spelled exactly: `Visa-free`, `Visa on arrival`, `Visa required`, `eVisa`, `eTA`, `Tourist card`, `Freedom of movement`, `Not admitted`. A missing one is a 422 error.
- Each weight is a number from -10 to 10.
- Passports with the same score share a rank.
- On the BASIC plan only the top 10 are returned, and `meta.message` says so.

```bash
curl -X POST https://visa-requirement.p.rapidapi.com/v2/passport/rank/custom \
  -H "Content-Type: application/json" \
  -H "x-rapidapi-key: $RAPIDAPI_KEY" \
  -H "x-rapidapi-host: visa-requirement.p.rapidapi.com" \
  -d '{"weights":{"Visa-free":2,"Visa on arrival":1,"Visa required":0,"eVisa":1,"eTA":1,"Tourist card":1,"Freedom of movement":3,"Not admitted":-1}}'
```

```json
{
  "data": [
    {
      "rank": 1,
      "score": 365,
      "passport": { "code": "ES", "name": "Spain" },
      "categories": { "Visa required": 11, "Visa on arrival": 28, "Visa-free": 100, "eVisa": 27, "eTA": 11, "Tourist card": 0, "Freedom of movement": 33, "Not admitted": 0 }
    },
    {
      "rank": 1,
      "score": 365,
      "passport": { "code": "LU", "name": "Luxembourg" },
      "categories": { "Visa required": 12, "Visa on arrival": 28, "Visa-free": 101, "eVisa": 26, "eTA": 10, "Tourist card": 0, "Freedom of movement": 33, "Not admitted": 0 }
    }
  ],
  "meta": { "version": "2.0", "language": "en", "generated_at": "2026-10-16T08:00:00+00:00" }
}
```

(The first two entries; the list has one per passport. Real counts on 2026-10-16: they move when rules change.) `score` is a number: whole scores come without decimals (`365`), others with them (`364.5`). `categories` counts destinations by the main rule; the passport's own country is not counted.

## 4. History: `GET /v2/visa/check/history/{passport}/{destination}/{fromDate}`

Changes of the **main rule** for one pair since `fromDate`.

- `fromDate`: `YYYY-MM-DD`, `YYYYMMDD` or `DDMMYYYY`. Records start in May 2024; an earlier date returns everything since then.
- **Real data is for the MEGA and VIP plans only** (VIP is the private enterprise plan for select partners). Other plans get a demo answer: a random sample pair, **not the pair you asked for**, with `meta.data_mode: "demo"`, `meta.is_demo: true`, `meta.required_subscription` and `meta.message`. Always check `meta.is_demo` before using the data, and that `data.pcc` and `data.dcc` are the codes you asked for. `meta.required_subscription` names the plans with real data as `["MEGA", "CUSTOM-internal"]`: `CUSTOM-internal` is the VIP plan.

```bash
curl https://visa-requirement.p.rapidapi.com/v2/visa/check/history/KZ/ME/2024-01-01 \
  -H "x-rapidapi-key: $RAPIDAPI_KEY" \
  -H "x-rapidapi-host: visa-requirement.p.rapidapi.com"
```

```json
{
  "data": {
    "pcc": "KZ",
    "dcc": "ME",
    "from_date": "2024-01-01",
    "passport": { "code": "KZ", "name": "Kazakhstan" },
    "destination": { "code": "ME", "name": "Montenegro" },
    "has_changes_since_from_date": true,
    "current_rule": { "id": 68, "name": "Visa required", "display_label": "Visa required", "color": "red" },
    "changes": [
      {
        "date": "2024-07-29",
        "old_rule": { "id": 68, "name": "Visa required", "display_label": "Visa required", "color": "red" },
        "new_rule": { "id": 21, "name": "Visa not required", "display_label": "Visa not required", "duration": "30 days", "duration_days": 30, "color": "green" }
      },
      {
        "date": "2024-11-05",
        "old_rule": { "id": 21, "name": "Visa not required", "display_label": "Visa not required", "duration": "30 days", "duration_days": 30, "color": "green" },
        "new_rule": { "id": 68, "name": "Visa required", "display_label": "Visa required", "color": "red" }
      },
      {
        "date": "2025-03-04",
        "old_rule": { "id": 68, "name": "Visa required", "display_label": "Visa required", "color": "red" },
        "new_rule": { "id": 21, "name": "Visa not required", "display_label": "Visa not required", "duration": "30 days", "duration_days": 30, "color": "green" }
      },
      {
        "date": "2025-11-02",
        "old_rule": { "id": 21, "name": "Visa not required", "display_label": "Visa not required", "duration": "30 days", "duration_days": 30, "color": "green" },
        "new_rule": { "id": 68, "name": "Visa required", "display_label": "Visa required", "color": "red" }
      },
      {
        "date": "2026-05-01",
        "old_rule": { "id": 68, "name": "Visa required", "display_label": "Visa required", "color": "red" },
        "new_rule": { "id": 21, "name": "Visa not required", "display_label": "Visa not required", "duration": "30 days", "duration_days": 30, "color": "green" }
      },
      {
        "date": "2026-10-05",
        "old_rule": { "id": 21, "name": "Visa not required", "display_label": "Visa not required", "duration": "30 days", "duration_days": 30, "color": "green" },
        "new_rule": { "id": 68, "name": "Visa required", "display_label": "Visa required", "color": "red" }
      }
    ]
  },
  "meta": { "version": "2.0", "language": "en", "generated_at": "2026-10-16T08:00:00+00:00", "data_mode": "real", "is_demo": false }
}
```

## 5. Country lists: `GET /v2/passports` and `GET /v2/destinations`

Every country the API knows, sorted by name, for building pickers. Both count as requests on your plan; the lists change rarely, so cache them.

```bash
curl https://visa-requirement.p.rapidapi.com/v2/passports \
  -H "x-rapidapi-key: $RAPIDAPI_KEY" \
  -H "x-rapidapi-host: visa-requirement.p.rapidapi.com"
```

```json
{
  "data": [
    { "iso_alpha2": "AF", "iso_alpha3": "AFG", "name": "Afghanistan" },
    { "iso_alpha2": "AL", "iso_alpha3": "ALB", "name": "Albania" }
  ],
  "meta": { "version": "2.0", "language": "en", "generated_at": "2026-10-16T08:00:00+00:00" }
}
```

(Lists shortened.)

- Send `iso_alpha2` as `passport` and `destination`; `iso_alpha3` is for display or matching your own data.
- `/v2/passports` and `/v2/destinations` both have the same 213 countries. The appendix below has the same list.

## 6. Errors

Errors from the API have this body: `{"error": true, "message": "...", "details": [...]}` (`details` only for missing fields). Errors from RapidAPI's gateway have `{"message": "..."}`. Read `message` in both cases.

| Status | When | Example `message` | What to do |
|---|---|---|---|
| **200 with `"error": true`** | `/v2/visa/check`: unknown pair or code, same passport and destination | `No visa information found for the requested combination.` · `Passport and destination cannot be identical.` | Do not retry; fix the codes |
| 401 | Key missing or invalid | (from RapidAPI) | Check the headers |
| 403 | No subscription to this API on RapidAPI | `You are not subscribed to this API.` | Subscribe on RapidAPI |
| 404 | `/v2/visa/map`: unknown passport · history (MEGA or VIP plan): unknown pair | `No map data found for the provided passport.` | Do not retry; fix the code |
| 422 | Missing field, bad JSON, bad weights; on history (MEGA or VIP plan) a bad date or a code that is not two letters | `Required parameters are missing.` (with `details: ["destination"]`) · `Request body must be valid JSON.` · `Missing weight for category "Tourist card".` · `Weight for category "eTA" must be between -10 and 10.` · `From date must use DDMMYYYY, YYYYMMDD, or YYYY-MM-DD format.` | Do not retry; fix the request |
| 429 | Free plan's monthly requests used up, or too many requests at once (paid plans keep answering past their monthly requests and bill each extra one, see "Plans and limits") | (from RapidAPI) | Back off; retry later or upgrade the plan |
| 500, 503 | Server or database problem | `Internal Server Error` · `Database connection failed` | Retry up to 3 times with exponential backoff |

History answers on plans other than MEGA and VIP are demo answers and never return 404 or 422.

## 7. Helper code

Tested against the examples above. JavaScript (Node 18+ or any runtime with `fetch`); a Python version follows.

```js
const BASE = "https://visa-requirement.p.rapidapi.com";
const COLOR_RANK = { green: 0, yellow: 1, blue: 2, red: 3 }; // lower is easier

class VisaApiError extends Error {
  constructor(status, message, details) {
    super(message);
    this.status = status;
    this.details = details;
  }
}

/** One API call: throws VisaApiError on any error, including HTTP 200 with "error": true. */
async function callApi(path, { method = "POST", body, key = process.env.RAPIDAPI_KEY, retries = 3 } = {}) {
  for (let attempt = 0; ; attempt++) {
    let res;
    try {
      res = await fetch(BASE + path, {
        method,
        headers: {
          "Content-Type": "application/json",
          "x-rapidapi-key": key,
          "x-rapidapi-host": "visa-requirement.p.rapidapi.com",
        },
        body: body === undefined ? undefined : JSON.stringify(body),
        signal: AbortSignal.timeout(20000),
      });
    } catch (networkError) {                       // timeout, DNS, connection reset
      if (attempt < retries) { await new Promise((r) => setTimeout(r, 500 * 2 ** attempt)); continue; }
      throw new VisaApiError(0, networkError.message);
    }
    const json = await res.json().catch(() => null);
    const retryable = res.status === 429 || res.status >= 500;
    if (retryable && attempt < retries) {
      await new Promise((r) => setTimeout(r, 500 * 2 ** attempt));
      continue;
    }
    if (!res.ok || !json || json.error) {
      throw new VisaApiError(res.status, json?.message ?? res.statusText, json?.details);
    }
    return json;
  }
}

const checkVisa = (passport, destination) => callApi("/v2/visa/check", { body: { passport, destination } });

/** comment, note and full_text arrive HTML-escaped; returns plain text, without tags such as a full_text <a> link. */
function decode(text) {
  if (text == null) return text;
  return text
    .replace(/&quot;/g, '"').replace(/&#0?39;/g, "'").replace(/&lt;/g, "<").replace(/&gt;/g, ">")
    .replace(/&amp;/g, "&")
    .replace(/<[^>]*>/g, "");
}

/** "Visa on arrival / eVisa – 30 days" from visa_rules, following the display table. */
function ruleLine(rules) {
  const p = rules.primary_rule, s = rules.secondary_rule;
  const name = s ? `${p.name} / ${s.name}` : p.name;
  const days = p.duration ?? s?.duration;
  return days ? `${name} – ${days}` : name;
}

/**
 * Whether a traveler qualifies for one exception: "yes", "no" or "unknown" (cannot be checked from data).
 * traveler: { visas: ["US"], multiEntryVisas: ["US"], residencePermits: ["DE"], age: 40 }
 */
function qualifies(exception, traveler) {
  const countries = new Set(exception.all_country_codes ?? []);
  const holds = (codes) => (codes ?? []).some((c) => countries.has(c.toUpperCase()));
  let unknown = false;
  for (const type of exception.type ?? []) {
    const byCountry = ["valid-visa", "valid-multi-visa", "residence-permit"].includes(type);
    if (byCountry && countries.size === 0) { unknown = true; continue; } // names no countries: cannot be checked
    if (type === "valid-visa" && holds([...(traveler.visas ?? []), ...(traveler.multiEntryVisas ?? [])])) return "yes";
    if (type === "valid-multi-visa" && holds(traveler.multiEntryVisas)) return "yes";
    if (type === "residence-permit" && holds(traveler.residencePermits)) return "yes";
    if (type === "age") {
      const { age_min: min, age_max: max } = exception;
      if (traveler.age == null || (min == null && max == null)) { unknown = true; continue; }
      const a = traveler.age;
      if (a === min || a === max) { unknown = true; continue; }    // the boundary age itself is not defined
      const ok = min != null && max != null && min > max
        ? a < max || a > min
        : (min == null || a > min) && (max == null || a < max);
      if (ok) return "yes";
      continue;
    }
    if (!byCountry) unknown = true;
  }
  return unknown ? "unknown" : "no";
}

/** The easiest rule that applies to this traveler: the primary rule, or an exception they qualify for. */
function ruleFor(rules, traveler) {
  let best = { ...rules.primary_rule, via: null };
  for (const ex of rules.exception_rules ?? []) {
    if (ex.color && qualifies(ex, traveler) === "yes" && COLOR_RANK[ex.color] < COLOR_RANK[best.color]) {
      best = { name: ex.name, duration: ex.duration, color: ex.color, link: ex.link, note: ex.note, via: ex };
    }
  }
  return best;
}

/** /v2/visa/map colors as arrays, without the passport's own country. */
function mapColors(mapResponse) {
  const { passport, colors } = mapResponse.data;
  return Object.fromEntries(
    Object.entries(colors).map(([color, list]) => [color, list.split(",").filter((c) => c && c !== passport)])
  );
}

// Usage:
// const res = await checkVisa("IN", "CR");
// const rules = res.data.visa_rules;
// ruleLine(rules);                                   // "Visa required"
// ruleFor(rules, { visas: ["US"] });                 // { name: "Visa not required", duration: "30 days", color: "green", ... }
// (res.data.mandatory_registrations ?? []).map((r) => r.name);
//
// mapColors(await callApi("/v2/visa/map", { body: { passport: "CN" } }));   // { green: ["AE", ...], red: [...], ... }
// await callApi("/v2/passport/rank/custom", { body: { weights: { "Visa-free": 2, "Visa on arrival": 1, "Visa required": 0,
//   "eVisa": 1, "eTA": 1, "Tourist card": 1, "Freedom of movement": 3, "Not admitted": -1 } } });
// const history = await callApi("/v2/visa/check/history/KZ/ME/2024-01-01", { method: "GET" });
// if (history.meta.is_demo) { /* sample data for another pair: needs the MEGA or VIP plan */ }
```

```python
import html, os, re, time
import requests

BASE = "https://visa-requirement.p.rapidapi.com"
COLOR_RANK = {"green": 0, "yellow": 1, "blue": 2, "red": 3}  # lower is easier


class VisaApiError(Exception):
    def __init__(self, status, message, details=None):
        super().__init__(message)
        self.status, self.details = status, details


def call_api(path, body=None, method="POST", key=None, retries=3):
    """One API call; raises VisaApiError on any error, including HTTP 200 with "error": true."""
    headers = {
        "Content-Type": "application/json",
        "x-rapidapi-key": key or os.environ["RAPIDAPI_KEY"],
        "x-rapidapi-host": "visa-requirement.p.rapidapi.com",
    }
    for attempt in range(retries + 1):
        try:
            res = requests.request(method, BASE + path, json=body, headers=headers, timeout=20)
        except requests.RequestException as e:  # timeout, DNS, connection reset
            if attempt < retries:
                time.sleep(0.5 * 2 ** attempt)
                continue
            raise VisaApiError(0, str(e))
        try:
            data = res.json()
        except ValueError:
            data = None
        if (res.status_code == 429 or res.status_code >= 500) and attempt < retries:
            time.sleep(0.5 * 2 ** attempt)
            continue
        if not res.ok or not isinstance(data, dict) or data.get("error"):
            message = data.get("message") if isinstance(data, dict) else res.reason
            raise VisaApiError(res.status_code, message, data.get("details") if isinstance(data, dict) else None)
        return data


def check_visa(passport, destination):
    return call_api("/v2/visa/check", {"passport": passport, "destination": destination})


def decode(text):
    """comment, note and full_text arrive HTML-escaped; returns plain text, without tags such as a full_text <a> link."""
    return re.sub(r"<[^>]*>", "", html.unescape(text)) if text else text


def rule_line(rules):
    p, s = rules["primary_rule"], rules.get("secondary_rule")
    name = f'{p["name"]} / {s["name"]}' if s else p["name"]
    days = p.get("duration") or (s or {}).get("duration")
    return f"{name} – {days}" if days else name


def qualifies(exception, traveler):
    """'yes', 'no' or 'unknown'. traveler: {"visas": ["US"], "multi_entry_visas": [], "residence_permits": ["DE"], "age": 40}"""
    countries = set(exception.get("all_country_codes", []))
    holds = lambda codes: any(c.upper() in countries for c in codes or [])
    unknown = False
    for t in exception.get("type", []):
        by_country = t in ("valid-visa", "valid-multi-visa", "residence-permit")
        if by_country and not countries:
            unknown = True  # names no countries: cannot be checked
            continue
        if t == "valid-visa" and holds((traveler.get("visas") or []) + (traveler.get("multi_entry_visas") or [])):
            return "yes"
        if t == "valid-multi-visa" and holds(traveler.get("multi_entry_visas")):
            return "yes"
        if t == "residence-permit" and holds(traveler.get("residence_permits")):
            return "yes"
        if t == "age":
            lo, hi, a = exception.get("age_min"), exception.get("age_max"), traveler.get("age")
            if a is None or (lo is None and hi is None) or a in (lo, hi):  # the boundary age itself is not defined
                unknown = True
                continue
            ok = (a < hi or a > lo) if (lo is not None and hi is not None and lo > hi) else \
                 ((lo is None or a > lo) and (hi is None or a < hi))
            if ok:
                return "yes"
            continue
        if not by_country:
            unknown = True
    return "unknown" if unknown else "no"


def rule_for(rules, traveler):
    """The easiest rule that applies: the primary rule, or an exception the traveler qualifies for."""
    best = dict(rules["primary_rule"], via=None)
    for ex in rules.get("exception_rules", []):
        color = ex.get("color")
        if color and qualifies(ex, traveler) == "yes" and COLOR_RANK[color] < COLOR_RANK[best["color"]]:
            best = {"name": ex["name"], "duration": ex.get("duration"), "color": color,
                    "link": ex.get("link"), "note": ex.get("note"), "via": ex}
    return best


def map_colors(map_response):
    """/v2/visa/map colors as lists, without the passport's own country."""
    data = map_response["data"]
    return {color: [c for c in codes.split(",") if c and c != data["passport"]]
            for color, codes in data["colors"].items()}


# Usage:
# rules = check_visa("IN", "CR")["data"]["visa_rules"]
# rule_line(rules)                         # "Visa required"
# rule_for(rules, {"visas": ["US"]})       # {"name": "Visa not required", "color": "green", ...}
# map_colors(call_api("/v2/visa/map", {"passport": "CN"}))
# history = call_api("/v2/visa/check/history/KZ/ME/2024-01-01", method="GET")
# if history["meta"]["is_demo"]: ...       # sample data for another pair: needs the MEGA or VIP plan
```

### Recipe: a visa check endpoint for your app

The usual task is "show the visa requirement for the traveler's passport and destination". Call the API from your server, cache per pair, and send your front end only what it shows. With the helpers above (Express shown; any framework works the same way):

```js
import express from "express";
const app = express();
const cache = new Map(); // "IN-TH" -> { at, value }; use Redis or similar in production

app.get("/visa/:passport/:destination", async (req, res) => {
  const passport = req.params.passport.toUpperCase();
  const destination = req.params.destination.toUpperCase();
  const pair = `${passport}-${destination}`;
  const hit = cache.get(pair);
  if (hit && Date.now() - hit.at < 24 * 3600 * 1000) return res.json(hit.value);
  try {
    const { data } = await checkVisa(passport, destination);
    const rules = data.visa_rules;
    const value = {
      line: ruleLine(rules),                                      // "Visa on arrival / eVisa – 30 days"
      color: rules.primary_rule.color,
      note: decode(rules.primary_rule.note ?? rules.primary_rule.comment),
      links: [rules.primary_rule.link, rules.secondary_rule?.link].filter(Boolean),
      exceptions: (rules.exception_rules ?? []).map((e) => ({
        text: `${e.name}${e.duration ? " – " + e.duration : ""}`,
        condition: e.exception_type_name,
        note: decode(e.note),
        link: e.link,
      })),
      registrations: (data.mandatory_registrations ?? []).map((r) => ({ name: r.name, link: r.link, note: decode(r.note) })),
      passportValidity: data.destination.passport_validity,
      // Required: the front end must show this next to the result.
      notice: "Unofficial information. Rules change: confirm with the destination's official immigration authority, embassy or consulate before you travel.",
    };
    cache.set(pair, { at: Date.now(), value });
    res.json(value);
  } catch (e) {
    res.status(e.status === 200 || e.status === 404 || e.status === 422 ? 400 : 502).json({ error: e.message });
  }
});
```

## 8. Coming from v1

- Paths change from `/v1/visa/check` to `/v2/visa/check` (and `/v1/visa/map` to `/v2/visa/map`).
- Send a JSON body. The fields stay `passport` and `destination`.
- Read the nested `data` object: `data.visa_rules.primary_rule` and the rest.
- v2 links are the official websites; v1 links go through `link.travel-buddy.ai`.
- v1's `except_text` is v2's `exception_rule.full_text`, with two differences: v2 shows it only when the pair has an exception (v1 shows the destination's text on every pair to it), and when the destination has no text v2 builds a sentence from the rule (v1 sends `""`).

## 9. Mistakes to avoid

1. Reading `data` without checking `error` on an HTTP 200 answer of `/v2/visa/check`.
2. Reading only `exception_rule` and missing the other exceptions in `exception_rules`.
3. Coloring the main rule with an exception's color for a traveler who has not been checked.
4. Deriving the status from the rule's name instead of `color`.
5. Showing `&quot;` and `&#039;` in notes instead of decoding them.
6. Sending `UK` instead of `GB`.
7. Leaving `Tourist card` (or any category) out of the ranking weights.
8. Treating map colors as arrays, or showing the passport's own country as "visa required".
9. Using demo history data as real: check `meta.is_demo`.
10. Exposing the RapidAPI key in a web page or app.
11. Parsing `timezone` with an ASCII minus only: most negative offsets use "−" (U+2212).
12. Showing `full_text` as the reason a traveler qualifies: it is display text and can describe another exception of the destination.
13. Presenting the data as official or final. It is unofficial. Show "Unofficial information. Rules change: confirm with the official immigration authority, embassy or consulate before you travel." with every answer. This API is for planning, not for airline boarding or border decisions, and it is not a substitute for IATA Timatic.
14. Answering a traveler's question in a chat or an agent run without the notice, or turning "Travel Buddy's data says" into "you can travel".

## 10. Pairs to test with

| Pair | Shows |
|---|---|
| `CN` → `ID` | Primary and secondary rule, a registration with an official link |
| `IN` → `CR` | One exception, by countries and the Schengen group, with `full_text` |
| `CG` → `MA` | Two exceptions by age (over 55, under 55) |
| `EG` → `SD` | Age on either side (`age_min` 49, `age_max` 18) with a note |
| `IN` → `IN` | HTTP 200 with `"error": true` (same passport and destination) |
| `KZ` → `ME`, history from `2024-01-01` | Six changes of the main rule: Montenegro opens and closes visa-free stays for Kazakhstan by season (MEGA or VIP plan) |

## 11. Plans and limits

As listed on RapidAPI on 2026-10-16 (https://rapidapi.com/TravelBuddyAI/api/visa-requirement/pricing):

| Plan | Price a month | Requests a month | After that |
|---|---|---|---|
| BASIC | free | 120 | refused with HTTP 429 until the next month |
| PRO | $4.99 | 3,000 | $0.001 per extra request |
| ULTRA | $14.99 | 30,000 | $0.0001 per extra request |
| MEGA | $49.99 | 1,200,000 | $0.00004 per extra request |

Paid plans do not stop at their monthly requests: every extra request is billed, so cache on your side (see "Freshness" at the top). Real history data needs the MEGA plan or the private VIP plan (an enterprise plan for select partners, not on the pricing page: write to info@travel-buddy.ai); the BASIC plan's ranking returns the top 10.

Support: info@travel-buddy.ai

## Changes

The guide's version is `MAJOR.MINOR.PATCH`: MAJOR when the API changes in a way that breaks existing code, MINOR when the API adds something or the guide adds a section, PATCH for corrections and wording.

- **1.1.1, 2026-11-09:** wording only. A demo history answer lists `meta.required_subscription` as `["MEGA", "CUSTOM-internal"]`; the guide now says `CUSTOM-internal` is the VIP plan (the owner confirmed it). No change to any endpoint, field or error.
- **1.1.0, 2026-11-09:** new section "Read first: this data is unofficial" at the top, with the same wording as the Terms of Use and `/api/` (unofficial, not a substitute for IATA Timatic or any immigration authority, not for boarding or immigration decisions, check the official source before travel) and five rules for apps and AI agents that show results. The "Mistakes to avoid" list and the server recipe say it too. The ranking example no longer says "of 200". Real history data is for the MEGA and VIP plans (the guide said MEGA only; the owner confirmed both on 2026-11-09). No change to any endpoint, field or error.
- **1.0.6, 2026-11-07:** corrections only. The counts are 213 passports and 213 destinations: every country in the appendix is both. Gibraltar (`GI`) has had rules as a destination since 2026-10-19, so it is no longer an exception, and `/v2/destinations` has the same 213 countries as `/v2/passports`. A passport still has no rule for its own country, so one pair set has 212 other countries. No change to any endpoint, field or error.
- **1.0.5, 2026-11-07:** corrections only. Three passports added to the coverage: Aruba (`AW`), Curaçao (`CW`) and Sint Maarten (`SX`). `/v2/passports` has 213 passports, and the appendix lists those three as passports. They were already destinations. No change to any endpoint, field or error.
- **1.0.4, 2026-11-06:** corrections only. Four passports added to the coverage: Guadeloupe (`GP`), Martinique (`MQ`), Saint Martin (`MF`) and Saint Barthélemy (`BL`). `/v2/passports` has 210 passports, and the appendix lists those four as passports. They were already destinations. No change to any endpoint, field or error.
- **1.0.3, 2026-11-03:** corrections only. Saint Barthélemy (`BL`) added as a destination (not a passport): the appendix lists it, and the counts are now 206 passports and 212 destinations (`/v2/destinations` has 213 countries with Gibraltar). No change to any endpoint, field or error.
- **1.0.2, 2026-11-01:** corrections only. Six passports added to the coverage: Anguilla (`AI`), Bermuda (`BM`), the Cayman Islands (`KY`), Montserrat (`MS`), Turks and Caicos (`TC`) and the British Virgin Islands (`VG`). `/v2/passports` has 206 passports, and the appendix lists those six as passports. They were already destinations. No change to any endpoint, field or error.
- **1.0.1, 2026-10-16:** corrections only, every example checked against the live API. The KZ → ME history example was the API's demo sample; it is now the real answer (six changes, "Visa required" today). The map example's yellow list is complete.
- **1.0.0, 2026-10-16:** first version of this guide. API: `/v2/visa/check` adds `exception_rules` (every exception; a pair can have several), `note` on each rule, `mandatory_registrations` (every form) and `exception_rule.full_text`. Every v2 `link` now points straight at the official website. Nothing was removed or renamed.

## Appendix: country codes

213 passports and 213 destinations, on 2026-11-07. Use a code as `passport` when that column says `yes`, and as `destination` when that one does. Any other code gives an error. `GET /v2/passports` and `GET /v2/destinations` return the same list.

```csv
code,name,passport,destination
AD,Andorra,yes,yes
AE,United Arab Emirates,yes,yes
AF,Afghanistan,yes,yes
AG,Antigua and Barbuda,yes,yes
AI,Anguilla,yes,yes
AL,Albania,yes,yes
AM,Armenia,yes,yes
AO,Angola,yes,yes
AR,Argentina,yes,yes
AT,Austria,yes,yes
AU,Australia,yes,yes
AW,Aruba,yes,yes
AZ,Azerbaijan,yes,yes
BA,Bosnia and Herzegovina,yes,yes
BB,Barbados,yes,yes
BD,Bangladesh,yes,yes
BE,Belgium,yes,yes
BF,Burkina Faso,yes,yes
BG,Bulgaria,yes,yes
BH,Bahrain,yes,yes
BI,Burundi,yes,yes
BJ,Benin,yes,yes
BL,Saint Barthélemy,yes,yes
BM,Bermuda,yes,yes
BN,Brunei,yes,yes
BO,Bolivia,yes,yes
BR,Brazil,yes,yes
BS,Bahamas,yes,yes
BT,Bhutan,yes,yes
BW,Botswana,yes,yes
BY,Belarus,yes,yes
BZ,Belize,yes,yes
CA,Canada,yes,yes
CD,Congo (Dem. Rep.),yes,yes
CF,Central African Republic,yes,yes
CG,Congo,yes,yes
CH,Switzerland,yes,yes
CI,Cote d'Ivoire,yes,yes
CL,Chile,yes,yes
CM,Cameroon,yes,yes
CN,China,yes,yes
CO,Colombia,yes,yes
CR,Costa Rica,yes,yes
CU,Cuba,yes,yes
CV,Cape Verde,yes,yes
CW,Curaçao,yes,yes
CY,Cyprus,yes,yes
CZ,Czech Republic,yes,yes
DE,Germany,yes,yes
DJ,Djibouti,yes,yes
DK,Denmark,yes,yes
DM,Dominica,yes,yes
DO,Dominican Republic,yes,yes
DZ,Algeria,yes,yes
EC,Ecuador,yes,yes
EE,Estonia,yes,yes
EG,Egypt,yes,yes
ER,Eritrea,yes,yes
ES,Spain,yes,yes
ET,Ethiopia,yes,yes
FI,Finland,yes,yes
FJ,Fiji,yes,yes
FM,Micronesia,yes,yes
FR,France,yes,yes
GA,Gabon,yes,yes
GB,United Kingdom,yes,yes
GD,Grenada,yes,yes
GE,Georgia,yes,yes
GH,Ghana,yes,yes
GI,Gibraltar,yes,yes
GM,Gambia,yes,yes
GN,Guinea,yes,yes
GP,Guadeloupe,yes,yes
GQ,Equatorial Guinea,yes,yes
GR,Greece,yes,yes
GT,Guatemala,yes,yes
GW,Guinea-Bissau,yes,yes
GY,Guyana,yes,yes
HK,Hong Kong,yes,yes
HN,Honduras,yes,yes
HR,Croatia,yes,yes
HT,Haiti,yes,yes
HU,Hungary,yes,yes
ID,Indonesia,yes,yes
IE,Ireland,yes,yes
IL,Israel,yes,yes
IN,India,yes,yes
IQ,Iraq,yes,yes
IR,Iran,yes,yes
IS,Iceland,yes,yes
IT,Italy,yes,yes
JM,Jamaica,yes,yes
JO,Jordan,yes,yes
JP,Japan,yes,yes
KE,Kenya,yes,yes
KG,Kyrgyzstan,yes,yes
KH,Cambodia,yes,yes
KI,Kiribati,yes,yes
KM,Comoros,yes,yes
KN,Saint Kitts and Nevis,yes,yes
KP,North Korea,yes,yes
KR,South Korea,yes,yes
KW,Kuwait,yes,yes
KY,Cayman Islands,yes,yes
KZ,Kazakhstan,yes,yes
LA,Laos,yes,yes
LB,Lebanon,yes,yes
LC,Saint Lucia,yes,yes
LI,Liechtenstein,yes,yes
LK,Sri Lanka,yes,yes
LR,Liberia,yes,yes
LS,Lesotho,yes,yes
LT,Lithuania,yes,yes
LU,Luxembourg,yes,yes
LV,Latvia,yes,yes
LY,Libya,yes,yes
MA,Morocco,yes,yes
MC,Monaco,yes,yes
MD,Moldova,yes,yes
ME,Montenegro,yes,yes
MF,Saint Martin,yes,yes
MG,Madagascar,yes,yes
MH,Marshall Islands,yes,yes
MK,North Macedonia,yes,yes
ML,Mali,yes,yes
MM,Myanmar,yes,yes
MN,Mongolia,yes,yes
MO,Macau,yes,yes
MQ,Martinique,yes,yes
MR,Mauritania,yes,yes
MS,Montserrat,yes,yes
MT,Malta,yes,yes
MU,Mauritius,yes,yes
MV,Maldives,yes,yes
MW,Malawi,yes,yes
MX,Mexico,yes,yes
MY,Malaysia,yes,yes
MZ,Mozambique,yes,yes
NA,Namibia,yes,yes
NE,Niger,yes,yes
NG,Nigeria,yes,yes
NI,Nicaragua,yes,yes
NL,Netherlands,yes,yes
NO,Norway,yes,yes
NP,Nepal,yes,yes
NR,Nauru,yes,yes
NZ,New Zealand,yes,yes
OM,Oman,yes,yes
PA,Panama,yes,yes
PE,Peru,yes,yes
PG,Papua New Guinea,yes,yes
PH,Philippines,yes,yes
PK,Pakistan,yes,yes
PL,Poland,yes,yes
PS,Palestinian Territories,yes,yes
PT,Portugal,yes,yes
PW,Palau,yes,yes
PY,Paraguay,yes,yes
QA,Qatar,yes,yes
RO,Romania,yes,yes
RS,Serbia,yes,yes
RU,Russian Federation,yes,yes
RW,Rwanda,yes,yes
SA,Saudi Arabia,yes,yes
SB,Solomon Islands,yes,yes
SC,Seychelles,yes,yes
SD,Sudan,yes,yes
SE,Sweden,yes,yes
SG,Singapore,yes,yes
SI,Slovenia,yes,yes
SK,Slovakia,yes,yes
SL,Sierra Leone,yes,yes
SM,San Marino,yes,yes
SN,Senegal,yes,yes
SO,Somalia,yes,yes
SR,Suriname,yes,yes
SS,South Sudan,yes,yes
ST,Sao Tome and Principe,yes,yes
SV,El Salvador,yes,yes
SX,Sint Maarten,yes,yes
SY,Syria,yes,yes
SZ,Eswatini,yes,yes
TC,Turks and Caicos,yes,yes
TD,Chad,yes,yes
TG,Togo,yes,yes
TH,Thailand,yes,yes
TJ,Tajikistan,yes,yes
TL,Timor-Leste,yes,yes
TM,Turkmenistan,yes,yes
TN,Tunisia,yes,yes
TO,Tonga,yes,yes
TR,Türkiye,yes,yes
TT,Trinidad and Tobago,yes,yes
TV,Tuvalu,yes,yes
TW,Taiwan,yes,yes
TZ,Tanzania,yes,yes
UA,Ukraine,yes,yes
UG,Uganda,yes,yes
US,United States of America,yes,yes
UY,Uruguay,yes,yes
UZ,Uzbekistan,yes,yes
VA,Vatican City,yes,yes
VC,St. Vincent and the Grenadines,yes,yes
VE,Venezuela,yes,yes
VG,Virgin Islands (British),yes,yes
VN,Viet Nam,yes,yes
VU,Vanuatu,yes,yes
WS,Samoa,yes,yes
XK,Kosovo,yes,yes
YE,Yemen,yes,yes
ZA,South Africa,yes,yes
ZM,Zambia,yes,yes
ZW,Zimbabwe,yes,yes
```
