# Get item price history (/api-reference/cs2/items/get-item-price-history)

`GET /v1/cs2/items/{marketHashName}/history`

One CS2 item version's prices each UTC day, oldest first. Costs 1 credit. Needs the Starter plan or above.

```json
{
  "servers": [
    {
      "url": "https://api.steambuff.app"
    }
  ],
  "paths": {
    "/v1/cs2/items/{marketHashName}/history": {
      "get": {
        "tags": [
          "CS2 items"
        ],
        "operationId": "get-item-price-history",
        "summary": "Get item price history",
        "description": "One CS2 item version's prices each UTC day, oldest first.",
        "x-usage": {
          "credits": 1,
          "per": "call",
          "plan": "starter",
          "planName": "Starter"
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300,
              "description": "The Steam market hash name, URL-encoded (`encodeURIComponent`)",
              "example": "AK-47 | Redline (Field-Tested)"
            },
            "required": true,
            "description": "The Steam market hash name, URL-encoded (`encodeURIComponent`)",
            "name": "marketHashName",
            "in": "path",
            "example": "{marketHashName}"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "Phase 1",
                "Phase 2",
                "Phase 3",
                "Phase 4",
                "Ruby",
                "Sapphire",
                "Black Pearl",
                "Emerald"
              ],
              "description": "Required when Doppler phases share the market hash name; without it the 400 lists the phases the name has",
              "example": "Phase 4"
            },
            "required": false,
            "description": "Required when Doppler phases share the market hash name; without it the 400 lists the phases the name has",
            "name": "phase",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 730,
              "description": "The last this many UTC days, today included; without it, the whole history",
              "example": 30
            },
            "required": false,
            "description": "The last this many UTC days, today included; without it, the whole history",
            "name": "days",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The item's daily prices",
            "headers": {
              "RateLimit-Policy": {
                "schema": {
                  "type": "string",
                  "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)",
                  "example": "\"minute\";q=60;w=60"
                },
                "required": true,
                "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)"
              },
              "RateLimit": {
                "schema": {
                  "type": "string",
                  "description": "Requests left this minute (`r`) and seconds until it resets (`t`)",
                  "example": "\"minute\";r=59;t=42"
                },
                "required": true,
                "description": "Requests left this minute (`r`) and seconds until it resets (`t`)"
              },
              "X-Credits-Limit": {
                "schema": {
                  "type": "integer",
                  "description": "The plan's monthly credits"
                },
                "required": true,
                "description": "The plan's monthly credits"
              },
              "X-Credits-Remaining": {
                "schema": {
                  "type": "integer",
                  "description": "Credits left in the current monthly window"
                },
                "required": true,
                "description": "Credits left in the current monthly window"
              },
              "X-Credits-Reset": {
                "schema": {
                  "type": "integer",
                  "description": "Seconds until the credits reset"
                },
                "required": true,
                "description": "Seconds until the credits reset"
              },
              "X-Credits-Cost": {
                "schema": {
                  "type": "integer",
                  "description": "Credits this request cost; 0 when it didn't succeed"
                },
                "required": true,
                "description": "Credits this request cost; 0 when it didn't succeed"
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "day": "2026-11-10",
                      "low": 146600,
                      "median": 155733,
                      "marketplaces": 7,
                      "listings": 193,
                      "steamLow": 174454
                    },
                    {
                      "day": "2026-11-26",
                      "low": 119468,
                      "median": 134146,
                      "marketplaces": 9,
                      "listings": 327,
                      "steamLow": 142167
                    }
                  ]
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PricePoint"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The name is shared by Doppler phases and `phase` is missing; `details.phases` lists them",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "PHASE_REQUIRED",
                  "message": "Doppler phases share this name. Pass phase, one of: Black Pearl, Phase 1, Phase 2, Phase 3, Phase 4, Ruby, Sapphire.",
                  "details": {
                    "phases": [
                      "Black Pearl",
                      "Phase 1",
                      "Phase 2",
                      "Phase 3",
                      "Phase 4",
                      "Ruby",
                      "Sapphire"
                    ]
                  },
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, invalid or revoked",
            "content": {
              "application/json": {
                "examples": {
                  "API_KEY_MISSING": {
                    "summary": "No API key",
                    "value": {
                      "error": true,
                      "code": "API_KEY_MISSING",
                      "message": "Send your API key in the x-api-key header or as Authorization: Bearer <key>.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  },
                  "API_KEY_INVALID": {
                    "summary": "An invalid or revoked API key",
                    "value": {
                      "error": true,
                      "code": "API_KEY_INVALID",
                      "message": "The API key is invalid or has been revoked.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The plan does not include this endpoint",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "PLAN_UPGRADE_REQUIRED",
                  "message": "The Free plan does not include the Price History API, which starts at the Starter plan.",
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No item has that name, or not in that phase",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "NOT_FOUND",
                  "message": "No item has that market hash name.",
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "A parameter is invalid; `details` lists each failure",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "VALIDATION_ERROR",
                  "message": "Request validation failed",
                  "details": [
                    {
                      "path": "days",
                      "message": "Too big: expected number to be <=730"
                    }
                  ],
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests this minute, or this month's credits are used up",
            "headers": {
              "RateLimit-Policy": {
                "schema": {
                  "type": "string",
                  "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)",
                  "example": "\"minute\";q=60;w=60"
                },
                "required": true,
                "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)"
              },
              "RateLimit": {
                "schema": {
                  "type": "string",
                  "description": "Requests left this minute (`r`) and seconds until it resets (`t`)",
                  "example": "\"minute\";r=59;t=42"
                },
                "required": true,
                "description": "Requests left this minute (`r`) and seconds until it resets (`t`)"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "description": "Seconds to wait before retrying"
                },
                "required": true,
                "description": "Seconds to wait before retrying"
              }
            },
            "content": {
              "application/json": {
                "examples": {
                  "RATE_LIMITED": {
                    "summary": "Too many requests this minute",
                    "value": {
                      "error": true,
                      "code": "RATE_LIMITED",
                      "message": "The Free plan allows 10 requests per minute.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  },
                  "MONTHLY_QUOTA_EXCEEDED": {
                    "summary": "This month's credits are used up",
                    "value": {
                      "error": true,
                      "code": "MONTHLY_QUOTA_EXCEEDED",
                      "message": "The Free plan's 1,000 monthly credits are used up. They reset at 2026-12-01T00:00:00.000Z. A bigger plan has more: https://steambuff.app/api.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PricePoint": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "format": "date",
            "description": "UTC calendar day, YYYY-MM-DD"
          },
          "low": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The lowest offer outside Steam that day, integer USD cents"
          },
          "median": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The median of the marketplaces' lowest offers outside Steam; steadier than `low` when one listing is mispriced, integer USD cents"
          },
          "marketplaces": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Marketplaces outside Steam behind `low` and `median`"
          },
          "listings": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Offers on sale on those marketplaces"
          },
          "steamLow": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Steam's lowest listing; null when Steam had none, integer USD cents"
          }
        },
        "required": [
          "day",
          "low",
          "median",
          "marketplaces",
          "listings",
          "steamLow"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "details": {},
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "code",
          "message"
        ]
      }
    }
  }
}
```