跳到主要内容
API开发者套餐数据
All systems normalv1

套餐数据

无需密钥的 BeeSim 旅行 eSIM 公开目录。价格始终为美元(结账金额)。网站上的展示货币仅供访客查看。

No API keyOpen endpoints, CORS enabled
Prices in USDSame amount as at checkout
5-minute cacheETag per catalogue version

List plans

GET/feed/plans

Returns every plan in the catalogue: countries, regions and global. Use coverage=country for per-country comparison tables.

Query parameters
coverageenumoptional

Default all; country returns only single-country plans.

allcountry
Responses
200Catalogue with plans array
304Not modified, ETag still valid
400Unknown coverage value
429Too many requests

Retrieve a plan

GET/feed/plans/:id

Returns one plan by its stable id. Same shape as an item of the plans array.

路径参数
idstring必填

LOCATION:slug, for example TR:TR_5_30 (case-insensitive location).

Responses
200Plan object
400Malformed id
404No plan with this id

Static feeds

同一目录的文件版本,适合表格、比价网站和爬虫。

JSONbeesim.space/data/plans.json全部套餐(国家、地区、全球)
JSONbeesim.space/data/plans.json?coverage=country仅单国家套餐(按国表格)
CSVbeesim.space/data/plans.csv相同行的 CSVDownload

套餐对象

每个套餐包含稳定 id、名称、目的地 ISO/类型、流量与有效期、priceUsd、本地网络、套餐页 url(含 ?currency=USD),以及按日套餐的日限额字段。

字段TypeDescriptionExample
idstringStable id, LOCATION:slug"TR:TR_5_30"
namestringDisplay name"Turkey 5GB 30Days"
destinationKindenumcountry, region or global"country"
destinationCodestringISO 3166 code or region code"TR"
dataCapnumberData allowance5
dataUnitstringUnit of dataCap"GB"
dataCapPerstring?day on per-day plans, otherwise nullnull
validityDaysintegerDays the plan stays active30
priceUsdnumberPrice charged at checkout, USD4.49
priceUsdCentsintegerSame price in cents449
pricesobjectPrice by currency code{"USD":4.49}
coveragesobject[]Countries with their local networks[{"code":"TR",…}]
urlstringPlan page with ?currency=USD"https://…"

Caching

Responses send Cache-Control of about five minutes and an ETag that changes with the catalogue version. Send If-None-Match to get 304 when nothing changed.

Cache-Control: public, max-age=300
ETag: "1793982277534"
// 回传它,若无变化将得到 304
If-None-Match: "1793982277534"

错误

Feed 以 JSON 响应。常见状态码:

400Bad Requestunknown coverage value or a malformed plan id.
401Unauthorized无法根据主机解析租户。
404Not Found未知套餐 id,或本站未开启该模块。
429Too Many Requests请求过多;请稍后再试。

联盟链接

合作伙伴在 /zh-cn/partners 注册。在购买链接后追加 &ref=YOUR_CODE(或组合:&currency=USD&ref=YOUR_CODE)。咨询:[email protected]。

BeeSim 支持 iOS 和 Android

你的 eSIM 随身携带, 落地即用

一分钟购买套餐,一键安装,旅途中随时加购流量。所有 eSIM 集中管理。