- C5GAME开放平台接入指南
- 账户相关
- 出售相关
- 订单
- 交易报价
- 商品
- 求购
- 回调通知说明
- 库存
根据marketHashName查询统计信息
POST
/merchant/market/v2/item/stat/hash/name
请求参数
Authorization
在 query 添加参数
app-key
示例:
app-key: ********************
Query 参数
app-key
string
可选
默认值:
{{app-key}}
Header 参数
app-key
string
可选
默认值:
d6717ac8122b4e2dae6c6f25e95ede2f
Body 参数application/json
appId
integer
游戏id
marketHashNames
array[string]
必需
示例
{
"appId": 730,
"marketHashNames": [
"USP-S | Whiteout (Minimal Wear)",
"★ StatTrak™ Falchion Knife | Blue Steel (Battle-Scarred)"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://openapi.c5game.com//merchant/market/v2/item/stat/hash/name?app-key' \
--header 'app-key: d6717ac8122b4e2dae6c6f25e95ede2f' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": 730,
"marketHashNames": [
"USP-S | Whiteout (Minimal Wear)",
"★ StatTrak™ Falchion Knife | Blue Steel (Battle-Scarred)"
]
}'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
data
object
业务数据
hashName
object
hashName
errorCode
integer
错误码
errorMsg
null
错误信息
errorData
null
具体错误数据信息
errorCodeStr
null
错误说明
示例
{
"success": true,
"data": {
"USP-S | Whiteout (Minimal Wear)": {
"marketHashName": "USP-S | Whiteout (Minimal Wear)",
"itemId": "914642603357945856",
"sellPrice": 365.5,
"sellCount": 171,
"temporaryRental": 0.28,
"permanentRental": 0.3
},
"★ StatTrak™ Falchion Knife | Blue Steel (Battle-Scarred)": {
"marketHashName": "★ StatTrak™ Falchion Knife | Blue Steel (Battle-Scarred)",
"itemId": "27115",
"sellPrice": 0.0,
"sellCount": 0,
"temporaryRental": null,
"permanentRental": null
}
},
"errorCode": 0,
"errorMsg": null,
"errorData": null,
"errorCodeStr": null
}