CS2DT饰品开放平台
🇨🇳简体中文
  • 🇨🇳简体中文
  • 🇺🇸 English
首页商户中心
首页商户中心
🇨🇳简体中文
  • 🇨🇳简体中文
  • 🇺🇸 English
  1. 市场商品相关接口
  • CS2DT开放平台接入指南
  • v1
    • 用户相关接口
      • 用户余额查询
      • 创建Steam账号状态检测
      • 查询Steam账号状态
    • 市场商品相关接口
      • CS2款式数据
      • 根据商品id批量查询出售中的商品
        POST
      • 获取全量在售文件
        POST
      • 市场搜索
        GET
      • 饰品价格查询
        POST
      • 获取市场所有的筛选条件
        GET
      • 获取某一个饰品的所有在售
        GET
      • 获取商品的在售状态
        POST
      • 获取某个商品的在售详情
        GET
    • 购买功能接口
      • 普通购买v2
      • 快速购买接口v2
    • 订单相关接口
      • 购买订单列表接口
      • 购买订单详情
      • 买家取消订单接口
    • 回调通知说明
      • 回调通知服务说明
    • 汇率转换
      • 获取usd-cny汇率
    • 市场推送
      • websocket服务说明
      • 获取wss地址
  1. 市场商品相关接口

根据商品id批量查询出售中的商品

POST
https://openapi.cs2dt.com/v1/product/v2/list/ids
获取多个商品的信息,只返回正在出售中的商品。
如果未获取到结果,可以认为商品已经下架。
每次请求最多传入100个商品id。

请求参数

Query 参数
app-key
string 
可选
默认值:
{{app-key}}
Body 参数application/json
在售商品状态查询列表对象
productIds
array
必需
示例
{
    "productIds": [
        1046108517917470720,
        1258978575405223937
    ]
}

示例代码

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 {13}] 
必需
id
string 
商品id
可选
sellerInfo
null 
卖家详情
可选
appId
integer 
游戏id
可选
appName
null 
游戏名称
可选
itemId
string 
饰品类目id
可选
itemName
null 
饰品名称
可选
marketHashName
string 
可选
market hash name
price
string 
价格
可选
cnyPrice
string 
人民币价格
可选
delivery
integer 
可选
发货方式 1:人工 2:自动
assetInfo
object 
饰品详情
可选
sevenAvgDeliverTime
number 
必需
7天平均发货时间,单位:秒
fifteenAvgDeliverTime
number 
必需
15天平均发货时间,单位:秒
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
}
上一页
CS2款式数据
下一页
获取全量在售文件
Built with