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

# List DeFi tokens

> Search and retrieve a paginated list of defi tokens



## OpenAPI

````yaml GET /v1/defi/tokens
openapi: 3.0.0
info:
  title: Ramps
  version: 1.0.0
servers:
  - url: https://api.moonpay.com
security: []
tags:
  - name: On-ramp
    description: Get quotes and transaction details for buying cryptocurrencies.
  - name: Off-ramp
    description: Get quotes and transaction details for selling cryptocurrencies.
  - name: Data
    description: >-
      Get currently supported countries, currencies, and payment methods. Also
      check the customers's IP address restrictions.
  - name: DefiToken
    description: Retrieve token data and token lists for DeFi assets.
paths:
  /v1/defi/tokens:
    get:
      tags:
        - DefiToken
      summary: List DeFi tokens
      description: Search and retrieve a paginated list of defi tokens
      operationId: DefiTokenController.getDefiTokens
      parameters:
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - marketCap
              - price
          explode: false
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
          explode: false
        - name: search
          in: query
          required: false
          schema:
            type: string
          explode: false
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          explode: false
        - name: size
          in: query
          required: false
          schema:
            type: number
          explode: false
        - name: hasProfanity
          in: query
          required: false
          schema:
            type: boolean
          explode: false
        - name: networkCodes
          in: query
          required: false
          schema:
            type: string
          explode: false
      responses:
        '200':
          description: The request has succeeded.
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefiTokensResponse'
        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
        '401':
          description: >-
            Unauthorized. Missing or invalid API key (`moonPayErrorCode:
            4_SYS_NOT_AUTHORIZED`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    DefiTokensResponse:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/DefiTokenResponse'
        meta:
          $ref: '#/components/schemas/CursorPaginationMeta'
    Error:
      type: object
      description: >-
        Standard error response. See [Errors](/api-reference/widget/errors) for
        the full code catalog.
      properties:
        moonPayErrorCode:
          type: string
          description: >-
            Stable, machine-readable error code. System codes are prefixed
            `1_SYS_` (general) or `4_SYS_` (request validation); domain codes
            are prefixed `5_`. `1_SYS_UNKNOWN` with a 4xx status indicates a
            legacy validation error. Read `message` for the cause. See
            [Errors](/api-reference/widget/errors).
          example: 4_SYS_BAD_REQUEST
        message:
          type: string
          description: >-
            Human-readable description of the error. May change over time.
            Branch on `moonPayErrorCode` and the HTTP status, not on this text.
        type:
          type: string
          description: >-
            The error class name, e.g. `BadRequestError`, `UnauthorizedError`,
            `MoonPayApiError`.
        errors:
          type: array
          description: >-
            Field-level validation details, when the error was caused by invalid
            input. Empty or absent otherwise.
          items:
            type: object
            properties:
              property:
                type: string
                description: The invalid field.
              message:
                type: string
                description: Why the field is invalid.
              children:
                type: array
                items:
                  type: object
                description: Nested validation errors for object fields.
      required:
        - moonPayErrorCode
        - message
        - type
    DefiTokenResponse:
      type: object
      required:
        - name
        - symbol
        - address
        - networkCode
        - decimals
        - mintable
        - freezable
        - imageSmallUrl
        - imageLargeUrl
        - tokenCreatedAt
        - circulatingMarketCap
        - liquidity
        - volume5m
        - volume1
        - volume4
        - volume12
        - volume24
        - change5m
        - change1
        - change4
        - change12
        - change24
      properties:
        name:
          type: string
        symbol:
          type: string
        address:
          type: string
        networkCode:
          type: string
        decimals:
          type: number
        mintable:
          type: string
          nullable: true
        freezable:
          type: string
          nullable: true
        imageSmallUrl:
          type: string
          nullable: true
        imageLargeUrl:
          type: string
          nullable: true
        tokenCreatedAt:
          type: string
          nullable: true
        circulatingMarketCap:
          type: string
        liquidity:
          type: string
        volume5m:
          type: string
        volume1:
          type: string
        volume4:
          type: string
        volume12:
          type: string
        volume24:
          type: string
        change5m:
          type: string
        change1:
          type: string
        change4:
          type: string
        change12:
          type: string
        change24:
          type: string
    CursorPaginationMeta:
      type: object
      required:
        - size
        - nextCursor
      properties:
        size:
          type: number
        nextCursor:
          type: string
          nullable: true
  securitySchemes:
    apiKey:
      type: apiKey
      name: apiKey
      in: query
      description: >-
        Your publishable API key, passed as the `apiKey` query parameter.
        Publishable keys are prefixed with `pk_test_` (sandbox) or `pk_live_`
        (production) and are safe to use in client-side code. Find your keys on
        the [API keys page](https://dashboard.moonpay.com/developers/api-keys)
        of the dashboard. See
        [Authentication](/api-reference/widget/using-the-api#authentication).

````