GET /v1/market-sales/search
Returns recent marketplace sales for up to 5
market_hash_name values, including nested stickers and keychains per sale.
At most 50 most recent sales are returned per market_hash_name
(so up to 250 rows when querying 5 names). Results are ordered by
sold_at descending.
Only sales from the last 72 hours are returned (24 hours for 2-day test keys).
Older sales are not available through this endpoint; a historical sales archive
(deduplicated CSV per month) is available on request.
Pass one or more names via repeated query params or a comma-separated list:
?market_hash_name=AK-47 | Redline (Field-Tested) ?market_hash_name=AK-47 | Redline (Field-Tested)&market_hash_name=M4A4 | Temukau (Minimal Wear) ?market_hash_name=AK-47 | Redline (Field-Tested),M4A4 | Temukau (Minimal Wear)
Optional filters:
marketplace:csfloat,youpin,skinportfloat_min,float_max: float range (inclusive)paint_index: one or more paint indexespaint_seed: one or more paint seeds / patternsprice_min,price_max: sale price range in cents
price and reference_price are in cents. sale_id, sticker_id and
keychain_id are returned as strings to avoid precision loss.
Access
Available on Enterprise.
Query parameters
| Parameter | Description |
|---|---|
market_hash_namerequired | Steam market_hash_name to look up. Repeat up to 5 times, or pass a
comma-separated list (max 5 unique names). |
marketplace | |
float_min | Minimum float_value (inclusive). |
float_max | Maximum float_value (inclusive). |
paint_index | Paint index filter. Repeat the parameter or pass a comma-separated list. |
paint_seed | Paint seed / pattern filter. Repeat the parameter or pass a comma-separated list. |
price_min | Minimum sale price in cents (inclusive). |
price_max | Maximum sale price in cents (inclusive). |
Request
GET https://api.cspriceapi.com/v1/market-sales/search
curl -s --compressed "https://api.cspriceapi.com/v1/market-sales/search?marketplace=csfloat" \
-H "x-api-key: YOUR_API_KEY"import requests
response = requests.get(
"https://api.cspriceapi.com/v1/market-sales/search",
params={"marketplace": "csfloat"},
headers={"x-api-key": "YOUR_API_KEY"},
timeout=60,
)
response.raise_for_status()
data = response.json()const response = await fetch(`https://api.cspriceapi.com/v1/market-sales/search?${new URLSearchParams({"marketplace":"csfloat"})}`, {
headers: {
"x-api-key": "YOUR_API_KEY",
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
q := url.Values{}
q.Set("marketplace", "csfloat")
req, err := http.NewRequest("GET", "https://api.cspriceapi.com/v1/market-sales/search?"+q.Encode(), nil)
if err != nil {
panic(err)
}
req.Header.Set("x-api-key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(resp.Status, len(body), "bytes")
}library(httr2)
response <- request("https://api.cspriceapi.com/v1/market-sales/search") |>
req_url_query(marketplace = "csfloat") |>
req_headers(`x-api-key` = "YOUR_API_KEY") |>
req_perform()
data <- resp_body_json(response)Response fields
| Field | Type | Required | Description |
|---|---|---|---|
market_hash_names | string[] | Yes | – |
count | integer | Yes | – |
data | Market Sale Search Item[] | Yes | – |
source | string | Yes | – |
requestor | string (email) | No | – |
plan | string | No | – |
timestamp | string (date-time) | Yes | ISO-8601 UTC timestamp (millisecond precision). |
Market Sale Search Item data[]
One row in sales.csv inside the ZIP export.
| Field | Type | Required | Description |
|---|---|---|---|
marketplace | string | No | – |
sale_id | string | No | UInt64 as string. |
market_hash_name | string | No | – |
price | integer | No | Sale price in cents. |
sold_at | string | No | – |
def_index | integer | No | – |
paint_index | integer | No | – |
paint_seed | integer | No | – |
float_value | number | No | – |
is_stattrak | integer | No | – |
is_souvenir | integer | No | – |
rarity | integer | No | – |
quality | integer | No | – |
cs2_img | string | No | – |
fetched_at | string | No | – |
stickers | Market Sales Csv Stickers Row[] | Yes | – |
keychains | Market Sales Csv Keychains Row[] | Yes | – |
Market Sales Csv Stickers Row data[].stickers[]
One row in stickers.csv inside the ZIP export.
| Field | Type | Required | Description |
|---|---|---|---|
marketplace | string | No | – |
sale_id | string | No | – |
sold_at | string | No | – |
position_idx | integer | No | – |
sticker_id | string | No | – |
slot | integer | No | – |
sticker_name | string | No | – |
wear | number | No | – |
offset_x | number | No | – |
offset_y | number | No | – |
rotation | number | No | – |
reference_price | integer | No | Reference price in cents. |
reference_quantity | integer | No | – |
reference_updated | string | No | – |
fetched_at | string | No | – |
Market Sales Csv Keychains Row data[].keychains[]
One row in keychains.csv inside the ZIP export.
| Field | Type | Required | Description |
|---|---|---|---|
marketplace | string | No | – |
sale_id | string | No | – |
sold_at | string | No | – |
position_idx | integer | No | – |
keychain_id | string | No | – |
slot | integer | No | – |
keychain_name | string | No | – |
pattern | integer | No | – |
offset_x | number | No | – |
offset_y | number | No | – |
offset_z | number | No | – |
reference_price | integer | No | – |
reference_quantity | integer | No | – |
reference_updated | string | No | – |
fetched_at | string | No | – |
Errors
400Missing or invalid parameters.401Missing, invalid, disabled or expired API key.403The API key is valid but is not allowed to call this endpoint (endpoint ACL).429Rate limit exceeded (10 requests per second per key). Retry after 1 second.500Internal server error – temporary upstream failure, etc.