curl "https://api.liquid.tf/api/dev/get_key_price" \
-H "X-API-Key: YOUR_SITE_API_KEY"
const response = await fetch('https://api.liquid.tf/api/dev/get_key_price', {
headers: {
'X-API-Key': 'YOUR_SITE_API_KEY'
}
});
const data = await response.json();
console.log(`Key price: $${data.key_price / 100}`);
import requests
response = requests.get(
'https://api.liquid.tf/api/dev/get_key_price',
headers={'X-API-Key': 'YOUR_SITE_API_KEY'}
)
data = response.json()
print(f"Key price: ${data['key_price'] / 100:.2f}")
{
"key_price": 165
}
Market Data
Get Key Price
Retrieve the current Mann Co. Supply Crate Key price based on marketplace sales
GET
/
api
/
dev
/
get_key_price
curl "https://api.liquid.tf/api/dev/get_key_price" \
-H "X-API-Key: YOUR_SITE_API_KEY"
const response = await fetch('https://api.liquid.tf/api/dev/get_key_price', {
headers: {
'X-API-Key': 'YOUR_SITE_API_KEY'
}
});
const data = await response.json();
console.log(`Key price: $${data.key_price / 100}`);
import requests
response = requests.get(
'https://api.liquid.tf/api/dev/get_key_price',
headers={'X-API-Key': 'YOUR_SITE_API_KEY'}
)
data = response.json()
print(f"Key price: ${data['key_price'] / 100:.2f}")
{
"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
string
required
Your site API key
Rate Limit
1 request per minuteResponse
integer
Current key price in cents
curl "https://api.liquid.tf/api/dev/get_key_price" \
-H "X-API-Key: YOUR_SITE_API_KEY"
const response = await fetch('https://api.liquid.tf/api/dev/get_key_price', {
headers: {
'X-API-Key': 'YOUR_SITE_API_KEY'
}
});
const data = await response.json();
console.log(`Key price: $${data.key_price / 100}`);
import requests
response = requests.get(
'https://api.liquid.tf/api/dev/get_key_price',
headers={'X-API-Key': 'YOUR_SITE_API_KEY'}
)
data = response.json()
print(f"Key price: ${data['key_price'] / 100:.2f}")
{
"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
