# eSIMPricing Plan Feed API

Version 1 · format `esimpricing-plans/1`

A plan feed is one HTTPS endpoint on your side that returns your whole current catalog as JSON. eSIMPricing reads it on a schedule and prices your brand from it. This document is the contract: what we request, what you return, the rules the data must follow, and what happens to it.

This is the only format we read. A plan is described with the same fields as the catalog feed many brands already publish for comparison sites, so a feed built to that schema is a valid feed here as it is. The fields we add are optional.

## Quick start

1. Publish a URL that returns a JSON list of your plans. Each plan needs five fields: `validity`, `dataCap`, `dataUnit`, `prices` and `coverages`.

   ```json
   [
     {
       "validity": 7,
       "dataCap": 1,
       "dataUnit": "GB",
       "prices": {
         "USD": 4.5
       },
       "coverages": ["JP"]
     }
   ]
   ```

2. Check it (section 7.1). The answer lists every error and warning with the rows it is on, and shows how each plan would appear:

   ```bash
   curl -s https://esimpricing.com/partners/api/v1/feed-check \
     -H 'Content-Type: application/json' \
     -d '{ "url": "https://example.com/esim/plans.json" }'
   ```

3. Sign in to the [partner area](https://esimpricing.com/partners), claim your brand and connect the URL under "Plan feed". From then on it is read every 6 hours. A check (step 2) is not a read: only reads of the connected feed count toward the price tables (section 6).

Then add what makes a listing accurate: your own plan `id`, the plan's `link`, the networks in `coverages`, `tethering`, `reducedSpeed` for plans that slow down, and `starts`.

## 1. The request

We send one request per read.

| Part | What we send |
|---|---|
| Method | `GET` |
| URL | Any `https://` URL you give us. Suggested: `https://<your-domain>/.well-known/esimpricing/plans.json` |
| Token | Optional. One request header: `Authorization`, `X-Api-Key`, or another name of the form `X-…-Key` or `X-…-Token`. A token in the URL is refused. |
| User agent | `esimpricing-bot/1.0 (+https://esimpricing.com/for-providers)` |
| Accept | `application/json` |
| Schedule | Every 6 hours, and when you press "Read now" in the partner area |
| Timeout | 25 seconds per request |
| Redirects | Followed up to 5 times, https only |

Requests come from Cloudflare's network and have no fixed IP address. Protect the endpoint with the token, not with an IP allow-list. A bot check that answers with a challenge page (JavaScript or CAPTCHA) fails the read: exempt the feed's path from it, or match the user agent above.

## 2. The response

- Status `200`, `Content-Type: application/json`, UTF-8.
- The complete catalog in one document of at most 8 MB, or in pages (section 2.1) of at most 8 MB each and 16 MB in all.
- Any other status, a timeout or invalid JSON fails the read. Your last accepted read stays in use.

### 2.1 Paging

A catalog too large for one document is split into pages. Each page is an object (section 3) that names the next one in `next`, an absolute URL on the same site. The last page has no `next`. At most 20 pages are followed.

### 2.2 Types

Values are JSON types. A number is a number, not text: `"validity": 7`, never `"validity": "7"`. Booleans are `true` and `false`. A field you have nothing to say about is left out or `null`; never send a guess. Names are case-sensitive.

## 3. The document

Either a list of plans (the quick-start example), or an object that carries the list in `plans` together with facts about the whole catalog:

```json
{
  "feed": "esimpricing-plans/1",
  "brand": "Example Mobile",
  "currency": "EUR",
  "updated": "2026-03-12T08:00:00Z",
  "pages": {
    "JP": "https://example-mobile.com/esim/japan"
  },
  "plans": [
    {
      "id": "jp-10-30",
      "planName": "Japan 10 GB",
      "link": "https://example-mobile.com/esim/japan/10gb-30d",
      "prices": {
        "EUR": 14,
        "USD": 15.5
      },
      "validity": 30,
      "dataCap": 10,
      "dataUnit": "GB",
      "coverages": [
        {
          "code": "JP",
          "networks": [
            {
              "name": "NTT Docomo",
              "types": ["4G", "5G"]
            },
            {
              "name": "SoftBank",
              "types": ["4G"]
            }
          ]
        }
      ],
      "tethering": true,
      "canTopUp": true,
      "starts": "connect",
      "activateWithin": 180
    },
    {
      "id": "asia-daily-7",
      "planName": "Asia 3 GB a day",
      "prices": {
        "EUR": 29
      },
      "validity": 7,
      "dataCap": 3,
      "dataUnit": "GB",
      "dataCapPer": "day",
      "reducedSpeed": 1000,
      "coverages": ["JP", "KR", "TW", "TH"],
      "internetBreakouts": [
        {
          "country": "SG"
        }
      ],
      "tethering": true
    },
    {
      "id": "uk-number-30",
      "planName": "UK 20 GB with a number",
      "prices": {
        "EUR": 25
      },
      "validity": 30,
      "dataCap": 20,
      "dataUnit": "GB",
      "coverages": ["GB"],
      "telephony": {
        "dialingCode": "+44",
        "voice": {
          "inbound": true,
          "outbound": true
        },
        "sms": {
          "inbound": true,
          "outbound": false
        }
      },
      "eKYC": true
    }
  ]
}
```

| Field | Use | Type | Meaning |
|---|---|---|---|
| `plans` | required | array | Every plan on sale (section 4). |
| `feed` | recommended | string | The format name, `esimpricing-plans/1`. |
| `currency` | recommended | string | ISO 4217 code of the currency you charge in. When a plan states several `prices`, this is the one we take. |
| `updated` | recommended | string | When this document was generated, ISO 8601 with time zone. |
| `brand` | optional | string | Your brand name. |
| `taxIncluded` | optional | boolean | Whether prices include VAT or sales tax. |
| `pages` | optional | object | Your own page for a destination, by ISO 3166-1 alpha-2 code. Clicks from that destination's tables land there once the page passes our check (section 6). |
| `next` | optional | string | The next page of a paged catalog (section 2.1). |

## 4. A plan

### 4.1 What is sold

| Field | Use | Type | Meaning |
|---|---|---|---|
| `validity` | required | integer | Days the plan can be used without paying again. `0` for no expiry. May be left out for a subscription. |
| `dataCap` | required | number | The amount at full speed, in `dataUnit`. `0` only when there is no such amount (section 4.5). |
| `dataUnit` | required | string | `MB`, `GB` or `TB`. 1 GB is 1000 MB. |
| `prices` | required | object | What a new customer pays at checkout, keyed by ISO 4217 code: `{ "USD": 9.5 }`. At least one. |
| `coverages` | required | array | Where the plan works, at least one entry (section 4.3). |
| `id` | recommended | string | Your own identifier for the plan, at most 120 characters. Unique in the feed and the same on every read. Price history is kept per id; without one we derive it from `link` or the plan's terms. |
| `planName` | recommended | string | The plan's name as your site shows it, at most 120 characters. |
| `link` | recommended | string | The plan's page on your own domain, https, without tracking parameters. A click on the plan in our tables opens this page; without it the click opens your page for the destination (`pages`) or your homepage. |
| `dataCapPer` | when it applies | string | `day`, `week` or `month`: the amount in `dataCap` renews each period. |
| `maxSpeed` | when it applies | integer | A speed limit on the whole plan, in kbps. |
| `reducedSpeed` | when it applies | integer | The speed once `dataCap` is used, in kbps. Leave it out when data stops. |

### 4.2 What a buyer should know

| Field | Use | Type | Meaning |
|---|---|---|---|
| `tethering` | recommended | boolean | Whether personal hotspot is allowed. |
| `starts` | recommended | string | When the validity clock starts: `connect` (first connection in the destination), `install` or `purchase`. |
| `activateWithin` | recommended | integer | Days after purchase by which the plan must be activated. |
| `internetBreakouts` | recommended | array | Where traffic leaves to the internet: `[{ "country": "SG" }]`. |
| `canTopUp` | optional | boolean | More data can be added to the same eSIM. |
| `eKYC` | optional | boolean | Identity verification is required. |
| `telephony` | when it applies | object | For plans with a phone number (section 4.4). |
| `newUserOnly` | when it applies | boolean | The price is for first orders only. |
| `subscription` | when it applies | boolean | The plan renews by itself. |
| `subscriptionPeriod` | when it applies | string | `month` or `week`. |
| `payAsYouGo` | when it applies | boolean | Billed by use. |
| `hasAds` | when it applies | boolean | The plan shows advertisements. |
| `promoEnabled` | optional | boolean | Promo codes are accepted. Read and not used: the tables show list prices. |
| `additionalInfo` | optional | string | What else a buyer should know, one sentence per line, at most 600 characters. |
| `priceInfo` | optional | string | A note on the price. |
| `capacityInfo` | optional | string | A note on data limits or throttling. |
| `validityInfo` | optional | string | A note on validity. |
| `activationInfo` | optional | string | When validity begins, in words. Prefer `starts`. |

### 4.3 `coverages`

Each entry is a country code such as `"JP"`, or an object when you can name the networks:

| Field | Use | Type | Meaning |
|---|---|---|---|
| `code` | required | string | ISO 3166-1 alpha-2 code, upper case. |
| `networks` | recommended | array | The operators the plan uses there. |
| `name` | required | string | In a network: the operator, by its own name. |
| `types` | recommended | array | In a network: the radio generations the plan reaches on it, such as `["4G", "5G"]`. |

A plan is marked 5G in a country when one of its networks there lists `"5G"`.

One operator per network, by its name alone and only under the countries it serves: `{ "name": "China Telecom", "types": ["4G", "5G"] }` under `CN`, not `"CHINA: China Telecom"`, `"China Telecom-4G"` or `"China Mobile, China Telecom"`. We match each name to the operators of that country, including their former names, and show it as the operator spells it; a name that matches none is left out and reported (section 6.2).

### 4.4 `telephony`

| Field | Use | Type | Meaning |
|---|---|---|---|
| `dialingCode` | required | string | The number's country calling code with the plus sign, such as `"+44"`. |
| `voice` | required | object | Calls. |
| `sms` | required | object | Texts. |
| `inbound` | required | boolean | In `voice` and `sms`: can be received. |
| `outbound` | required | boolean | In `voice` and `sms`: can be made or sent. |

### 4.5 Writing the data amount

| The plan | `dataCap` | `dataUnit` | `dataCapPer` | Speed fields |
|---|---|---|---|---|
| 10 GB in total, then data stops | `10` | `GB` | | |
| 500 MB in total | `500` | `MB` | | |
| 10 GB, then slowed to 512 kbps | `10` | `GB` | | `reducedSpeed: 512` |
| 2 GB a day, then slowed to 1 Mbps | `2` | `GB` | `day` | `reducedSpeed: 1000` |
| 1 GB a day, then data stops until the next day | `1` | `GB` | `day` | |
| Unlimited, limited to 5 Mbps throughout | `0` | `GB` | | `maxSpeed: 5000` |
| Unlimited at full speed, fair use only | `0` | `GB` | | |

## 5. Rules

1. **The whole catalog.** Every plan a visitor can buy on your site or in your app today, and nothing they can't. Top-ups sold only to existing customers stay out.
2. **One entry per plan.** A plan sold for several countries is one entry with several `coverages`, not one entry per country.
3. **The price a new customer pays.** List price with mandatory fees, before any coupon or first-order discount, in the currency you charge in. Other currencies in `prices` are welcome when you really charge them; do not convert for us. A visitor we send must not pay more than any other visitor.
4. **The full-speed amount is the data figure.** A plan that slows down after 3 GB a day is `dataCap: 3` with `dataCapPer: "day"` and `reducedSpeed`, not unlimited. `dataCap: 0` is for plans with no such amount: state `maxSpeed` if there is one, and the networks and `internetBreakouts` if there is not.
5. **Validity is the longest use without paying again.**
6. **Speeds are in kbps.** 1 Mbps is 1000.
7. **Ids are stable.** Renaming a plan or changing its price keeps the id. A new id is a new plan.
8. **Links stay on your own domain** and carry no tracking parameters. We add our own.
9. **Country codes are ISO 3166-1 alpha-2**, currencies ISO 4217, times ISO 8601.

## 6. What happens to a read

A read is accepted, refused or held back.

**Accepted.** No errors, and at least one plan the price tables list. It replaces the previous read.

**Refused.** Any error. Nothing changes and your last accepted read stays in use.

**Held back.** A read that drops more than 30% of the catalog, or moves more than 20% of the prices by more than 50%, waits until you confirm it in the partner area.

**Into the price tables.** Your plans are listed once 2 reads in a row are accepted and the other steps are done: your profile is claimed, 15 of its 21 profile facts are confirmed, and your affiliate program or a tracking link for us is on record. The Overview in the partner area and `GET /partners/api/v1/listing` show what is left. The plans appear with the next data update of the site.

After 21 days without an accepted read your plans leave the price tables. Your profile stays.

**Who is told.** Everyone on your brand in the partner area gets an email when a scheduled read is held back, and when 4 scheduled reads in a row fail. While the feed stays held back or failing, a reminder follows once a day, from a day after the trouble began, for up to 30 days; the first read that passes ends them, and pausing the feed stops them. A [webhook](https://esimpricing.com/partners/api-docs#11-webhooks) reports every read as it happens.

Your feed carries everything. The price tables list 1, 2, 3, 5, 10, 20 and 50 GB or unlimited for 1, 3, 5, 7, 10, 15 and 30 days, and daily allowances of any size and length, sold as a one-off purchase to anyone. Other plans stay in the feed and are counted on your profile.

Tables are sorted by price. A feed changes how current your prices are, not where they rank.

**Destination pages.** Each page in `pages` is opened before a click is sent there. It is used when it answers `200` at that address without redirecting to another page, and its title or first heading names the destination in English. Two destinations whose pages share one title and heading use neither. Up to 40 pages are read with each accepted read, and each again every 7 days. Until a page passes, clicks for its destination land on your homepage.

### 6.1 Errors

An error refuses the read. Each is reported with the rows it is on.

| Code | Meaning | Fix |
|---|---|---|
| `fetch` | The URL did not answer `200` in time, needs a token, carries a token in the URL, or answered with a bot-check page. | Check the URL and the token header; exempt the feed's path from bot checks. |
| `json` | The body is not valid JSON. | Return JSON, UTF-8. |
| `not-a-feed` | The URL returns a web page. | Give the URL of the JSON endpoint. |
| `not-an-api` | The body is a spreadsheet. | Return JSON. |
| `shape` | No list of plans was found. | Return a list of plans, or an object with `plans`. |
| `empty` | The catalog has no plans. | |
| `too-large` | The catalog is over the size limits of section 2. | Split it into pages. |
| `too-nested` | The document holds far more lists and objects than its plans need. | |
| `too-many-pages` | More than 20 pages. | Use larger pages. |
| `next-invalid` | `next` leaves the feed's site or repeats a page. | |
| `format-name` | `feed` names another format or version. | Set it to `esimpricing-plans/1`, or leave it out. |
| `field-type` | A value is not of the JSON type or form this document names. | The report names the field and the type. |
| `price-missing` | No usable entry in `prices`. | |
| `price-not-positive` | A price of 0 or less. | |
| `days-missing` | No `validity`. | |
| `days-invalid` | `validity` is negative or not a whole number. | |
| `data-missing` | No `dataCap`, or no `dataUnit` with it. | |
| `data-invalid` | A negative `dataCap`. | |
| `allowance-missing` | `dataCapPer` is set and `dataCap` is 0. | Give the amount per period. |
| `where-empty` | No `coverages`. | |
| `countries-unknown` | No country code of the plan is one we know. | Use ISO 3166-1 alpha-2 codes. |
| `id-duplicate` | Two plans share an `id`. | |
| `id-long` | An `id` over 120 characters. | |

### 6.2 Warnings and notes

A warning does not refuse the read. The plan or the field it names may be left out.

| Code | Meaning |
|---|---|
| `field-unknown` | A field this document does not name. It is not read; the report names the field to use when the name is a known one. |
| `country-unknown` | Some country codes of a plan are not ones we know. They are skipped; a retired code such as `AN` is named with the codes that replaced it. |
| `url-off-domain` | A `link` is not on your own domain. It is not used. |
| `url-not-https` | A `link` is not https. |
| `page-off-domain` | An entry of `pages` is not on your own domain. It is not used. |
| `page-failed` | A page in `pages` did not pass the destination-page check of section 6. The report names the destination and the reason. |
| `page-pending` | Pages in `pages` not read yet. They are read with the next accepted reads. |
| `speed-unit` | A speed under 16 kbps, which reads like Mbps. |
| `speed-after-not-lower` | `reducedSpeed` is not below `maxSpeed`. It is not read; a daily plan without it is listed as its allowance, not as unlimited. |
| `network-list` | A network entry holds several operators, or a name cut in two (an unclosed parenthesis). Give each operator its own entry. |
| `network-prefix` | A network name starts with a country. It is read without it; the country is the coverage's `code`. |
| `network-foreign` | A network name starts with another country. It is left out. |
| `network-technology` | A network name holds a radio generation, such as `"4G"` or `"Vivo-3G"`. Generations go in `types`; a name that is only one is left out. |
| `network-unknown` | A network name is none of the operators we list for that country. It is left out. |
| `unlimited-bare` | `dataCap: 0` with no speed, network or breakout stated. The table shows "fair use not stated". |
| `stale` | `updated` is more than 14 days old. |
| `id-derived` | A plan has no `id`; one was derived. |
| `not-listed` | Plans outside what the price tables list. They stay in your feed. |

## 7. Checking a feed

- `POST https://esimpricing.com/partners/api/v1/feed-check` (below) reads any feed URL, or checks a document you send, and lists every error and warning with the rows it is on, and how each plan would appear. Without a key it reads the first megabyte and two pages.
- Connecting the URL under "Plan feed" in the partner area reads the whole feed at once and shows the same report.
- The example of section 3 as a live document: `https://esimpricing.com/partners/feed-example.json`
- JSON Schema: `https://esimpricing.com/partners/feed-schema.json`
- OpenAPI 3.1 description of the endpoint: `https://esimpricing.com/partners/feed-api.json`
- This document as Markdown: `https://esimpricing.com/partners/feed-format.md`

### 7.1 Check from code

Run the check from a build or a deploy, before a feed goes out. Send JSON with one of two fields:

| Field | What we do |
|---|---|
| `url` | Read the feed at that https URL, following `next`. `headers` may carry one token header for it, such as `{ "Authorization": "Bearer …" }`. |
| `feed` | Check the document you send, as it is. Nothing is fetched. |

```bash
curl -s https://esimpricing.com/partners/api/v1/feed-check \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://example.com/esim/plans.json",
    "headers": { "Authorization": "Bearer …" }
  }'

# a document on disk: wrap it as { "feed": … } with jq
jq '{ feed: . }' plans.json | curl -s https://esimpricing.com/partners/api/v1/feed-check \
  -H 'Content-Type: application/json' \
  -d @-
```

The answer is `200` whenever the check ran. `ok` is `false` when the feed has an error. `report.groups` lists each error, warning and note with its code (section 6) and the rows it is on. `report.preview` shows how plans would appear.

```json
{
  "ok": false,
  "checked": "url",
  "limits": {
    "bytes": 1048576,
    "pages": 2
  },
  "fetched": {
    "status": 200,
    "final_url": "https://example.com/esim/plans.json",
    "content_type": "application/json",
    "bytes": 48211
  },
  "report": {
    "ok": false,
    "dialect": "esp",
    "checkedAt": "2026-03-12T15:36:40.428Z",
    "counts": {
      "rows": 120,
      "plans": 120,
      "usable": 118,
      "listed": 96,
      "errors": 2,
      "warnings": 1,
      "notes": 0,
      "destinations": 41
    },
    "groups": [
      {
        "code": "field-type",
        "level": "error",
        "n": 2,
        "message": "“prices” must be an object of currency code and number, such as { \"USD\": 9.5 }.",
        "rows": [17, 18]
      },
      {
        "code": "field-unknown",
        "level": "warning",
        "n": 1,
        "message": "“speed” is not a field of esimpricing-plans/1 and is not read. Use “maxSpeed”.",
        "rows": [42]
      }
    ],
    "summary": {
      "currencies": ["USD"],
      "price": {
        "min": 3.5,
        "max": 49
      },
      "sizes": [
        {
          "label": "1 GB",
          "n": 30
        },
        {
          "label": "10 GB",
          "n": 24
        }
      ],
      "lengths": [
        {
          "days": 7,
          "n": 40
        },
        {
          "days": 30,
          "n": 52
        }
      ],
      "unlimited": 12,
      "perDay": 0,
      "networksNamed": 88,
      "fiveG": 20,
      "hotspotStated": 96,
      "withUrl": 118,
      "pages": 41
    },
    "preview": [
      {
        "row": 1,
        "iso": "JP",
        "id": "jp-1gb-7d",
        "name": "Japan 1 GB",
        "data": "1 GB",
        "days": "7 days",
        "price": "4.50 USD",
        "places": "JP",
        "networks": "Docomo · SoftBank",
        "speed": "stops at the allowance",
        "listed": true
      }
    ]
  }
}
```

| Limit | Without a key | With a partner API key |
|---|---|---|
| Header | none | `Authorization: Bearer esp_…` |
| Checks an hour | 20 per address | 120 per brand |
| One check reads | 1 MB, 2 pages | 8 MB, 20 pages, as a connected feed |
| Links in the feed | checked as https | also checked against your own domains, as a connected feed |

Nothing is stored and nothing is connected. Other answers carry `{ "error": { "code": "…", "message": "…" } }`: `400` (not JSON, or not exactly one of `url` and `feed`), `401` (a key that does not work: send a good key or none), `413` (over the size of one check), `415` (not `application/json`) and `429` (the hourly limit, with `Retry-After`). Every answer carries `X-RateLimit-Limit` and `X-RateLimit-Remaining`. The full description is in the partner API's OpenAPI document, `https://esimpricing.com/partners/api-v1.json`.

## 8. Compatibility

A catalog feed that follows the plan schema comparison sites commonly ask for (`validity`, `dataCap`, `dataUnit`, `prices`, `coverages` and the optional fields of section 4) is valid here without change, as a bare list of plans. What this format adds:

| Addition | Why |
|---|---|
| `id` | Price history and plan pages survive renames and price changes. |
| `starts`, `activateWithin` | The validity clock and the activation deadline are shown per plan, and can be filtered on. |
| The object form with `feed`, `currency`, `updated`, `taxIncluded` | Facts about the whole catalog. |
| `pages` | Clicks land on your page for the destination, not your homepage. |
| `next` | Catalogs larger than one document. |

Differences in reading, all on the strict side: values must be of the JSON type named here, an unknown field is reported, and `link` must be on your own domain.

## 9. Versions

The format name carries the version. Optional fields may be added to version 1; a feed that is valid today stays valid. A change that would break existing feeds gets a new name (`esimpricing-plans/2`), and version 1 keeps being read for at least six months after that.

## 10. Questions

**We already publish a feed for another comparison site. Do we build a second one?** No. Give us the same URL. Add `id` when you can.

**Our API answers per destination, not for the whole catalog.** A feed is the whole catalog in one document, or in pages linked by `next`. An endpoint that needs a query per destination or per trip length cannot be connected; publish a catalog export beside it.

**Our prices depend on the trip length the customer picks.** List one plan per length you sell among 1, 3, 5, 7, 10, 15 and 30 days. Other lengths may be listed too; they stay in the feed and are counted on your profile.

**Do we need a token?** No. A public URL is fine: the catalog is what your site already shows.

**How fast do changes show?** The next scheduled read takes them in within 6 hours, or at once when you press "Read now". The price tables show them from the next data update of the site.

**Where do questions go?** alex@esimpricing.com
