Overview
Covers about 228 countries and territories. Passport validity is normalized to a rule and a number, such as 6 months after arrival, 3 months after departure or valid for the whole stay, with a one-line summary and plain-English guidance alongside. Send trip dates and a passport expiry date and the API works out the date the passport must be valid until and whether it passes. Rules come from UK FCDO travel advice, published for British passport holders; passport validity, blank page and vaccination rules are usually the same for every foreign visitor, while visa rules are not (see the Visa Requirements API). US advisory levels come from the State Department. Data is checked daily. Confirm with the destination's official source before travel.
Live Test Travel Entry Requirements API →
Endpoint
One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.
curl "https://api.apiverve.com/v1/entryrequirements?destination=TH&arrivalDate=2027-03-01&departureDate=2027-03-15&passportExpiry=2027-07-01" \
-H "x-api-key: your_api_key_here"const res = await fetch('https://api.apiverve.com/v1/entryrequirements?destination=TH&arrivalDate=2027-03-01&departureDate=2027-03-15&passportExpiry=2027-07-01', {
headers: { 'x-api-key': 'your_api_key_here' },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data } = await res.json();
console.log(data);import requests
res = requests.get(
"https://api.apiverve.com/v1/entryrequirements?destination=TH&arrivalDate=2027-03-01&departureDate=2027-03-15&passportExpiry=2027-07-01",
headers={"x-api-key": "your_api_key_here"},
timeout=15,
)
res.raise_for_status()
print(res.json()["data"])package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/entryrequirements?destination=TH&arrivalDate=2027-03-01&departureDate=2027-03-15&passportExpiry=2027-07-01", nil)
req.Header.Set("x-api-key", "your_api_key_here")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.
Authentication
Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.
A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.
Parameters
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.
| Parameter | Type | Description |
|---|---|---|
destinationRequired | string | The destination country or territory: a two-letter ISO code such as TH, or an English name such as Thailand length 0–60 |
arrivalDateOptionalPremium | string | Trip arrival date (YYYY-MM-DD), for passportCheck date |
departureDateOptionalPremium | string | Trip departure date (YYYY-MM-DD), for passportCheck date |
passportExpiryOptionalPremium | string | The traveler's passport expiry date (YYYY-MM-DD); passportCheck says whether it meets the destination's rule date |
Response
Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.
{
"status": "ok",
"error": null,
"data": {
"destination": "TH",
"destinationName": "Thailand",
"passportValidity": {
"rule": "months_after_arrival",
"months": 6,
"days": null,
"summary": "Valid for at least 6 months after arrival",
"issuedWithinYears": null,
"guidance": "Your passport must be valid for at least 6 months after the day you arrive. It needs at least 1 blank page."
},
"blankPagesRequired": 1,
"passportCheck": null,
"yellowFever": {
"certificate": "from_risk_countries",
"certificateLabel": "Certificate required only when arriving from, or transiting, a country with yellow fever risk",
"guidance": "A yellow fever vaccination certificate is required only if you are arriving from, or have transited through, a country with a risk of yellow fever transmission. Travelers coming directly from elsewher…"
},
"advisories": {
"uk": {
"level": "avoid_all_but_essential_travel_to_parts",
"label": "Advises against all but essential travel to parts of the country",
"url": "https://www.gov.uk/foreign-travel-advice/thailand"
},
"us": {
"level": 1,
"label": "Exercise normal precautions",
"url": "https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destination.tha.html"
}
},
"rulesUpdatedAt": "2026-10-12T10:20:34+01:00",
"updatedAt": "2026-11-14T08:32:16.103Z"
}
}
Response fields
Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.
| Field | Type | Example | Description |
|---|---|---|---|
destination | string | "TH" | Destination, ISO 3166 two-letter code |
destinationName | string | "Thailand" | Destination name |
passportValidity | object | {...} | |
rule | string | "months_after_arrival" | months_after_arrival, months_after_departure, days_after_arrival, days_after_departure, months_after_visa_application, months_after_visa_expiry, duration_of_stay, valid_on_arrival, or null when no rule is published |
months | number | 6 | Minimum months of passport validity the rule requires, or null |
days | object | null | Minimum days of passport validity the rule requires, when the rule is stated in days, or null |
summary | string | "Valid for at least 6 months after arrival" | The rule as one sentence, e.g. Valid for at least 6 months after arrival |
issuedWithinYearsPremium | object | null | 10 when the passport must have been issued within the last 10 years (Schengen area rules), else null |
guidancePremium | string | "Your passport must be valid for at least 6 months after the day you arrive. It needs at least 1 blan…" | Plain-English guidance combining the validity rule, the issue-date limit and blank pages, e.g. Your passport must be valid for at least 6 months after the day you arrive. It needs at least 1 blank page. |
blankPagesRequiredPremium | number | 1 | Minimum blank passport pages required on entry, or null when none is stated |
passportCheck | object | null | |
yellowFever | object | {...} | |
certificate | string | "from_risk_countries" | all_travellers, from_risk_countries, not_listed or see_text |
certificateLabel | string | "Certificate required only when arriving from, or transiting, a country with yellow fever risk" | Readable form of yellowFever.certificate |
guidancePremium | string | "A yellow fever vaccination certificate is required only if you are arriving from, or have transited…" | Plain-English guidance on the yellow fever certificate requirement |
advisories | object | {...} | |
uk | object | {...} | |
levelPremium | string | "avoid_all_but_essential_travel_to_parts" | UK travel advice level: no_warnings, avoid_all_but_essential_travel_to_parts, avoid_all_travel_to_parts, avoid_all_but_essential_travel or avoid_all_travel |
labelPremium | string | "Advises against all but essential travel to parts of the country" | Readable form of the UK advice level |
urlPremium | string | "https://www.gov.uk/foreign-travel-advice/thailand" | UK travel advice page for the destination |
us | object | {...} | |
levelPremium | number | 1 | US State Department advisory level, 1 (exercise normal precautions) to 4 (do not travel); advisories.us is null when none is published |
labelPremium | string | "Exercise normal precautions" | Readable form of the US advisory level |
urlPremium | string | "https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destinati…" | US State Department advisory page for the destination |
rulesUpdatedAt | string | "2026-10-12T10:20:34+01:00" | When this destination's entry rules were last revised (ISO 8601) |
updatedAt | string | "2026-11-14T08:32:16.103Z" | When the dataset was last refreshed (ISO 8601) |
Errors
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted | A key restriction or IP allow-list; see key scoping. |
429 | Rate limited, or out of credits | Read error to tell them apart; see rate limits. |
Use cases
- Booking Checkout Checks
- Booking sites compare the traveler's passport expiry date with the destination's validity rule and warn before payment when it falls short.
- Corporate Travel Risk
- Travel management tools show the UK and US advisory levels for each trip and route level 3 and 4 destinations for approval.
- Travel Agency Itineraries
- Agencies print passport validity, blank page and yellow fever requirements on every itinerary instead of researching each country by hand.
- Trip Planning Apps
- Itinerary apps list what each stop needs, such as a yellow fever certificate after a stop in a risk country, so travelers prepare before they leave.
Other ways to use Travel Entry Requirements
Set up Travel Entry Requirements on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.
Related
More in Transportation: