商品目录与库存
分页返回 30M 直播独享的全部可售商品,含价格、库存与可售状态。商品按「国家 / 城市 / IP 类型」唯一确定,用 id 下单。
接口信息
GET /api/iplt/client/residential/live/products
认证方式:API Key(x-merchant-code + x-merchant-token)
请求头
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| x-merchant-token | 是 | String | 商户令牌(API Key 的 token 部分) |
| x-merchant-code | 是 | String | 商户代码(API Key 的 code 部分) |
| Content-Type | 否 | String | 固定 application/json(POST/PUT 必填) |
请求参数(Query)
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| page | 否 | Integer | 页码,默认 1 |
| pageSize | 否 | Integer | 每页条数,默认 20 |
| countryCode | 否 | String | 按国家三字码筛选,如 USA |
| poolKey | 否 | String | 按池代号筛选,如 usa_native |
| lang | 否 | String | 返回文案语言:zh / en |
响应示例
{
"msg": "操作成功",
"code": 200,
"data": {
"total": 64,
"page": 1,
"pageSize": 20,
"pricedTotal": 64,
"pricePendingTotal": 0,
"orderingOpen": true,
"stockFresh": true,
"stockAgeMinutes": 197.5,
"rows": [
{
"id": "L30M-USA-SEATTLE-N",
"name": "美国 · 西雅图 原生",
"name_en": "United States · Seattle · Native",
"region_path": "美国 / 华盛顿 / 西雅图",
"country_code": "USA",
"bandwidth": 30,
"bandwidthType": "EXCLUSIVE",
"protocol": "socks5",
"kind": "NATIVE",
"purchase_price": "5.50",
"price_pending": false,
"currency": "USD",
"billing_days": 30,
"price_unit": "USD / IP / 30d",
"renewal_enabled": true,
"renewal_price": "5.50",
"inventory": 18,
"stock_state": "IN_STOCK",
"purchasable": true
}
]
}
}
商品字段说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | String | 商品 ID,下单时作为 productId |
| name / name_en | String | 商品名称(中 / 英) |
| region_path | String | 地区路径:国家 / 州 / 城市 |
| country_code | String | 国家三字码,如 USA |
| bandwidth / bandwidthType | Integer / String | 30 Mbps 独享 |
| protocol | String | 固定 socks5 |
| kind | String | NATIVE 原生 / 广播 |
| purchase_price | String | 单价(字符串,避免浮点误差) |
| price_pending | Boolean | 价格待确认,为 true 时不可下单 |
| billing_days / price_unit | Integer / String | 计费周期与单位说明 |
| renewal_enabled / renewal_price | Boolean / String | 是否可续费及续费单价 |
| inventory | Integer | 当前可售 IP 数 |
| stock_state | String | IN_STOCK / OUT_OF_STOCK |
| purchasable | Boolean | 是否可购买(价格、库存、开关的综合结果) |
说明是否可下单请只看
purchasable,不要自己用 inventory > 0 判断——价格待确认时库存可能仍有值。国家列表
GET /api/iplt/client/residential/live/countries
认证方式:API Key(x-merchant-code + x-merchant-token)
{
"msg": "操作成功", "code": 200,
"data": [
{ "code": "USA", "name": "美国", "name_en": "United States" },
{ "code": "JPN", "name": "日本", "name_en": "Japan" }
]
}