Capp Coal (CAPP_COAL_USD)
Status: ✅ Available | ⚡ Real-time | 📊 Live Data
Coal spot price data from major US and international markets. Coal remains a significant energy source for power generation and industrial processes globally.
Quick Reference
| Property | Value |
|---|---|
| Commodity Code | CAPP_COAL_USD |
| Name | Capp Coal |
| Category | Coal |
| Currency | USD |
| Unit | USD/short ton |
| Current Price | $82.00 |
| Last Updated | 2025-12-16T13:14:42Z | | Source | eia_coal_json |
Get Latest Price
GET/v1/prices/latest?by_code=CAPP_COAL_USD
Request
curl -X GET "https://api.oilpriceapi.com/v1/prices/latest?by_code=CAPP_COAL_USD" \
-H "Authorization: Token YOUR_API_KEY" \
-H "Accept: application/json"
Response
{
"status": "success",
"data": {
"price": 82.0,
"formatted": "$82.00",
"currency": "USD",
"code": "CAPP_COAL_USD",
"created_at": "2025-12-16T13:14:42Z",
"type": "spot_price",
"source": "eia_coal_json"
}
}
Get Historical Data
Past 24 Hours
GET /v1/prices/past_day?by_code=CAPP_COAL_USD
Past 7 Days
GET /v1/prices/past_week?by_code=CAPP_COAL_USD
Past 30 Days
GET /v1/prices/past_month?by_code=CAPP_COAL_USD
Past Year
GET /v1/prices/past_year?by_code=CAPP_COAL_USD
See Historical Prices API for full documentation.
Code Examples
cURL
# Get latest price
curl -H "Authorization: Token YOUR_API_KEY" \
"https://api.oilpriceapi.com/v1/prices/latest?by_code=CAPP_COAL_USD"
Python
import requests
api_key = "YOUR_API_KEY"
url = "https://api.oilpriceapi.com/v1/prices/latest"
response = requests.get(
url,
params={"by_code": "CAPP_COAL_USD"},
headers={"Authorization": f"Token {api_key}"}
)
data = response.json()
print(f"Capp Coal: {data['data']['formatted']}")
JavaScript
const apiKey = 'YOUR_API_KEY';
const code = 'CAPP_COAL_USD';
fetch(`https://api.oilpriceapi.com/v1/prices/latest?by_code=${code}`, {
headers: {
'Authorization': `Token ${apiKey}`
}
})
.then(res => res.json())
.then(data => {
console.log(`Capp Coal: ${data.data.formatted}`);
});
Related Endpoints
- Get All Prices - Get all commodity prices in one call
- Historical Prices - Time-series data
- Commodities List - Browse all commodities
Last Updated: 2025-12-16