Overview
Hridaya tracks Steam Market items by fetching data from four different API endpoints. Each item you want to track must be configured inconfig.yaml with the appropriate parameters.
Configuration File Location
All tracking configuration is stored inconfig.yaml at the root of your project:
Understanding API Endpoints
Choose the right endpoint (apiid) based on what data you need:
| API ID | Data Type | Auth Required | Update Frequency |
|---|---|---|---|
priceoverview | Current prices & 24h volume | No | Seconds |
itemordershistogram | Full order book (buy/sell orders) | No | Seconds |
itemordersactivity | Recent buy/sell activity feed | No | Seconds |
pricehistory | Historical hourly price data | Yes | Hourly |
The
pricehistory endpoint requires Steam session cookies. See the Authentication section below.Adding Your First Item
Find the market hash name
Navigate to your item on the Steam Market. The market hash name is in the URL:The decoded name is:
AK-47 | Redline (Field-Tested)Get the item_nameid (if needed)
For
itemordershistogram and itemordersactivity endpoints, you need the numeric item_nameid.How to find it:- Open the item page on Steam Market
- Open browser DevTools (F12)
- Go to Console tab
- Type:
g_rgAssets[730](replace 730 with your appid) - Find your item in the output - the key is the
item_nameid
item_nameid parameter.Required Parameters
Universal Parameters (All Endpoints)
These parameters are required for every item:Exact Steam market name (e.g.,
"AK-47 | Redline (Field-Tested)")Steam application ID (see Popular App IDs)
API endpoint to use:
priceoverview, itemordershistogram, itemordersactivity, or pricehistoryHow often to fetch data (minimum recommended: 8 seconds)
Endpoint-Specific Parameters
Required for:
itemordershistogram and itemordersactivityNumeric Steam item ID found via browser DevTools on the market pageOptional Parameters
Steam currency code:
1= USD2= GBP3= EUR5= RUB7= BRL
Two-letter country code (e.g.,
US, GB, IN)Language for API responses (e.g.,
english, spanish, french)Popular App IDs
| App ID | Game |
|---|---|
| 730 | Counter-Strike 2 (CS2) |
| 570 | Dota 2 |
| 440 | Team Fortress 2 |
| 252490 | Rust |
| 753 | Steam (trading cards, backgrounds, emoticons) |
Configuration Examples
Track Current Prices
config.yaml
Track Order Book (Bid/Ask)
config.yaml
Track Recent Activity
config.yaml
Track Historical Data
config.yaml
Authentication
Thepricehistory endpoint requires Steam session cookies.
Extract cookies from browser
- Log into Steam in your browser
- Open DevTools (F12) → Application/Storage tab
- Navigate to Cookies →
https://steamcommunity.com - Copy values for:
sessionidsteamLoginSecure
Rate Limiting
Hridaya enforces a global rate limit to prevent API bans.Configure Rate Limits
config.yaml
Validate Feasibility
Hridaya automatically validates that your configuration is feasible:Tracking Multiple Items
You can track multiple items across different games and endpoints:config.yaml
Common Configuration Errors
Missing Required Field
Invalid apiid
Missing item_nameid
item_nameid parameter (see Get the item_nameid).
Next Steps
Querying Data
Learn how to query the SQLite database with SQL examples
Troubleshooting
Common issues and solutions