跳到主要内容
GET/v1/attribute-prices/latestDEVELOPER+

属性分桶价格

受支持市场上按属性分桶的价格。磨损分桶目前来自 steamcommunity、marketcsgo、csfloat 和 dmarket;buff163 仍可请求,但自 2026-09-25 起没有发布任何分桶。每个分桶是一个磨损/渐变/图案/模板/变体区间,带各自的在售价、求购价与挂单数,以及稳定的 bucketId。各市场分桶宽度不同,见分桶构建方式。可按 marketHashName 或 canonicalItemId 限定范围,两者都省略则返回分页的全量快照。默认只含磨损分桶(其余用 attributes=float,fade,tag 开启);用 limit + cursor 分页。时间序列见属性价格历史;仅 buff163 见 buff163 分桶。价格为整数美分。

按*属性*而非按挂单分桶的价格。每个 bucket 是一个区间(磨损区间如 0 到 0.01、渐变百分比、图案/模板、或多普勒相位等变体),带各自的 askCents / bidCents 与挂单数。稳定的 bucketId 让你可以长期追踪同一区间。

覆盖按市场划分(当前为 steamcommunity、marketcsgo、csfloat、dmarket;buff163 自 2026-09-25 起没有发布分桶);dimensions 对象写明每个分桶的精确边界。这些市场用等宽 0.01 分桶,而 Buff 的历史数据用其自己的非等宽原生区间,所以请基于 dimensions.float.min / max 归一化,不要依赖标签。完整方案见属性与磨损分桶的构建方式。

响应默认只含磨损分桶。加上 attributes=float,fade,tag 才会返回渐变与图案/变体(tag)分桶,否则它们会被静默省略。目前没有市场发布 tag 分桶。用 limit(1 到 1000,默认 500)+ 不透明 cursor 分页,读 nextCursor 继续。历史数据见 /v1/attribute-prices/history。

参数

marketHashNamestring可选
查询参数。用于限定分桶的精确 market hash name。可选。与 canonicalItemId 同时省略则返回分页的全量快照(不会 400)。
canonicalItemIdstring可选
查询参数。用于限定分桶的规范饰品 id。可选。与 marketHashName 同时省略则返回分页的全量快照(不会 400)。
attributesstring可选
查询参数。要包含的属性维度 CSV:float | fade | tag。默认仅 float,因此除非显式请求,渐变与图案/变体(tag)分桶会被静默省略,例如 attributes=float,fade,tag。目前没有市场发布 tag 分桶。多普勒与伽马多普勒的各相位是独立饰品(<基础名> - Phase 2),按普通磨损分桶定价。
limitinteger可选
查询参数。返回分桶的最大数量,1 到 1000。默认 500。用 cursor / nextCursor 分页。
cursorstring可选
查询参数。来自上一响应 nextCursor 的不透明分页游标。
marketsstring可选
查询参数。用于限定响应的市场 id CSV;不受支持的市场会在 sourceGaps 中报告。

响应字段

AttributePricesResponse受支持市场上的按属性分桶价格。
bucketSchemaVersioninteger
分桶结构的 schema 版本。
marketsstring[]
本响应覆盖的市场。
currencystring
恒为 USD。
asOfstring (date-time)
快照时间。
每个 饰品 × 市场 一条。
nextCursorstringnullable
下一页的不透明游标(作为 cursor 传回);最后一页为 null。
sourceGapsstring[]
请求了但本响应无覆盖的市场。

嵌套与共享结构链接到 API 对象 参考页。

错误

400attributes、limit 或 cursor 的值无效。(范围参数是可选的:同时省略 marketHashName 与 canonicalItemId 会返回分页的全量快照,而不是 400。)
401缺少 Authorization 头、认证方案不支持,或密钥未知、未激活、已过期、已吊销。
403密钥有效,但订阅未激活/已过期,或套餐不含此接口。
429超出速率限制;见 Retry-After 与 X-RateLimit-* 响应头。配额按账号合并计算,所有密钥共享。
5xx上游快照不可用或服务端问题。请退避后重试。

使用此端点的指南(英文)

export SKINPRICER_API_KEY="sp_live_•••"

