市场数据
GET /v1/sources — 按编号列出供应方
挂单 source 字段中的供应方编号:每个编号有多少挂单、如何发货以及 Steam 回滚时退还多少。
GET
/
sources
Suppliers by number
curl --request GET \
--url https://csboard.com/v1/sources \
--header 'Authorization: Bearer <token>'import requests
url = "https://csboard.com/v1/sources"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://csboard.com/v1/sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://csboard.com/v1/sources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://csboard.com/v1/sources"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://csboard.com/v1/sources")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://csboard.com/v1/sources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"sources": [
{
"source": 101,
"listings": 11400,
"delivery": [
"up_to_12h"
],
"refund_percent": null,
"off": false
},
{
"source": 103,
"listings": 41300,
"delivery": [
"instant"
],
"refund_percent": {
"min": 50,
"max": 50
},
"off": false
},
{
"source": 107,
"listings": 1450000,
"delivery": [
"instant",
"up_to_12h"
],
"refund_percent": {
"min": 0,
"max": 100
},
"off": true
}
],
"updated_at": "2026-11-22T10:20:00.000Z"
}
}{
"code": "missing_api_key",
"detail": "Provide your API key via `Authorization: Bearer csb_pub_…`. Generate one at https://csboard.com/profile?tab=api"
}{
"code": "rate_limit_exceeded",
"detail": "Read rate limit of 100 requests/min exceeded. The counter restarts in 23 s. For new listings use GET /v1/listings/stream instead of polling.",
"bucket": "read",
"limit_per_min": 100,
"retry_after_sec": 23
}列出构成货架的供应方。每个供应方是一个编号,与挂单
source 字段中的编号相同。没有名称:一个编号始终代表同一个供应方且永不复用,您通过把它的挂单与您已在别处采购的货源比对,来判断它对您的价值。
用它决定排除哪些供应方,然后通过 PUT /v1/account/sources_off 保存,或在请求中传入 sources_off。
需要身份验证。 以 Authorization: Bearer csb_pub_... 发送您的密钥。无需余额。
查询参数
响应
请求示例
curl "https://csboard.com/v1/sources" \
-H "Authorization: Bearer csb_pub_..."
响应示例
{
"data": {
"sources": [
{ "source": 101, "listings": 11400, "delivery": ["up_to_12h"], "refund_percent": null, "off": false },
{ "source": 103, "listings": 41300, "delivery": ["instant"], "refund_percent": { "min": 50, "max": 50 }, "off": false },
{ "source": 107, "listings": 1450000, "delivery": ["instant", "up_to_12h"], "refund_percent": { "min": 0, "max": 100 }, "off": true }
],
"updated_at": "2026-11-22T10:20:00.000Z"
}
}
错误码
| HTTP 状态 | 代码 | 含义 |
|---|---|---|
| 400 | unsupported_game | 您的密钥无法使用该 appId。 |
| 401 | missing_api_key, invalid_api_key | 密钥缺失或无效。 |
| 429 | rate_limit_exceeded | 超出密钥的每分钟限额。 |
授权
Send your key as a Bearer token on every request: Authorization: Bearer csb_pub_.... Generate keys in your CSBoard profile. Calls made with a key are metered only by that key's own limits — there is no per-IP limit on top — and every answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Bucket for the bucket the call spent. See Rate limits.
查询参数
Steam appId of the game. 730 = CS2 (the default), 570 = Dota 2, 252490 = Rust. Omit it and the endpoint answers for CS2 exactly as before. An appId this key may not use answers 400 unsupported_game, whose supported_app_ids lists the ones it may — see GET /games.
可用选项:
730, 570, 252490 ⌘I
Suppliers by number
curl --request GET \
--url https://csboard.com/v1/sources \
--header 'Authorization: Bearer <token>'import requests
url = "https://csboard.com/v1/sources"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://csboard.com/v1/sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://csboard.com/v1/sources",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://csboard.com/v1/sources"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://csboard.com/v1/sources")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://csboard.com/v1/sources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"sources": [
{
"source": 101,
"listings": 11400,
"delivery": [
"up_to_12h"
],
"refund_percent": null,
"off": false
},
{
"source": 103,
"listings": 41300,
"delivery": [
"instant"
],
"refund_percent": {
"min": 50,
"max": 50
},
"off": false
},
{
"source": 107,
"listings": 1450000,
"delivery": [
"instant",
"up_to_12h"
],
"refund_percent": {
"min": 0,
"max": 100
},
"off": true
}
],
"updated_at": "2026-11-22T10:20:00.000Z"
}
}{
"code": "missing_api_key",
"detail": "Provide your API key via `Authorization: Bearer csb_pub_…`. Generate one at https://csboard.com/profile?tab=api"
}{
"code": "rate_limit_exceeded",
"detail": "Read rate limit of 100 requests/min exceeded. The counter restarts in 23 s. For new listings use GET /v1/listings/stream instead of polling.",
"bucket": "read",
"limit_per_min": 100,
"retry_after_sec": 23
}