> ## 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 Single Asset Price

> Retrieve price data for a specific asset

## 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

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

  ```typescript TypeScript theme={null}
  const res = await fetch(
    'https://api.blockworks.com/v1/assets/ethereum/price',
    { 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/price',
    headers={'x-api-key': 'YOUR_API_KEY'}
  )
  data = r.json()
  ```
</CodeGroup>

## Example Response

```json theme={null}
{
  "usd": 4014.79,
  "btc": 0.036245034667051854,
  "eth": 1,
  "updated_at": 1760623631,
  "asset_code": "ETH",
  "asset_slug": "ethereum"
}
```

### Response Fields

| Field        | Type   | Description                                    |
| ------------ | ------ | ---------------------------------------------- |
| `usd`        | number | Current price in US dollars                    |
| `btc`        | number | Current price in Bitcoin                       |
| `eth`        | number | Current price in Ethereum                      |
| `updated_at` | number | Unix timestamp when the price was last updated |
| `asset_code` | string | Asset code (e.g., "ETH")                       |
| `asset_slug` | string | Asset 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

* [Get Single Asset](/api-reference/assets/get-single)
* [Price (Expand Parameter)](/api-reference/assets/expand/price)
* [All Assets](/api-reference/assets/list)


## OpenAPI

````yaml GET /v1/assets/{idOrSlug}/price
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}/price:
    get:
      tags:
        - assets
      summary: Get Asset Price
      description: >-
        Get price data for a single asset. Returns only the price data with
        asset identifiers.
      operationId: AssetController_getPrice_v1
      parameters:
        - name: idOrSlug
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: Price data for the specified asset
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetPriceWithIdentifiers'
              example:
                usd: 4014.79
                btc: 0.036245034667051854
                eth: 1
                updated_at: 1760623631
                asset_code: ETH
                asset_slug: ethereum
        '400':
          description: Bad Request
        '404':
          description: Not Found
components:
  schemas:
    AssetPriceWithIdentifiers:
      type: object
      properties:
        usd:
          type: number
          nullable: true
          format: double
        btc:
          type: number
          nullable: true
          format: double
        eth:
          type: number
          nullable: true
          format: double
        updated_at:
          type: number
          nullable: true
          description: Unix timestamp
        asset_code:
          type: string
          maxLength: 20
        asset_slug:
          type: string
          maxLength: 100
      required:
        - usd
        - btc
        - eth
        - updated_at
        - asset_code
        - asset_slug
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key

````