根据商品id批量查询出售中的商品
POST
https://openapi.cs2dt.com/v1/product/v2/list/ids
/v1/product/v2/list/ids
如果未获取到结果,可以认为商品已经下架。
每次请求最多传入100个商品id。
请求参数
Query 参数
app-key
string
可选
默认值:
{{app-key}}
Body 参数application/json
在售商品状态查询列表对象
productIds
array
必需
示例
{
"productIds": [
1046108517917470700,
1258978575405224000
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://openapi.cs2dt.com/v1/product/v2/list/ids?app-key=' \
--header 'Content-Type: application/json' \
--data-raw '{
"productIds": [
1046108517917470720,
1258978575405223937
]
}'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
data
array [object {11}]
必需
id
string
商品id
sellerInfo
null
卖家详情
appId
integer
游戏id
appName
null
游戏名称
itemId
string
饰品类目id
itemName
null
饰品名称
marketHashName
string
可选
price
string
价格
cnyPrice
string
人民币价格
delivery
integer
可选
assetInfo
object
饰品详情
errorCode
integer
必需
errorMsg
null
必需
errorData
null
必需
示例
{
"success": true,
"data": [
{
"id": "1265418852728930304",
"sellerInfo": null,
"systemTime": null,
"appId": 730,
"appName": null,
"itemId": "553468129",
"itemName": null,
"marketHashName": "M4A1-S | Nightmare (Factory New)",
"price": "55.62",
"cnyPrice": "353.33",
"delivery": 1,
"description": null,
"assetInfo": {
"classInfoId": "1265418852573741056",
"classId": "5917057534",
"instanceId": "480085569",
"assetId": "37548893727",
"styleId": "0",
"lastStyle": "",
"styleProgress": "",
"wear": "0.0699556320905685",
"paintIndex": 714,
"paintSeed": 483,
"levelName": "",
"levelColor": "",
"gradient": "0.0",
"fadeColor": "",
"inspectImageUrl": null,
"gems": [],
"stickers": [
{
"id": "6673",
"type": 0,
"stickerId": "6673",
"itemId": "1128414422777688064",
"name": "Team Liquid(闪耀)| 2023年巴黎锦标赛",
"enName": "Team Liquid (Glitter) | Paris 2023",
"image": "https://img.zbt.com/c/sticker/6673.png",
"slot": 3,
"wear": "0.0",
"price": null
},
{
"id": "6673",
"type": 0,
"stickerId": "6673",
"itemId": "1128414422777688064",
"name": "Team Liquid(闪耀)| 2023年巴黎锦标赛",
"enName": "Team Liquid (Glitter) | Paris 2023",
"image": "https://img.zbt.com/c/sticker/6673.png",
"slot": 4,
"wear": "0.0",
"price": null
},
{
"id": "6673",
"type": 0,
"stickerId": "6673",
"itemId": "1128414422777688064",
"name": "Team Liquid(闪耀)| 2023年巴黎锦标赛",
"enName": "Team Liquid (Glitter) | Paris 2023",
"image": "https://img.zbt.com/c/sticker/6673.png",
"slot": 4,
"wear": "0.0",
"price": null
},
{
"id": "6673",
"type": 0,
"stickerId": "6673",
"itemId": "1128414422777688064",
"name": "Team Liquid(闪耀)| 2023年巴黎锦标赛",
"enName": "Team Liquid (Glitter) | Paris 2023",
"image": "https://img.zbt.com/c/sticker/6673.png",
"slot": 4,
"wear": "0.0",
"price": null
},
{
"id": "6674",
"type": 0,
"stickerId": "6674",
"itemId": "1128428272094199808",
"name": "Team Liquid(全息)| 2023年巴黎锦标赛",
"enName": "Team Liquid (Holo) | Paris 2023",
"image": "https://img.zbt.com/c/sticker/6674.png",
"slot": 4,
"wear": "0.0",
"price": null
}
],
"styles": [],
"itemSets": [],
"ext": "",
"fraudwarning": ""
},
"itemInfo": {
"quality": "",
"qualityName": "",
"qualityColor": "",
"rarity": "rarity_legendary_weapon",
"rarityName": "保密",
"rarityColor": "#D32CE6",
"type": "csgo_type_rifle",
"typeName": "步枪",
"slot": "",
"slotName": "",
"hero": "",
"heroName": "",
"heroAvatar": "",
"exterior": "wearcategory0",
"exteriorName": "崭新出厂",
"exteriorColor": "#59F27F",
"weapon": "weapon_m4a1_silencer",
"weaponName": "M4A1 消音型",
"itemSet": "set_community_20",
"itemSetName": "地平线收藏品",
"stickerCapsule": "",
"stickerCapsuleName": "",
"patchCapsule": "",
"patchCapsuleName": "",
"customPlayer": "",
"customPlayerName": "",
"category": "",
"categoryName": "",
"item": "",
"itemName": null
},
"wearRank": null
}
],
"errorCode": 0,
"errorMsg": null,
"errorData": null
}
修改于 2025-02-12 12:20:39