eSIMAdvice Countries API

The Countries API from eSIMAdvice — 2 operation(s) for countries.

GitHub OpenAPI

Operations 2

GET /api/countries Directory of destination countries with live plan counts #
GET /api/countries/{slug}/plans Plans available for a destination country #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/esimadvice-com:esimadvice-com-countries-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

esimadvice-com-countries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Esimadvice Com Countries API
  version: 1.2.0
  contact:
    name: eSIMAdvice Editorial Team
    url: https://esimadvice.com/contact
    email: contact@esimadvice.com
  license:
    name: CC BY 4.0 (data)
    url: https://creativecommons.org/licenses/by/4.0/
  description: 'Operations tagged Countries across 2 of this provider''s published API definitions: esimadvice-com-openapi.json, esimadvice-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://esimadvice.com
tags:
- name: Countries
paths:
  /api/countries:
    get:
      operationId: listCountries
      summary: Directory of destination countries with live plan counts
      description: Every published country that has at least one active plan, with its plan count and cheapest "from" price in the requested currency. Powers browse/directory UIs.
      parameters:
      - name: currency
        in: query
        schema:
          type: string
        example: USD
        description: 'Response currency (USD, EUR, GBP, INR, AUD, CAD, JPY, CNY). Without it: the visitor''s currency cookie or country, else USD.'
      responses:
        '200':
          description: Country directory
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  currency:
                    type: string
                  total:
                    type: integer
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        slug:
                          type: string
                        name:
                          type: string
                        flagEmoji:
                          type: string
                          nullable: true
                        region:
                          type: string
                          nullable: true
                        planCount:
                          type: integer
                        fromUsd:
                          type: number
                          nullable: true
                        fromValue:
                          type: number
                          nullable: true
                          description: Cheapest price in the requested currency
                        formattedFrom:
                          type: string
                          nullable: true
                        href:
                          type: string
        '503':
          description: 'The database was briefly unavailable (after one retry). Never cached: wait the number of seconds in Retry-After (30) and repeat the request.'
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait before retrying
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                    - false
                  error:
                    type: string
      tags:
      - Countries
    servers:
    - url: https://esimadvice.com
  /api/countries/{slug}/plans:
    get:
      operationId: listCountryPlans
      summary: Plans available for a destination country
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
        example: japan
        description: 'Country slug, e.g. japan, france, united-states. Directory: https://esimadvice.com/countries'
      - name: limit
        in: query
        schema:
          type: integer
          maximum: 100
          default: 30
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - cheapest
          - price-per-gb
          - best-value
          - most-data
          - longest-validity
          default: cheapest
        description: 'cheapest and price-per-gb (alias best-value) sort by the price shown: coupon-applied unless promo=0'
      - name: cursor
        in: query
        schema:
          type: string
        description: Opaque pagination cursor from nextCursor (valid only with the same sort and promo)
      - name: min_gb
        in: query
        schema:
          type: number
        description: Minimum data allowance in GB (unlimited plans always match)
      - name: validity
        in: query
        schema:
          type: integer
        description: Minimum validity in days (plans that never expire always match)
      - name: max_validity
        in: query
        schema:
          type: integer
        description: Only plans that expire within this many days, e.g. 7 for a short trip (plans that never expire are excluded)
      - name: price
        in: query
        schema:
          type: number
        description: 'Maximum price in the response currency, compared with the price shown — coupon-applied unless promo=0. Alias: max_price'
      - name: promo
        in: query
        schema:
          type: string
          enum:
          - '1'
          - '0'
          default: '1'
        description: '1: each provider''s unconditional coupon is applied to prices, the price sorts and the price filter (some providers'' buy links carry the code; for others it must be entered at checkout). 0: list prices throughout. Aliases: apply_promo, apply_coupons, discounts'
      - name: provider
        in: query
        schema:
          type: string
        description: Filter to one provider slug (see /api/providers)
      - name: hotspot
        in: query
        schema:
          type: string
          enum:
          - '1'
        description: Only plans that allow hotspot/tethering
      - name: unlimited
        in: query
        schema:
          type: string
          enum:
          - '1'
        description: Only unlimited plans
      - name: fiveg
        in: query
        schema:
          type: string
          enum:
          - '1'
        description: 'Only plans on a 5G network. Alias: 5g'
      - name: coupon
        in: query
        schema:
          type: string
          enum:
          - '1'
        description: Only providers with an active unconditional coupon in their prices
      - name: plan_type
        in: query
        schema:
          type: string
          enum:
          - local
          - regional
          - global
          - cruise
        description: 'Coverage type. Alias: type'
      - name: hide_dominated
        in: query
        schema:
          type: string
          enum:
          - '1'
        description: 'Without plan_type only: leave out multi-country and global packs that the same provider beats with a plan for this country (as cheap or cheaper, as much data or more, as long or longer, hotspot and network as good, not speed-capped) — the site''s All tab. totalMatching then counts this list; totalAll still counts every plan'
      - name: lang
        in: query
        schema:
          type: string
          enum:
          - en
          - fr
          - it
          - zh
          - es
          - de
          default: en
        description: Language of planName, dataLabel and validityLabel. Any other value is English
      - name: currency
        in: query
        schema:
          type: string
        example: USD
        description: 'Response currency (USD, EUR, GBP, INR, AUD, CAD, JPY, CNY). Without it: the visitor''s currency cookie or country, else USD.'
      responses:
        '200':
          description: Plan list
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  country:
                    type: string
                    description: Country slug
                  currency:
                    type: string
                  lang:
                    type: string
                  promoApplied:
                    type: boolean
                    description: Whether coupon-applied prices are shown (the promo parameter)
                  items:
                    type: array
                    items:
                      type: object
                      description: A travel eSIM plan with display-ready labels and coupon-aware pricing.
                      properties:
                        id:
                          type: integer
                        providerName:
                          type: string
                        providerSlug:
                          type: string
                        planName:
                          type: string
                          description: 'Display title. Country plans: composed from the plan''s own columns (scope · data · validity · network · what else the merchant name says), in the `lang` language.'
                        merchantPlanName:
                          type: string
                          nullable: true
                          description: 'Country plans: the merchant''s own product name, as shown at checkout'
                        planType:
                          type: string
                          enum:
                          - local
                          - regional
                          - global
                          - cruise
                        dataGb:
                          type: number
                          nullable: true
                          description: Data allowance in GB; null when unlimited or not on record
                        dataLabel:
                          type: string
                          description: e.g. "500 MB", "1 GB", "Unlimited"
                        isUnlimited:
                          type: boolean
                        validityDays:
                          type: integer
                          description: 0 = the allowance does not expire
                        validityLabel:
                          type: string
                          description: e.g. "1 day", "30 days", "No expiry"
                        priceUsd:
                          type: number
                          description: 'Price in USD as shown: coupon-applied unless promo=0'
                        basePriceUsd:
                          type: number
                          description: 'Country plans: the list price in USD before any coupon'
                        priceValue:
                          type: number
                          description: Price as shown, in the response currency
                        formattedPrice:
                          type: string
                        formattedOriginalPrice:
                          type: string
                          nullable: true
                          description: List price when a coupon lowered it
                        pricePerGbLabel:
                          type: string
                          nullable: true
                          description: '"$0.50/GB", "Unlimited", or "N/A" when a capped plan''s allowance is not on record'
                        hasCoupon:
                          type: boolean
                        couponCode:
                          type: string
                          nullable: true
                        networkType:
                          type: string
                        hotspotAllowed:
                          type: boolean
                        hasFiveG:
                          type: boolean
                        comboHref:
                          type: string
                          description: Site-relative comparison page for this country+provider
                        buyHref:
                          type: string
                          description: Site-relative tracked checkout redirect (/go/{id})
                      additionalProperties: true
                  nextCursor:
                    type: string
                    nullable: true
                  totalMatching:
                    type: integer
                    description: Plans matching the filters
                  totalAll:
                    type: integer
                    description: All live plans for the country
        '404':
          description: Unknown country slug
        '503':
          description: 'The database was briefly unavailable (after one retry). Never cached: wait the number of seconds in Retry-After (30) and repeat the request.'
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait before retrying
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                    - false
                  error:
                    type: string
      tags:
      - Countries
    servers:
    - url: https://esimadvice.com
externalDocs:
  description: Developer docs, attribution terms and AI-agent guidance
  url: https://esimadvice.com/developers
x-refined-from:
- esimadvice-com-openapi.json
- esimadvice-com-openapi.yml