> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockworksresearch.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Asset

> Retrieve detailed information for one asset by ID or slug

## Overview

Fetch a single asset by **ID** (2), **code** (`eth`), or **slug** (`ethereum`). You can optionally expand related objects (e.g. `supply`) to avoid making multiple requests. Single asset payloads include `price` and `market_cap` expansions by default, unless an explicit `?expand=` flag is provided.

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -H "x-api-key: YOUR_API_KEY" \\
    "https://api.blockworks.com/v1/assets/ethereum"
  ```

  ```typescript TypeScript theme={null}
  const res = await fetch(
    'https://api.blockworks.com/v1/assets/ethereum',
    { headers: { 'x-api-key': 'YOUR_API_KEY' } }
  )
  const data = await res.json()
  ```

  ```python Python theme={null}
  import requests

  r = requests.get(
    'https://api.blockworks.com/v1/assets/ethereum',
    headers={'x-api-key': 'YOUR_API_KEY'}
  )
  data = r.json()
  ```
</CodeGroup>

## Example Response

```json theme={null}
{
  "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": 1761159971,
  "type": "Infrastructure",
  "sector": "L1",
  "market_cap": {
    "rank": 2,
    "usd": 459025701727,
    "dominance": 11.741,
    "percent_change_btc_1h": -0.399197,
    "percent_change_btc_24h": -1.63031,
    "percent_change_usd_1h": -0.216457,
    "percent_change_usd_24h": -5.08756,
    "percent_change_usd_7d": -4.58515,
    "percent_change_usd_30d": -8.57149,
    "percent_change_eth_1h": 0,
    "percent_change_eth_24h": 0,
    "updated_at": 1761159971
  },
  "price": {
    "usd": 3814.21,
    "btc": 0.035259267482631,
    "eth": 1,
    "updated_at": 1761159971
  }
}
```

## Supported Options

| Name       | Type  | Details                                                        |
| ---------- | ----- | -------------------------------------------------------------- |
| `idOrSlug` | path  | The ID or slug of the asset to fetch                           |
| `expand`   | query | The fields to expand. See **Expand Options** for more details. |

## Response Fields

| Field         | Type   | Description                                      |
| ------------- | ------ | ------------------------------------------------ |
| `id`          | number | Unique asset identifier                          |
| `category`    | string | Asset category (e.g., Infrastructure, DeFi)      |
| `code`        | string | Asset ticker symbol (e.g., BTC, ETH)             |
| `description` | string | Detailed asset description                       |
| `image_url`   | string | URL to asset logo/image                          |
| `market_cap`  | object | Market capitalization data (expanded by default) |
| `price`       | object | Price data (expanded by default)                 |
| `sector`      | string | Sector of the asset                              |
| `slug`        | string | URL-friendly identifier                          |
| `tag_line`    | string | Short description or tagline                     |
| `title`       | string | Full asset name                                  |
| `type`        | string | Asset type classification                        |
| `updated_at`  | number | Unix timestamp of last update                    |

## See also

* [List Assets](/api-reference/assets/list)


## OpenAPI

````yaml GET /v1/assets/{idOrSlug}
openapi: 3.0.0
info:
  title: Blockworks API
  description: ''
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.blockworks.com
security:
  - x-api-key: []
tags: []
paths:
  /v1/assets/{idOrSlug}:
    get:
      tags:
        - assets
      summary: Get Asset
      description: >-
        Get a single asset by `idOrSlug`. Use `expand` to include related fields
        such as `addresses`, `chains`, `price`, `market_cap`, and `supply`.
      operationId: AssetController_get_v1
      parameters:
        - name: idOrSlug
          required: true
          in: path
          schema:
            type: string
        - name: expand
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
              enum:
                - addresses
                - chains
                - addresses.chain
                - markets
                - market_cap
                - ohlcv_last_24_h
                - price
                - reference
                - sector
                - supply
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetResponseBase'
        '400':
          description: Bad Request
        '404':
          description: Not Found
components:
  schemas:
    AssetResponseBase:
      type: object
      properties:
        id:
          type: integer
          minimum: 0
          maximum: 4294967295
        code:
          type: string
          nullable: true
          maxLength: 20
        title:
          type: string
          nullable: true
          maxLength: 100
        slug:
          type: string
          nullable: true
          maxLength: 100
        tag_line:
          type: string
          nullable: true
          maxLength: 255
        description:
          type: string
          nullable: true
          maxLength: 65535
        image_url:
          type: string
          nullable: true
          maxLength: 255
        sector:
          type: string
          nullable: true
          maxLength: 50
        category:
          type: string
          nullable: true
          maxLength: 25
        updated_at:
          type: number
          nullable: true
          description: Unix timestamp
        type:
          type: string
          nullable: true
          enum:
            - Infrastructure
            - Application
        market_cap:
          description: Expandable relationship
          allOf:
            - $ref: '#/components/schemas/MarketCap'
        price:
          description: Expandable relationship
          allOf:
            - $ref: '#/components/schemas/Price'
      required:
        - id
        - code
        - title
        - slug
        - tag_line
        - description
        - image_url
        - sector
        - category
        - updated_at
        - type
    MarketCap:
      type: object
      properties:
        asset_id:
          type: integer
          minimum: 0
          maximum: 4294967295
        rank:
          type: integer
          nullable: true
          minimum: 0
          maximum: 4294967295
        usd:
          type: number
          nullable: true
          format: double
          minimum: 2.2250738585072014e-308
          maximum: 1.7976931348623157e+308
        dominance:
          type: number
          nullable: true
          format: float
          minimum: 1.17549435e-38
          maximum: 3.402823e+38
        percent_change_btc_1_h:
          type: number
          nullable: true
          format: float
          minimum: 1.17549435e-38
          maximum: 3.402823e+38
        percent_change_btc_24_h:
          type: number
          nullable: true
          format: float
          minimum: 1.17549435e-38
          maximum: 3.402823e+38
        percent_change_usd_1_h:
          type: number
          nullable: true
          format: float
          minimum: 1.17549435e-38
          maximum: 3.402823e+38
        percent_change_usd_24_h:
          type: number
          nullable: true
          format: float
          minimum: 1.17549435e-38
          maximum: 3.402823e+38
        percent_change_eth_1_h:
          type: number
          nullable: true
          format: float
          minimum: 1.17549435e-38
          maximum: 3.402823e+38
        percent_change_eth_24_h:
          type: number
          nullable: true
          format: float
          minimum: 1.17549435e-38
          maximum: 3.402823e+38
        updated_at:
          type: number
          nullable: true
          description: Unix timestamp
      required:
        - asset_id
        - rank
        - usd
        - dominance
        - percent_change_btc_1_h
        - percent_change_btc_24_h
        - percent_change_usd_1_h
        - percent_change_usd_24_h
        - percent_change_eth_1_h
        - percent_change_eth_24_h
        - updated_at
    Price:
      type: object
      properties:
        asset_id:
          type: integer
          minimum: 0
          maximum: 4294967295
        usd:
          type: number
          nullable: true
          format: double
          minimum: 2.2250738585072014e-308
          maximum: 1.7976931348623157e+308
        btc:
          type: number
          nullable: true
          format: double
          minimum: 2.2250738585072014e-308
          maximum: 1.7976931348623157e+308
        eth:
          type: number
          nullable: true
          format: double
          minimum: 2.2250738585072014e-308
          maximum: 1.7976931348623157e+308
        sparkline_7d:
          type: string
          nullable: true
          maxLength: 65535
        updated_at:
          type: number
          nullable: true
          description: Unix timestamp
      required:
        - asset_id
        - usd
        - btc
        - eth
        - sparkline_7d
        - updated_at
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key

````