Skip to main content
GET
/
v1
/
assets
/
{idOrSlug}
Get Asset
curl --request GET \
  --url https://api.blockworks.com/v1/assets/{idOrSlug} \
  --header 'x-api-key: <api-key>'
{
  "id": 2147483647,
  "code": "<string>",
  "title": "<string>",
  "slug": "<string>",
  "tag_line": "<string>",
  "description": "<string>",
  "image_url": "<string>",
  "legacy_sector": "<string>",
  "category": "<string>",
  "is_supported": true,
  "updated_at": 123,
  "sector_id": 2147483647,
  "type": "Infrastructure",
  "market_cap": {
    "asset_id": 2147483647,
    "rank": 2147483647,
    "usd": 8.988465674311579e+307,
    "dominance": 1.7014115e+38,
    "percent_change_btc_1_h": 1.7014115e+38,
    "percent_change_btc_24_h": 1.7014115e+38,
    "percent_change_usd_1_h": 1.7014115e+38,
    "percent_change_usd_24_h": 1.7014115e+38,
    "percent_change_eth_1_h": 1.7014115e+38,
    "percent_change_eth_24_h": 1.7014115e+38,
    "updated_at": 123
  },
  "price": {
    "asset_id": 2147483647,
    "usd": 8.988465674311579e+307,
    "btc": 8.988465674311579e+307,
    "eth": 8.988465674311579e+307,
    "sparkline_7d": "<string>",
    "updated_at": 123
  }
}

Overview

Add the ?expand=market_cap flag to your /assets or /assets/{idOrSlug} page to include market_cap data in the response.

Example Request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.blockworks.com/v1/assets/ethereum?expand=market_cap"

Example Response

{
  "id": 2,
  "code": "ETH",
  "title": "Ethereum",
  "slug": "ethereum",
  "tag_line": "A decentralized computing platform",
  "description": "Ethereum is a distributed blockchain computing platform for smart contracts and decentralized applications. Its native token is ether (ETH), which primarily serves as a means of payment for transaction fees and as collateral for borrowing specific ERC-20 tokens within the decentralized finance (DeFi) sector.",
  "image_url": "https://coin-images.coingecko.com/coins/images/279/large/ethereum.png?1696501628",
  "category": "Infrastructure",
  "updated_at": 1759454319,
  "type": "Infrastructure",
  "market_cap": {
    "assetId": 2,
    "rank": 2,
    "usd": 4456.91,
    "dominance": 11.9754,
    "percent_change_btc_1h": -0.134556,
    "percent_change_btc_24h": -1.56252,
    "percent_change_usd_1h": 0.0999065,
    "percent_change_usd_24h": -0.63777,
    "percent_change_usd_7d": 2.94011,
    "percent_change_usd_30d": 2.0461,
    "percent_change_eth_1h": 0,
    "percent_change_eth_24h": 0,
    "updated_at": 1759940402
  }
}

Response Fields

FieldTypeDescription
assetIdnumberUnique identifier for the asset
ranknumberRank of the asset
usdnumberMarket cap in USD
dominancenumberDominance of the asset
percent_change_btc_1hnumberPercentage change from BTC in the last 1 hour
percent_change_btc_24hnumberPercentage change from BTC in the last 24 hours
percent_change_usd_1hnumberPercentage change from USD in the last 1 hour
percent_change_usd_24hnumberPercentage change from USD in the last 24 hours
percent_change_usd_7dnumberPercentage change from USD in the last 7 days
percent_change_usd_30dnumberPercentage change from USD in the last 30 days
percent_change_eth_1hnumberPercentage change from ETH in the last 1 hour
percent_change_eth_24hnumberPercentage change from ETH in the last 24 hours
updated_atnumberUnix timestamp when market data was last updated

Notes

  • Can be used with other expansion options by joining with a comma (e.g. ?expand=markets,ohlcv_last_24_h).
  • Can be used on /v1/assets/ or /v1/assets/{idOrSlug} endpoints.
  • price and market_cap are expanded by default in /assets/{idOrSlug} results unless an explicit ?expand= flag is provided.

See also

Authorizations

x-api-key
string
header
required

Path Parameters

idOrSlug
string
required

Query Parameters

expand
enum<string>[]

Response

id
integer
required
Required range: 0 <= x <= 4294967295
code
string | null
required
Maximum length: 20
title
string | null
required
Maximum length: 100
slug
string | null
required
Maximum length: 100
tag_line
string | null
required
Maximum length: 255
description
string | null
required
Maximum length: 65535
image_url
string | null
required
Maximum length: 255
legacy_sector
string | null
required
Maximum length: 50
category
string | null
required
Maximum length: 25
is_supported
boolean | null
required
updated_at
number | null
required

Unix timestamp

sector_id
integer | null
required
Required range: 0 <= x <= 4294967295
type
enum<string> | null
required
Available options:
Infrastructure,
Application
market_cap
object

Expandable relationship

price
object

Expandable relationship

I