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

# Get token metadata

> Fetch metadata for a specific token including price, market data, and basic information. Data is fetched from onchain-indexer with fallback to third-party providers.

## Node.js SDK

🔗 **SDK Method:** [getTokenMetadata](/nodejs-sdk/onchain-apis/getTokenMetadata)

Use this API endpoint with the Neynar Node.js SDK for typed responses and better developer experience.


## OpenAPI

````yaml get /v2/onchain/token/metadata
openapi: 3.0.4
info:
  contact:
    email: team@neynar.com
    name: Neynar
    url: https://neynar.com/
  description: >-
    The Neynar API allows you to interact with the Farcaster protocol among
    other things. See the [Neynar docs](https://docs.neynar.com/reference) for
    more details.
  title: Neynar API
  version: 3.173.0
servers:
  - url: https://api.neynar.com
security:
  - ApiKeyAuth: []
tags:
  - description: Operations related to user
    externalDocs:
      description: More info about user
      url: https://docs.neynar.com/reference/user-operations
    name: User
  - description: Operations related to signer
    externalDocs:
      description: More info about signer
      url: https://docs.neynar.com/reference/signer-operations
    name: Signer
  - description: Operations related to cast
    externalDocs:
      description: More info about cast
      url: https://docs.neynar.com/reference/cast-operations
    name: Cast
  - description: Operations related to feed
    externalDocs:
      description: More info about feed
      url: https://docs.neynar.com/reference/feed-operations
    name: Feed
  - description: Operations related to reaction
    externalDocs:
      description: More info about reaction
      url: https://docs.neynar.com/reference/reaction-operations
    name: Reaction
  - description: Operations related to notifications
    externalDocs:
      description: More info about notifications
      url: https://docs.neynar.com/reference/notifications-operations
    name: Notifications
  - description: Operations related to channels
    externalDocs:
      description: More info about channels
      url: https://docs.neynar.com/reference/channel-operations
    name: Channel
  - description: Operations related to follows
    externalDocs:
      description: More info about follows
      url: https://docs.neynar.com/reference/follows-operations
    name: Follows
  - description: Operations related to storage
    externalDocs:
      description: More info about storage
      url: https://docs.neynar.com/reference/storage-operations
    name: Storage
  - description: Operations related to mini apps
    name: Frame
  - description: Operations for building AI agents
    name: Agents
  - description: Operations related to fname
    name: fname
  - description: Operations related to a webhook
    name: Webhook
  - description: >-
      Securely communicate and perform actions on behalf of users across
      different apps
    externalDocs:
      description: More info about farcaster actions
      url: https://docs.neynar.com/docs/farcaster-actions-spec
    name: Action
  - description: Operations related to a subscriptions
    name: Subscribers
  - description: Operations related to a mute
    name: Mute
  - description: Operations related to a block
    name: Block
  - description: Operations related to a ban
    name: Ban
  - description: Operations related to onchain data
    name: Onchain
  - description: Operations related to login
    name: Login
  - description: Operations related to retrieving metrics
    name: Metrics
  - description: Operations related to mini app host notifications
    externalDocs:
      description: More info about mini app host notifications
      url: https://docs.neynar.com/docs/app-host-notifications
    name: App Host
paths:
  /v2/onchain/token/metadata:
    get:
      tags:
        - Onchain
      summary: Get token metadata
      description: >-
        Fetch metadata for a specific token including price, market data, and
        basic information. Data is fetched from onchain-indexer with fallback to
        third-party providers.
      operationId: get-token-metadata
      parameters:
        - description: A blockchain network e.g. "ethereum", "optimism", "base", "arbitrum"
          in: query
          name: network
          required: true
          schema:
            enum:
              - ethereum
              - optimism
              - base
              - arbitrum
            title: Network
            type: string
        - description: Token contract address
          in: query
          name: address
          required: true
          schema:
            example: '0x5a927ac639636e534b678e81768ca19e2c6280b7'
            pattern: ^0x[a-fA-F0-9]{40}$
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  token:
                    properties:
                      address:
                        description: Token contract address
                        example: '0x5a927ac639636e534b678e81768ca19e2c6280b7'
                        pattern: ^0x[a-fA-F0-9]{40}$
                        type: string
                      decimals:
                        description: Token decimals
                        example: 6
                        type: integer
                      description:
                        description: Token description
                        example: USDC is a fully collateralized US dollar stablecoin
                        nullable: true
                        type: string
                      fdv:
                        description: Fully diluted valuation in USD
                        example: '25000000000'
                        nullable: true
                        type: string
                      holder_count:
                        description: Number of token holders
                        example: 1500000
                        nullable: true
                        type: integer
                      image_url:
                        description: Token logo URL
                        example: https://example.com/token.png
                        nullable: true
                        type: string
                      liquidity:
                        description: Total liquidity in USD
                        example: '500000000'
                        nullable: true
                        type: string
                      market_cap:
                        description: Market capitalization in USD
                        example: '25000000000'
                        nullable: true
                        type: string
                      name:
                        description: Token name
                        example: USD Coin
                        type: string
                      network:
                        $ref: '#/components/schemas/Network'
                      price_change_24h_pct:
                        description: 24-hour price change percentage
                        example: -1.2
                        nullable: true
                        type: number
                      price_change_6h_pct:
                        description: 6-hour price change percentage
                        example: 0.5
                        nullable: true
                        type: number
                      price_source:
                        description: Source of price data
                        enum:
                          - onchain
                          - coingecko
                        example: onchain
                        nullable: true
                        type: string
                      price_updated_at:
                        description: >-
                          Timestamp when price data was last updated
                          (milliseconds)
                        example: 1707177600000
                        nullable: true
                        type: integer
                      price_usd:
                        description: Token price in USD
                        example: '1.00'
                        nullable: true
                        type: string
                      symbol:
                        description: Token symbol
                        example: USDC
                        type: string
                      total_supply:
                        description: Total token supply
                        example: '1000000000000'
                        nullable: true
                        type: string
                      volume_24h:
                        description: 24-hour trading volume in USD
                        example: '150000000'
                        nullable: true
                        type: string
                      volume_6h:
                        description: 6-hour trading volume in USD
                        example: '50000000'
                        nullable: true
                        type: string
                    required:
                      - network
                      - address
                      - name
                      - symbol
                      - decimals
                      - total_supply
                      - image_url
                      - price_usd
                      - market_cap
                      - fdv
                      - liquidity
                      - volume_6h
                      - volume_24h
                      - price_change_6h_pct
                      - price_change_24h_pct
                      - holder_count
                      - description
                      - price_updated_at
                      - price_source
                    type: object
                required:
                  - token
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorRes'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorRes'
          description: Resource not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorRes'
          description: Server Error
      externalDocs:
        url: https://docs.neynar.com/reference/get-token-metadata
components:
  schemas:
    Network:
      description: A blockchain network e.g. "ethereum", "optimism", "base", "arbitrum"
      enum:
        - ethereum
        - optimism
        - base
        - arbitrum
      title: Network
      type: string
    ErrorRes:
      description: Details for the error response
      properties:
        code:
          type: string
        message:
          type: string
        property:
          type: string
        status:
          format: int32
          type: integer
      required:
        - message
      title: ErrorRes
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: API key to authorize requests
      in: header
      name: x-api-key
      type: apiKey
      x-default: NEYNAR_API_DOCS

````