---
title: "📈 Price History of an Item with Daily Prices from Steam or Real Market Data"
method: GET
path: "/steam/api/history"
tags: ["Items"]
---

# 📈 Price History of an Item with Daily Prices from Steam or Real Market Data

`GET /steam/api/history`

## Request

- Base URL: `https://www.steamwebapi.com`
- URL: `https://www.steamwebapi.com/steam/api/history`
- Auth: API key in query parameter `key`

Baseurl: https://www.steamwebapi.com/steam/api/history?key=YOUR_API_KEY&market_hash_name=ITEM_NAME

    💬 **What this endpoint does:**
    - Retrieves the price history of an item based on specified parameters.
    - 🗓️ Provides daily prices from Steam or real market prices if `markets` is passed as origin parameter.

    🛠️ **Parameters:**
    - **`key`**: Your API key located in the Dashboard (top-right corner).
    - **`market_hash_name`**: The `market_hash_name` of the item (required).
    - **`origin`**: Specify the data source. Default is `steamwebapi`. Use `markets` for real market price history or `direct` for direct Steam API access.
    - **`interval`**: Interval for data retrieval in days. Default: `10`.
    - **`start_date`**: Start date for data retrieval (format: YYYY-MM-DD).
    - **`end_date`**: End date for data retrieval (format: YYYY-MM-DD).

    ⚡ **Important:**
    - Use the `interval` parameter for optimized data queries.
    - Specifying `markets` in `origin` results in slower responses but provides detailed real market data.
    - Using `direct` origin provides direct access to Steam API data.

## Query parameters

- `format` string
- `pretty` '0' | '1'

## Response `200`

Request was successful, and price history is returned.

- unknown

## Other responses

- `400`: Invalid start or end date provided.

---

[API](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation.md) · [All operations](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation/revisions/f9a4109cbda6?raw)
