API Reference / Inventory changes
List recorded inventory changes for a Steam account
Returns the change log of inventory items added, updated, or removed for a Steam account in a workspace, newest first. Results are paginated through a cursor, and an account with no recorded changes returns an empty list.
/ analytics. v1. Analytics/ ListInventoryItemChangesRequest body
application/jsonRequired
Request for one page of the recorded inventory changes of one Steam account in the caller's workspace, newest first.
accountName?stringSteam account name whose inventory change history to read. The workspace is always the caller's own.
cursor?stringOpaque cursor from a previous ListInventoryItemChangesResponse.next_cursor. Empty for the first page.
limit?integerMaximum number of changes to return, up to 1000. Zero uses the default of 100. A larger value is rejected with invalid_argument.
Format"int32"
Response body
application/json
Success
changes?array<InventoryItemChange>The changes on this page, newest first.
Show attributes
action?stringWhat happened to the item.
Value in"INVENTORY_"INVENTORY_"INVENTORY_
amount?stringNumber of units in the item's stack after the change. 1 for an ordinary item.
Format"int64"
appId?integerSteam app id of the item's inventory. 730 for Counter-Strike 2.
Format"int32"
assetId?stringSteam asset id of the item, as a decimal string. Unique within the account's inventory context.
classId?stringSteam class id of the item, as a decimal string. Identifies the item's description shared by identical items.
contextId?stringSteam inventory context of the item, as a decimal string, such as "2" for the tradable CS2 inventory.
instanceId?stringSteam instance id of the item, as a decimal string. Distinguishes item variants that share a class id.
marketHashName?stringSteam market hash name of the item.
observedAt?stringWhen the change was observed, as an RFC 3339 UTC timestamp.
Format"date-time"
nextCursor?stringCursor to pass as cursor to fetch the next page. Empty when this is the last page.
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/ListInventoryItemChanges" \
-H "Authorization: Bearer $CSTRADER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountName": "trade_bot_01",
"limit": 50
}'const res = await fetch("https://api.goldmine.to/analytics.v1.Analytics/ListInventoryItemChanges", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CSTRADER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"accountName": "trade_bot_01",
"limit": 50
}),
});
const data = await res.json();body := strings.NewReader(`{
"accountName": "trade_bot_01",
"limit": 50
}`)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, "https://api.goldmine.to/analytics.v1.Analytics/ListInventoryItemChanges", 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/ListInventoryItemChanges",
headers={"Authorization": f"Bearer {os.environ['CSTRADER_API_KEY']}"},
json={
"accountName": "trade_bot_01",
"limit": 50
},
)
data = res.json(){
"changes": [
{
"assetId": "38502819374",
"observedAt": "2026-06-29T11:42:13Z",
"action": "created",
"classId": "5564148233",
"instanceId": "188530139",
"marketHashName": "AK-47 | Redline (Field-Tested)",
"appId": 730,
"contextId": "2",
"amount": "1"
}
],
"nextCursor": "eyJvIjoiMjAyNi0wNi0yOVQxMTo0MjoxM1oiLCJhIjoiMzg1MDI4MTkzNzQifQ=="
}{
"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."
}