CS2DT饰品开放平台
🇺🇸 English
  • 🇨🇳简体中文
  • 🇺🇸 English
首页商户中心
首页商户中心
🇺🇸 English
  • 🇨🇳简体中文
  • 🇺🇸 English
  1. market prodcut related interface
  • Response codes
  • CS2DT Open Platform Access Guide
  • v1
    • user related interface
      • Steam account status query Copy
      • User balance query
      • Create Steam account status check
      • Steam account status query
    • market prodcut related interface
      • CS2 Style Data
      • get full Items
        GET
      • Market Search
        GET
      • item price query
        POST
      • all the filters query
        GET
      • item for sale list query
        GET
      • Get the sales status of the product
        POST
      • Batch query of products on sale by product ID
        POST
      • Get the sales details of a product
        GET
    • purchase related interface
      • buy item
      • quick buy item
    • order related interface
      • buyer order list v2
      • buyer order list
      • buyer order detail
      • buyer cancel order
    • callback related
      • Callback Notification Service Description
    • exchange rate
      • USD/CNY exchange rate
    • websocket
      • How to Use WebSocket
      • Get WSS Address
  1. market prodcut related interface

item price query

POST
https://openapi.cs2dt.com/v1/product/price/info
item price query

请求参数

Query 参数
app-key
string 
可选
默认值:
{{app-key}}
Body 参数application/json
appId
integer  | null 
必需
marketHashNameList
array[string] | null 
数组长度限制200
必需
示例
{
  "appId": 730,
  "marketHashNameList": ["Souvenir MAC-10 | Gold Brick (Field-Tested)"]
}

示例代码

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/price/info?app-key=' \
--header 'Content-Type: application/json' \
--data-raw '{
  "appId": 730,
  "marketHashNameList": ["Souvenir MAC-10 | Gold Brick (Field-Tested)"]
}'

返回响应

🟢200成功
application/json
Body
success
boolean  | null 
可选
Is request successful
data
array [object {11}]  | null 
可选
Business data
appId
integer  | null 
游戏id
可选
itemId
string  | null 
饰品id
可选
marketHashName
string  | null 
饰品唯一名称英文
可选
price
number  | null 
可选
如果是出售就是在售最低价,如果是求购就是求购最高价,加买家手续费后的价格
quantity
integer  | null 
可选
数量,如果是出售就是在售数量,如果是求购就是求购数量
autoDeliverPrice
number  | null 
自动发货在售最低价
可选
autoDeliverQuantity
integer  | null 
自动发货在售数量
可选
manualDeliverPrice
number  | null 
人工发货在售最低价
可选
autoManualQuantity
integer  | null 
人工发货在售数量
可选
avgPrice
number  | null 
可选
近10笔成交平均价格
medianPrice
number  | null 
可选
近10笔成交中位数价格
errorCode
integer  | null 
可选
Error code
errorMsg
string  | null 
可选
Error message
errorData
object (Object) 
可选
Error data,when errorCode is not equals to 0,maybe this property will have a value
示例
{
    "success": false,
    "data": [
        {
            "appId": 0,
            "itemId": "",
            "marketHashName": "",
            "price": 0,
            "quantity": 0,
            "autoDeliverPrice": 0,
            "autoDeliverQuantity": 0,
            "manualDeliverPrice": 0,
            "autoManualQuantity": 0,
            "avgPrice": 0,
            "medianPrice": 0
        }
    ],
    "errorCode": 0,
    "errorMsg": "",
    "errorData": {}
}
修改于 2025-01-03 06:26:38
上一页
Market Search
下一页
all the filters query
Built with