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

# Get Token Price

> Información de precio de un solo token.

## SDK Example

```typescript
import { Client } from '@solana-tracker/data-api';

const client = new Client({ apiKey: 'YOUR_API_KEY' });

const data = await client.getPrice('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', true);
```


## OpenAPI

````yaml /es/data-api/openapi.json get /price
openapi: 3.1.0
info:
  title: API de datos Solana Tracker
  description: >-
    API de datos de Solana Tracker: precios de tokens, tenedores, operaciones,
    gráficos, datos de cartera, señales de riesgo y analítica de mercado.
  version: 1.0.0
  contact:
    email: contact@solanatracker.io
servers:
  - url: https://data.solanatracker.io
    description: Entorno de producción
security:
  - apiKey: []
paths:
  /price:
    get:
      tags:
        - Price
      summary: Get Token Price
      description: Información de precio de un solo token.
      parameters:
        - name: token
          in: query
          required: true
          description: Dirección del token
          schema:
            type: string
        - name: priceChanges
          in: query
          description: >-
            When `true`, each price object includes a `priceChanges` map of
            timeframe → `{ priceChangePercentage }` (percent units, up to 24h).
            Absent timeframes mean no datapoint.
          schema:
            type: boolean
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriceResponse'
              example:
                price: 5.933132498211121
                priceQuote: 5.933132498211121
                liquidity: 288082694.430345
                marketCap: 5933128253.797433
                lastUpdated: 1760274023269
                priceChanges:
                  1h:
                    priceChangePercentage: 0.42
                  24h:
                    priceChangePercentage: -3.9114796198453
      x-codeSamples:
        - lang: typescript
          label: SDK
          source: >
            import { Client } from '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getPrice('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
            true);
      x-code-samples:
        - lang: typescript
          label: SDK
          source: >
            import { Client } from '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getPrice('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
            true);
components:
  schemas:
    PriceResponse:
      type: object
      properties:
        price:
          type: number
          description: Token price in USD
        priceQuote:
          type: number
          description: Token price in quote units when available
        liquidity:
          type: number
          description: Liquidity in USD
        marketCap:
          type: number
          description: Market cap in USD
        lastUpdated:
          type: integer
          description: Unix timestamp in milliseconds
        priceChanges:
          type: object
          description: >-
            Present when `priceChanges=true`. Keys are timeframes; values are
            percentage change vs that lookback. Units are percent (e.g. `-3.91`
            means −3.91%). Timeframe keys may be omitted when unavailable (treat
            as null/absent).
          properties:
            1m:
              type: object
              properties:
                priceChangePercentage:
                  type: number
                  description: Percent change over 1 minute
            5m:
              type: object
              properties:
                priceChangePercentage:
                  type: number
                  description: Percent change over 5 minutes
            15m:
              type: object
              properties:
                priceChangePercentage:
                  type: number
                  description: Percent change over 15 minutes
            30m:
              type: object
              properties:
                priceChangePercentage:
                  type: number
                  description: Percent change over 30 minutes
            1h:
              type: object
              properties:
                priceChangePercentage:
                  type: number
                  description: Percent change over 1 hour
            2h:
              type: object
              properties:
                priceChangePercentage:
                  type: number
            3h:
              type: object
              properties:
                priceChangePercentage:
                  type: number
            4h:
              type: object
              properties:
                priceChangePercentage:
                  type: number
            5h:
              type: object
              properties:
                priceChangePercentage:
                  type: number
            6h:
              type: object
              properties:
                priceChangePercentage:
                  type: number
            12h:
              type: object
              properties:
                priceChangePercentage:
                  type: number
            24h:
              type: object
              properties:
                priceChangePercentage:
                  type: number
                  description: Percent change over 24 hours
          additionalProperties: true
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Clave API para autenticación

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.