Travel eSIM plans for a country or region
Every travel eSIM data plan listed for a country or region across providers: plan name, provider (with promo code), data in GB or unlimited, daily cap, validity in days, price in USD and the provider's currencies, promo price, price per GB, 5G, tethering, top-up, eKYC, phone number, subscription, pay-as-you-go, new-user-only, throttling and networks. Filter by minimum data, minimum and maximum days, maximum price, maximum price per GB, provider, network, 5G or unlimited, and by tethering, top-up, eKYC, phone number, low latency, subscription and new-user-only (the answer echoes the newer filters as applied_filters), and sort by price, price per GB, data or validity. Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
country | string | Country name, slug or 2-letter code (see /esimdb/v1/destinations). Give this or region. Example: japan |
region | string | Region slug instead of a country: europe, asia, global, north-america, south-america, africa, middle-east, oceania, caribbean... |
min_data_gb | number | Only plans with at least this much data (GB); unlimited plans always match. |
min_days | integer | Only plans valid for at least this many days. |
max_price | number | Only plans up to this price in USD. |
provider | string | Only this provider (name or slug, e.g. airalo, holafly, ubigi). |
has_5g | boolean | true: only 5G plans. |
unlimited | boolean | true: only unlimited-data plans. |
max_price_per_gb | number | Only plans up to this price per GB in USD (unlimited plans have no price per GB and are left out). |
max_days | integer | Only plans valid for at most this many days. |
network | string | Only plans on one of these networks: slugs as in plans[].networks (e.g. softbank-jp) or the operator part (softbank), comma separated. |
tethering | boolean | true: plans that allow hotspot use; false: plans that state they do not. Plans that do not say are left out. |
can_top_up | boolean | true: plans that can be topped up; false: plans that state they cannot. |
ekyc | boolean | true: plans that need identity verification; false: plans that state they do not. |
telephony | boolean | true: plans with a phone number (calls / SMS); false: data-only plans that say so. |
low_latency | boolean | true: only low-latency plans; false: the others. |
subscription | boolean | true: only subscription plans; false: only one-off plans. |
new_user_only | boolean | false: leave out offers limited to new customers; true: only those. |
sort | price | price_per_gb | data | validity | Order. Example: price |
per_page | integer | Plans per page, 1-100. Example: 50 |
page | integer | Page number, starting at 1. Pass next_page back as page; it is null on the last page. Example: 1 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/esimdb/v1/plans?country=japan" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/esimdb/v1/plans",
params={"country": "japan"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/esimdb/v1/plans");
url.searchParams.set("country", "japan");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).