Trip Checker
Check whether a passport needs a visa for a destination, and whether it stays valid long enough for the trip.
- Next.js
- TypeScript
Also uses Visa Requirements
Catch the six-month passport rule before your traveler reaches the airport.
Travel Entry Requirements returns what a destination asks of a visitor's passport and health documents: how long the passport must stay valid and from when, and whether a yellow fever certificate is required. Paid plans add a passport check against your trip dates, the blank pages it needs, the Schengen 10-year issue rule, the current UK and US travel advisory levels and plain-English guidance for each rule.
No key required to try it. Get a key to use it in your app.
{
"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 elsewhere do not need one."
},
"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"
}
}
Check whether a passport needs a visa for a destination, and whether it stays valid long enough for the trip.
Also uses Visa Requirements
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). FCDO does not advise on the United Kingdom itself, so its rules come from the US State Department's country page for US citizens, and it has no UK advisory level. US advisory levels come from the State Department. Data is checked daily. Confirm with the destination's official source before travel.
One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.
Same data, same APIVerve account, same credit balance — one key works on all of them.
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them. Anything not listed here is dropped rather than passed through.
| Parameter | Type | Example | Description |
|---|---|---|---|
destinationRequired | string | TH | The destination country or territory: a two-letter ISO code such as TH, or an English name such as Thailand length 0-60 |
| Parameter | Type | Example | Description |
|---|---|---|---|
arrivalDateOptionalPremium | string | 2027-03-01 | Trip arrival date (YYYY-MM-DD), for passportCheck date |
departureDateOptionalPremium | string | 2027-03-15 | Trip departure date (YYYY-MM-DD), for passportCheck date |
passportExpiryOptionalPremium | string | 2027-07-01 | The traveler's passport expiry date (YYYY-MM-DD); passportCheck says whether it meets the destination's rule date |
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"Send your key in the x-api-key header. That is the only auth step — no token exchange, and no per-endpoint scope to configure.
| Header | When | Value |
|---|---|---|
x-api-keyRequired | Every request | Your API key. Header names are case-insensitive, so X-API-Key is the same header. |
AuthorizationAlternate | Instead of the above | Bearer <key> — for clients that only expose bearer auth. Resolves to the same account and the same billing. |
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.
Every APIVerve endpoint returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape.
{
"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 elsewhere do not need one."
},
"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"
}
}
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 blank page." | 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 through, a country with a risk of yello… | 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; advisories.uk is null for the United Kingdom, which FCDO does not advise on |
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/destination.tha.html" | 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) |
Every response carries your balance, so your own code always knows where it stands without polling anything. All four are exposed to browsers through CORS.
| Header | What it carries |
|---|---|
x-api-remaining-credits | Credits left in the current cycle |
x-api-credits-used | Credits spent in the current cycle |
x-api-max-credits | The allowance for the cycle |
x-api-version | Version of the endpoint that answered |
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter that has to change. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted here | A key restriction or an IP allow-list — never a bad key. |
429 | Rate limited, or out of credits | Read error to tell them apart, then back off or top up. |
Credits are shared across every APIVerve API — one balance, one key, one bill. Failed requests never count against it, so a rejected input costs nothing.
| Plan | Per month | Credits | Travel Entry Requirements calls | Per 1,000 calls |
|---|---|---|---|---|
| Free | Free | 200 | 10 | Free |
| Starter | $29.99 | 200,000 | 10,000 | $3.00 |
| Pro | $99.99 | 1,000,000 | 50,000 | $2.00 |
| Mega | $299.99 | 4,000,000 | 200,000 | $1.50 |
Calls are what the credits buy at this API's rate — spend them here, on any of the other APIs, or across both. Nothing is reserved per endpoint.
No SDK to install — this is a plain HTTPS call to /v1/entryrequirements with your key in the x-api-key header. Swap in a real key and it runs as-is.
curl "https://api.apiverve.com/v1/entryrequirements" \
-H "x-api-key: YOUR_API_KEY"No SDK to install — this is a plain HTTPS call to /v1/entryrequirements with your key in the x-api-key header. Swap in a real key and it runs as-is.
const res = await fetch("https://api.apiverve.com/v1/entryrequirements", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);No SDK to install — this is a plain HTTPS call to /v1/entryrequirements with your key in the x-api-key header. Swap in a real key and it runs as-is.
import requests
res = requests.get(
"https://api.apiverve.com/v1/entryrequirements",
headers={"x-api-key": "YOUR_API_KEY"},
)
print(res.json()["data"])No SDK to install — this is a plain HTTPS call to /v1/entryrequirements with your key in the x-api-key header. Swap in a real key and it runs as-is.
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var json = await client.GetStringAsync("https://api.apiverve.com/v1/entryrequirements");
Console.WriteLine(json);No SDK to install — this is a plain HTTPS call to /v1/entryrequirements with your key in the x-api-key header. Swap in a real key and it runs as-is.
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/entryrequirements", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))No SDK to install — this is a plain HTTPS call to /v1/entryrequirements with your key in the x-api-key header. Swap in a real key and it runs as-is.
$ch = curl_init("https://api.apiverve.com/v1/entryrequirements");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-api-key: YOUR_API_KEY"]);
$response = curl_exec($ch);
echo $response;No SDK to install — this is a plain HTTPS call to /v1/entryrequirements with your key in the x-api-key header. Swap in a real key and it runs as-is.
require "net/http"
uri = URI("https://api.apiverve.com/v1/entryrequirements")
req = Net::HTTP::Get.new(uri)
req["x-api-key"] = "YOUR_API_KEY"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |h| h.request(req) }
puts res.bodyDrop an interactive Travel Entry Requirements form onto any page. The widget calls the API for you, so no key ever appears in your markup and there is nothing to deploy.
Every change to this endpoint, newest first. Breaking changes ship as a new version and the previous one keeps serving — response fields are added, never removed or retyped in place, so an integration written against v1 keeps working.
Entries are picked up from dated catalog snapshots, so the first one appears after the next snapshot that moves something. A period where nothing changed produces no entry — silence is a valid changelog for the Travel Entry Requirements API.