# Bitrefill eSIM Search

> Bitrefill eSIM Search is a paid API for AI agents from api.bitrefill.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Search Bitrefill's catalog of eSIM plans by region, country name, or ISO country code

## Facts

- Endpoint: GET https://api.bitrefill.com/x402/esims/search
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitrefill-esim-search-16e8f4aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bE4Tn7lnAtZhyxZ3_MRsV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bitrefill-esim-search-16e8f4aa
```

Example prompt: Search Bitrefill's eSIM catalog for data plans available in Japan — use country code JP to filter the results.

## When to prefer this

Use this endpoint when you need to discover available eSIM plans on Bitrefill for a specific country or region before purchasing. Prefer this over general telecom APIs when the user wants a digital eSIM (not a physical SIM) and specifically wants to browse Bitrefill's inventory.

## Known failure modes

- No eSIM plans found for the given country or region (empty result set)
- Invalid ISO country code returns no results or an error
- Missing required query parameters result in a 400 bad request
- Payment not processed correctly via x402 protocol causes a 402 payment required error

## How this service works

Search prepaid eSIM data plans for 180+ countries and regions. Pay in USDC via x402, no account.

## Output

A list of eSIM plans matching the search query, including plan details such as available data packages, coverage areas, and regional options for the queried country or region.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query (region or country name)"
      },
      "country": {
       "type": "string",
       "description": "Optional ISO 3166-1 alpha-2 country code filter; omit for all countries (global results)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "products": [
   {
    "name": "Europe eSIM",
    "slug": "esim-europe",
    "region": "EU",
    "in_stock": true,
    "recipient_type": "none"
   }
  ],
  "next_step": {
   "url": "/x402/products/detail",
   "body": {
    "slug": "<product slug from results>"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitrefill-esim-search-16e8f4aa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bitrefill.com](https://www.zero.xyz/host/api.bitrefill.com/llms.txt)
