Skip to main content
GET
/
api
/
dev
/
get_key_price
curl "https://api.liquid.tf/api/dev/get_key_price" \
  -H "X-API-Key: YOUR_SITE_API_KEY"
{
  "key_price": 165
}

Overview

Returns the current Mann Co. Supply Crate Key price derived from the weighted average of all key sales on the marketplace over the past 30 days.

Authentication

X-API-Key
string
required
Your site API key

Rate Limit

1 request per minute

Response

key_price
integer
Current key price in cents
curl "https://api.liquid.tf/api/dev/get_key_price" \
  -H "X-API-Key: YOUR_SITE_API_KEY"
{
  "key_price": 165
}

How the Price Is Calculated

The key price is a weighted average of all Mann Co. Supply Crate Key (5021;6) sales on the marketplace over the past 30 days:
key_price = sum(price × quantity) / sum(quantity)

Use Cases

  • Convert TF2 metal or key-based prices to USD for display in your application
  • Determine a reference price when creating key listings or buy orders
  • Calibrate automated pricing relative to the current key value