这是鞋价通的库存和市场接口,不是另一个产品。算上架价和底线价以本站说明为准,见上架价怎么算。
鞋价通 API 提供对多个零售商库存数据的直接访问。每个请求返回符合条件的分页 SKU 列表,每个 SKU 附带各门店的最新库存状态。
访问由用户级 API 密钥控制。密钥继承所属账户的速率限制和分页上限。
每个请求必须在 X-API-Key 头中传入一个有效且激活的密钥。后端将该密钥解析为对应的用户账户,并应用该账户的套餐限制。
X-API-Key/v1/inventory/search可随时在账户页面撤销密钥,撤销立即生效。
返回符合筛选条件的分页 SKU 列表。每个 SKU 包含商品元数据及各门店的最新库存状态。分页以 SKU 为粒度:一页 = N 个 SKU,每个 SKU 附带所有门店行。
curl --request GET \
--url 'https://api.sneakers.itbanque.com/v1/inventory/search?brand=Nike&limit=5&offset=0' \
--header 'X-API-Key: sr_live_your_api_key'| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
style_color | string | 可选 | 模糊匹配商品配色编号。 |
brand | string | 可选 | 模糊匹配品牌名称。 |
retailer | string | 可选 | 模糊匹配零售商代码或名称。 |
size | string | 可选 | 精确匹配规范化尺码值。 |
retailer_sku | string | 可选 | 模糊匹配零售商 SKU。 |
supplier_sku | string | 可选 | 模糊匹配供应商 SKU。 |
q | string | 可选 | 跨配色编号、品牌、零售商、尺码、标题、SKU 的全文搜索。 |
limit | integer | 可选 | 分页大小,默认 9。始终不超过套餐 max_page_size。 |
offset | integer | 可选 | 行偏移量,默认 0。开启 provider 权限时无页数约束;否则不超过 (max_page_number - 1) × max_page_size。 |
{
"total_skus": 1284,
"count": 2,
"limit": 2,
"offset": 0,
"has_next_page": true,
"items": [
{
"sku": {
"id": 184221,
"retailer": "NIKE",
"size": "10.0",
"retailer_sku": "HF1234-100",
"supplier_sku": "HF1234",
"title": "Nike Air Max 1 White University Red",
"original_price": 140.0,
"price": 119.99
},
"product": {
"id": 55120,
"style_color": "HF1234-100",
"brand": "Nike",
"model_name": "Air Max 1",
"gender": "MEN"
},
"inventory": [
{ "location_code": "CA-ON", "stock_level": "HIGH", "as_of": "2026-04-30T14:52:18+00:00" },
{ "location_code": "US-NY", "stock_level": "LOW", "as_of": "2026-04-30T14:52:18+00:00" }
]
}
]
}total_skuscountlimitoffsethas_next_pageitemsidretailersizeretailer_skusupplier_skutitleoriginal_pricepriceidstyle_colorbrandmodel_namegenderlocation_codestock_levelas_of返回指定零售商下某 SKU 的库存历史,按时间倒序。每条记录包含库存状态、门店代码、快照时间和当时价格。
curl --request GET \
--url 'https://api.sneakers.itbanque.com/v1/reporting/retailers/DICKS/skus/11943996/history?hours=4320' \
--header 'X-API-Key: sr_live_your_api_key'| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
retailer | string | 必填 | 零售商代码,如 DICKS、NIKE、JD_SPORTS。 |
retailer_sku | string | 必填 | 零售商 SKU 编号。 |
| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
hours | integer | 可选 | 时间窗口(小时),默认 168(7 天),最大 8760(365 天)。 |
{
"retailer": "DICKS",
"cutoff_ts": "2026-04-01T00:00:00+00:00",
"sku": {
"retailer_sku": "11943996",
"size": "10.0",
"style_color": "HF1234-100",
"model_name": "Air Max 1",
"brand": "Nike"
},
"history": [
{ "stock_level": "HIGH", "location": "US-EAST", "record_created_at": "2026-04-28T09:14:00+00:00", "price": 119.99 },
{ "stock_level": "LOW", "location": "US-EAST", "record_created_at": "2026-04-21T07:30:00+00:00", "price": 119.99 }
],
"count": 2,
"limit": 5,
"has_more": false
}retailercutoff_tsskuhistorycountlimithas_morestock_levellocationrecord_created_atprice通过 StockX style_id 查询该商品所有变体的最新市场数据。优先读取平台共享缓存(默认 TTL 为 1 小时),缓存未命中时向 StockX 发起实时请求并回填缓存。返回统一后的变体数组。具体缓存时效以账户套餐为准,如需更短的刷新周期,请联系升级套餐。
curl --request GET \
--url 'https://api.sneakers.itbanque.com/v2/stockx/market/search?style_id=555088-711' \
--header 'X-API-Key: sr_live_your_api_key'| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
style_id | string | 必填 | StockX 商品 style ID,如 555088-711。必须与 StockX 目录中第一个搜索结果精确匹配。 |
size | string | 可选 | 按尺码过滤,如 "9" 或 "10.5"。必须为数字。 |
force | boolean | 可选 | 绕过缓存,直接从 StockX 获取最新数据。默认 false。 |
返回统一格式对象,包含 platform、style_id 和 variants 数组。每个 variant 对应一个尺码。
{
"platform": "stockx",
"style_id": "555088-711",
"fetched_at": "2026-05-07T12:34:56.789000+00:00",
"variants": [
{ "size": "9", "lowestAsk": 222.00, "highestBid": 198.00, "lastSale": null, "currency": "USD" },
{ "size": "10", "lowestAsk": 235.00, "highestBid": null, "lastSale": null, "currency": "USD" }
]
}platformstyle_idfetched_atvariantssizelowestAskhighestBidlastSalecurrency通过 style ID 和尺码在 StockX 创建单条挂单。
curl --request POST \
--url 'https://api.sneakers.itbanque.com/v2/stockx/simple-listing' \
--header 'X-API-Key: sr_live_your_api_key' \
--header 'Content-Type: application/json' \
--data '{"styleId":"DD1391-100","size":"10","amount":"150"}'| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
styleId | string | 必填 | StockX style ID,如 DD1391-100。 |
size | string | 必填 | 尺码,如 "10" 或 "10.5"。 |
amount | string | 必填 | 挂单价格(美元),自动四舍五入为整数。 |
cost | number | 可选 | 采购成本,可选,用于利润追踪。 |
currencyCode | string | 可选 | 货币代码,默认使用账户设置中的市场货币。 |
active | boolean | 可选 | 是否立即激活挂单,默认 true。 |
expiresAt | string | 可选 | ISO 8601 过期时间,可选。 |
inventoryType | string | 可选 | 库存类型,可选,如 "standard"。 |
上架成功后返回 ok: true。
{ "ok": true }通过 style ID 查询 GOAT 上该商品所有尺码的最新市场数据。优先读取平台共享缓存(默认 TTL 为 1 小时),缓存未命中时向 GOAT 发起实时请求并回填缓存。返回格式与 StockX 市场接口相同。
curl --request GET \
--url 'https://api.sneakers.itbanque.com/v2/goat/market/search?style_id=U9060JBR' \
--header 'X-API-Key: sr_live_your_api_key'| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
style_id | string | 必填 | 款式编号,如 U9060JBR。用于在 GOAT 目录中搜索对应商品。 |
country_code | string | 可选 | 国家或地区代码,默认使用账户设置里的 country_code(通常为 US)。 |
结构和 StockX 市场数据一样。platform 固定为 "goat"。highestBid 固定为 null,GOAT 不提供买家出价。
{
"platform": "goat",
"style_id": "U9060JBR",
"fetched_at": "2026-05-07T12:34:56.789000+00:00",
"variants": [
{ "size": "9", "lowestAsk": 197.00, "highestBid": null, "lastSale": 198.00, "currency": "USD" },
{ "size": "9.5", "lowestAsk": 294.00, "highestBid": null, "lastSale": null, "currency": "USD" }
]
}platformstyle_idfetched_atvariantssizelowestAskhighestBidlastSalecurrency{ "detail": "Not authenticated" }{ "detail": "limit exceeds your plan cap" }401 是身份验证失败:检查密钥是否还有效,请求头名称是否正好是 X-API-Key。400 是参数错误:把 limit 或 offset 降到套餐允许的范围内。