API Reference / Market observations
List the market metrics available for an item
Returns the set of source and metric combinations that currently have data for a given item, so a caller knows which series it can chart or filter on. An item with no recorded data returns an empty list.
/ analytics. v1. Analytics/ GetAvailableMetricsRequest body
application/jsonRequired
Request for the source and metric pairs that currently have data for one item.
marketHashName?stringExact Steam market hash name of the item to look up.
Response body
application/json
Success
sourceMetrics?array<SourceMetric>Every source and metric pair that has data for the item, usable in GetMarketObservationTimeSeries.
Show attributes
metric?stringMetric name from the canonical vocabulary, such as "listing-price", "bid-price", "listings", "supply", "volume", "average-7d", "average-30d", "average-90d", "liquidity", "market-cap" or "estimated-sale-time-hours".
source?stringMarket source name, such as "c5game", "market-csgo" or "buff163".
application/json
The request was malformed, such as a missing required field or an unparseable cursor.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The request lacks a valid API key in the Authorization header.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The API key is not allowed to perform this action on this workspace.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The request was rate limited. Slow down and retry later.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
An internal server error occurred.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
curl -X POST "https://api.goldmine.to/analytics.v1.Analytics/GetAvailableMetrics" \
-H "Authorization: Bearer $CSTRADER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"marketHashName": "AK-47 | Redline (Field-Tested)"
}'const res = await fetch("https://api.goldmine.to/analytics.v1.Analytics/GetAvailableMetrics", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CSTRADER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"marketHashName": "AK-47 | Redline (Field-Tested)"
}),
});
const data = await res.json();body := strings.NewReader(`{
"marketHashName": "AK-47 | Redline (Field-Tested)"
}`)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, "https://api.goldmine.to/analytics.v1.Analytics/GetAvailableMetrics", body)
if err != nil {
return err
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("CSTRADER_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)import os, requests
res = requests.post(
"https://api.goldmine.to/analytics.v1.Analytics/GetAvailableMetrics",
headers={"Authorization": f"Bearer {os.environ['CSTRADER_API_KEY']}"},
json={
"marketHashName": "AK-47 | Redline (Field-Tested)"
},
)
data = res.json(){
"sourceMetrics": [
{
"source": "market-csgo",
"metric": "listing-price"
},
{
"source": "market-csgo",
"metric": "volume"
},
{
"source": "buff163",
"metric": "listing-price"
}
]
}{
"code": "invalid_argument",
"message": "The request was malformed, such as a missing required field or an unparseable cursor."
}{
"code": "unauthenticated",
"message": "The request lacks a valid API key in the Authorization header."
}{
"code": "permission_denied",
"message": "The API key is not allowed to perform this action on this workspace."
}{
"code": "resource_exhausted",
"message": "The request was rate limited. Slow down and retry later."
}{
"code": "internal",
"message": "An internal server error occurred."
}