Get Asset Price
curl --request GET \
--url https://api.blockworks.com/v1/assets/{idOrSlug}/price \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockworks.com/v1/assets/{idOrSlug}/price"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.blockworks.com/v1/assets/{idOrSlug}/price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"usd": 4014.79,
"btc": 0.036245034667051854,
"eth": 1,
"updated_at": 1760623631,
"asset_code": "ETH",
"asset_slug": "ethereum"
}assets
Get Asset Price
Get price data for a single asset. Returns only the price data with asset identifiers.
GET
/
v1
/
assets
/
{idOrSlug}
/
price
Get Asset Price
curl --request GET \
--url https://api.blockworks.com/v1/assets/{idOrSlug}/price \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockworks.com/v1/assets/{idOrSlug}/price"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.blockworks.com/v1/assets/{idOrSlug}/price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"usd": 4014.79,
"btc": 0.036245034667051854,
"eth": 1,
"updated_at": 1760623631,
"asset_code": "ETH",
"asset_slug": "ethereum"
}