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

Market Search

GET
https://openapi.cs2dt.com/v1/product/v2/search
Used to query all accessories on sale in the market

请求参数

Query 参数
appId
integer 
Game ID
必需
orderBy
integer 
可选
Sorting type: 0-updateTime desc 1-price asc 2-price desc
minPrice
string 
minPrice
可选
maxPrice
string 
maxPrice
可选
hero
string 
hero
可选
quality
string 
quality
可选
type
string 
type
可选
rarity
string 
rarity
可选
slot
string 
slot
可选
exterior
string 
exterior
可选
category
string 
category
可选
weapon
string 
weapon
可选
itemSet
string 
itemSet
可选
keyword
string 
keyword
可选
itemIds
array[string]
itemIds
可选
language
string 
language
可选
page
integer 
page
可选
limit
integer 
limit
可选
onlyWithAutoDeliverPrice
integer 
可选
Whether to filter out products that do not have automatic delivery 0-No 1-Yes Default No
app-key
string 
可选
默认值:
{{app-key}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://openapi.cs2dt.com/v1/product/v2/search?appId&orderBy&minPrice&maxPrice&hero&quality&type&rarity&slot&exterior&category&weapon&itemSet&keyword&itemIds&language&page&limit&onlyWithAutoDeliverPrice&app-key='

返回响应

🟢200成功
application/json
Body
success
boolean  | null 
可选
Is request successful
data
object (PageList«OpenProductSearchDTO») 
可选
Business data
total
integer  | null 
数据总条数
可选
pages
integer  | null 
总页数
可选
page
integer  | null 
当前页码
可选
limit
integer  | null 
每页显示数
可选
list
array[object (OpenProductSearchDTO) {17}]  | null 
数据列表
可选
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": {
    "total": 0,
    "pages": 0,
    "page": 0,
    "limit": 0,
    "list": [
      {
        "appId": 0,
        "itemId": "",
        "priceInfo": {
          "userId": 0,
          "price": 0.0,
          "quantity": 0,
          "autoDeliverPrice": 0.0,
          "autoDeliverQuantity": 0,
          "manualDeliverPrice": 0.0,
          "autoManualQuantity": 0
        },
        "itemName": "",
        "marketHashName": "",
        "shortName": "",
        "imageUrl": "",
        "type": "",
        "typeName": "",
        "quality": "",
        "qualityName": "",
        "qualityColor": "",
        "rarity": "",
        "rarityName": "",
        "rarityColor": "",
        "exterior": "",
        "exteriorName": ""
      }
    ]
  },
  "errorCode": 0,
  "errorMsg": "",
  "errorData": {}
}
修改于 2025-01-16 03:15:34
上一页
get full Items
下一页
item price query
Built with