Skip to main content
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>'
{
  "usd": 4014.79,
  "btc": 0.036245034667051854,
  "eth": 1,
  "updated_at": 1760623631,
  "asset_code": "ETH",
  "asset_slug": "ethereum"
}

Overview

Get the current price information for a specific asset. This endpoint returns just the price data block with asset_code and asset_slug included.

Example Request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.blockworks.com/v1/assets/ethereum/price"

Example Response

{
  "usd": 4014.79,
  "btc": 0.036245034667051854,
  "eth": 1,
  "updated_at": 1760623631,
  "asset_code": "ETH",
  "asset_slug": "ethereum"
}

Response Fields

FieldTypeDescription
usdnumberCurrent price in US dollars
btcnumberCurrent price in Bitcoin
ethnumberCurrent price in Ethereum
updated_atnumberUnix timestamp when the price was last updated
asset_codestringAsset code (e.g., “ETH”)
asset_slugstringAsset slug (e.g., “ethereum”)

Notes

  • This endpoint is equivalent to using ?expand=price on the /v1/assets/{idOrSlug} endpoint, but returns only the price data.
  • The response includes asset_code and asset_slug for easy identification.

See also

Authorizations

x-api-key
string
header
required

Path Parameters

idOrSlug
string
required

Response

Price data for the specified asset

usd
number | null
required
btc
number | null
required
eth
number | null
required
updated_at
number | null
required

Unix timestamp

asset_code
string
required
Maximum length: 20
asset_slug
string
required
Maximum length: 100
I