curl -G "https://pricing.skinpricer.com/v1/attribute-prices/latest" \
  --data-urlencode "marketHashName=★ Karambit | Gamma Doppler (Factory New)" \
  -H "Authorization: ApiKey $SKINPRICER_API_KEY"
// npm i @skinpricer/sdk
import { SkinpricerClient } from "@skinpricer/sdk";

const client = new SkinpricerClient({
  apiKey: process.env.SKINPRICER_API_KEY!,
  authScheme: "ApiKey",
});

const { items } = await client.attributePrices.latest({ marketHashName: "★ Karambit | Gamma Doppler (Factory New)" });
for (const it of items) console.log(it.market, it.buckets.length, "buckets");
import os
import requests

res = requests.get(
    "https://pricing.skinpricer.com/v1/attribute-prices/latest",
    params={"marketHashName": "★ Karambit | Gamma Doppler (Factory New)"},
    headers={"Authorization": f"ApiKey {os.environ['SKINPRICER_API_KEY']}"},
    timeout=10,
)
res.raise_for_status()
print(res.json())

需要认证的接口:请在你自己的客户端中携带 API 密钥调用(见代码示例)。

响应 200
{
  "bucketSchemaVersion": 1,
  "markets": ["marketcsgo"],
  "currency": "USD",
  "asOf": "2026-11-27T11:01:48.859Z",
  "items": [
    {
      "canonicalItemId": "cmlofczf90qj401vsd80dskd1",
      "marketHashName": "AK-47 | Redline (Field-Tested)",
      "market": "marketcsgo",
      "buckets": [
        {
          "bucketId": "marketcsgo:cmlofczf90qj401vsd80dskd1:float:0.15-0.16",
          "bucketKey": "float:0.15-0.16",
          "bucketType": "attribute",
          "attributeType": "float",
          "attributeTypes": ["float"],
          "dimensions": {
            "variant": null,
            "float": { "min": 0.15, "max": 0.16, "minInclusive": true, "maxInclusive": false },
            "fade": null,
            "pattern": null,
            "paintSeed": null
          },
          "sourceItemId": "cmlofczf90qj401vsd80dskd1",
          "sourceBucketId": "marketcsgo:cmlofczf90qj401vsd80dskd1:f0.15-0.16",
          "askCents": 4515,
          "avgAskCents": 10039,
          "medianAskCents": 7003,
          "bidCents": null,
          "askListingCount": 18,
          "bidOrderCount": null,
          "sourceUpdatedAt": "2026-11-26T18:15:02.000Z",
          "collectedAt": "2026-11-27T10:51:28.984Z"
        },
        {
          "bucketId": "marketcsgo:cmlofczf90qj401vsd80dskd1:float:0.16-0.17",
          "bucketKey": "float:0.16-0.17",
          "bucketType": "attribute",
          "attributeType": "float",
          "attributeTypes": ["float"],
          "dimensions": {
            "variant": null,
            "float": { "min": 0.16, "max": 0.17, "minInclusive": true, "maxInclusive": false },
            "fade": null,
            "pattern": null,
            "paintSeed": null
          },
          "sourceItemId": "cmlofczf90qj401vsd80dskd1",
          "sourceBucketId": "marketcsgo:cmlofczf90qj401vsd80dskd1:f0.16-0.17",
          "askCents": 5083,
          "avgAskCents": 10737,
          "medianAskCents": 6280,
          "bidCents": null,
          "askListingCount": 25,
          "bidOrderCount": null,
          "sourceUpdatedAt": "2026-11-26T18:50:02.000Z",
          "collectedAt": "2026-11-27T10:26:22.296Z"
        }
      ]
    }
  ],
  "nextCursor": null,
  "sourceGaps": []
}
响应头
X-RateLimit-Limit: <每分钟配额,由套餐决定>
X-RateLimit-Remaining: <本分钟剩余次数>
X-RateLimit-Reset: <距重置的秒数>
X-Request-ID: req_xxxxxxxxxxxxxxxx

使用与许可

API 及其数据的使用受我们的服务条款(英文)约束:不得转售或再分发数据,不得用于构建竞争性服务, 不得超出套餐的速率限制;在条款允许展示数据的场景下须注明数据来源为 SkinPricer。滥用行为可能被限流或封禁。