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

# Megafilter for Coins

> To query all the supported coins based on various filters across categories, exchanges and market metrics

#### Notes

* Returns up to 20 coins per page. The `total` response header gives the number of matching coins.
* All filters and sorting use USD values, regardless of `vs_currency`. Min and max bounds are inclusive.
* Price change filters:
  * `price_change_percentage_min` and `_max` require `price_change_percentage_duration`, e.g. `price_change_percentage_max=-10&price_change_percentage_duration=7d` for coins down 10% or more over 7 days.
  * To see the filtered value in the response, add the same timeframe to `price_change_percentage`.
* `asset_platform_id` excludes the platform's native coin (e.g. ETH for `ethereum`). Unknown IDs return an empty list.

**Analyst Plan and Above**
This endpoint is only available to **Analyst, Lite, Pro, and Enterprise** plan.
[→ View pricing](https://www.coingecko.com/en/api/pricing)

**Cache / Update Frequency:**


## OpenAPI

````yaml openapi-specs/pro-api.json get /coins/megafilter
openapi: 3.0.0
info:
  title: CoinGecko Pro API
  version: 3.0.0
servers:
  - url: https://pro-api.coingecko.com/api/v3
security:
  - headerAuth: []
  - queryAuth: []
paths:
  /coins/megafilter:
    get:
      summary: Megafilter for Coins
      description: >-
        To query all the supported coins based on various filters across
        categories, exchanges and market metrics
      operationId: coins-megafilter
      parameters:
        - name: vs_currency
          in: query
          required: true
          description: >-
            Target currency of coins and market data. 

            *refers to
            [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies)
          schema:
            type: string
            default: usd
        - name: order
          in: query
          required: false
          description: |-
            Sort result by field. 
            Default: market_cap_desc
          schema:
            type: string
            enum:
              - market_cap_desc
              - market_cap_asc
              - volume_desc
              - volume_asc
              - fdv_desc
              - fdv_asc
              - market_cap_fdv_ratio_desc
              - market_cap_fdv_ratio_asc
              - price_desc
              - price_asc
              - price_change_percentage_1h_desc
              - price_change_percentage_1h_asc
              - price_change_percentage_24h_desc
              - price_change_percentage_24h_asc
              - price_change_percentage_7d_desc
              - price_change_percentage_7d_asc
              - price_change_percentage_14d_desc
              - price_change_percentage_14d_asc
              - price_change_percentage_30d_desc
              - price_change_percentage_30d_asc
        - name: page
          in: query
          required: false
          description: |-
            Page through results. 
            Default: 1
          schema:
            type: integer
        - name: sparkline
          in: query
          required: false
          description: |-
            Include sparkline 7-day data. 
            Default: false
          schema:
            type: boolean
        - name: price_change_percentage
          in: query
          required: false
          description: >-
            Include price change percentage timeframe, comma-separated if
            querying more than 1 timeframe. 

            Valid values: `1h`, `24h`, `7d`, `14d`, `30d`, `200d`, `1y`
          schema:
            type: string
        - name: locale
          in: query
          required: false
          description: |-
            Language background. 
            Default: en
          schema:
            type: string
            enum:
              - ar
              - bg
              - cs
              - da
              - de
              - el
              - en
              - es
              - fi
              - fr
              - he
              - hi
              - hr
              - hu
              - id
              - it
              - ja
              - ko
              - lt
              - nl
              - 'no'
              - pl
              - pt
              - ro
              - ru
              - sk
              - sl
              - sv
              - th
              - tr
              - uk
              - vi
              - zh
              - zh-tw
        - name: precision
          in: query
          required: false
          description: Decimal places for currency price value
          schema:
            type: string
            enum:
              - full
              - '0'
              - '1'
              - '2'
              - '3'
              - '4'
              - '5'
              - '6'
              - '7'
              - '8'
              - '9'
              - '10'
              - '11'
              - '12'
              - '13'
              - '14'
              - '15'
              - '16'
              - '17'
              - '18'
        - name: include_rehypothecated
          in: query
          required: false
          description: >-
            Include rehypothecated tokens in results. When true, returns
            `market_cap_rank_with_rehypothecated` field. 

            Default: false
          schema:
            type: boolean
        - name: category
          in: query
          required: false
          description: >-
            Filter based on coins' category. 

            *refers to
            [`/coins/categories/list`](/reference/coins-categories-list)
          schema:
            type: string
        - name: exchange_id
          in: query
          required: false
          description: |-
            Filter based on exchange ID. 
            *refers to [`/exchanges/list`](/reference/exchanges-list)
          schema:
            type: string
        - name: asset_platform_id
          in: query
          required: false
          description: |-
            Filter based on asset platform ID. 
            *refers to [`/asset_platforms`](/reference/asset-platforms-list)
          schema:
            type: string
        - name: market_cap_usd_min
          in: query
          required: false
          description: Minimum market cap in USD
          schema:
            type: number
        - name: market_cap_usd_max
          in: query
          required: false
          description: Maximum market cap in USD
          schema:
            type: number
        - name: volume_usd_min
          in: query
          required: false
          description: Minimum 24hr trading volume in USD
          schema:
            type: number
        - name: volume_usd_max
          in: query
          required: false
          description: Maximum 24hr trading volume in USD
          schema:
            type: number
        - name: price_usd_min
          in: query
          required: false
          description: Minimum price in USD
          schema:
            type: number
        - name: price_usd_max
          in: query
          required: false
          description: Maximum price in USD
          schema:
            type: number
        - name: fdv_usd_min
          in: query
          required: false
          description: Minimum fully diluted valuation in USD
          schema:
            type: number
        - name: fdv_usd_max
          in: query
          required: false
          description: Maximum fully diluted valuation in USD
          schema:
            type: number
        - name: market_cap_fdv_ratio_min
          in: query
          required: false
          description: |-
            Minimum market cap to fully diluted valuation ratio 
            Valid values: 0...1
          schema:
            type: number
        - name: market_cap_fdv_ratio_max
          in: query
          required: false
          description: |-
            Maximum market cap to fully diluted valuation ratio 
            Valid values: 0...1
          schema:
            type: number
        - name: price_change_percentage_min
          in: query
          required: false
          description: Minimum price change percentage in USD
          schema:
            type: number
        - name: price_change_percentage_max
          in: query
          required: false
          description: Maximum price change percentage in USD
          schema:
            type: number
        - name: price_change_percentage_duration
          in: query
          required: false
          description: >-
            Timeframe for `price_change_percentage_min` and
            `price_change_percentage_max`. Required when either is set. 

            Only used for filtering. To return price change fields, use
            `price_change_percentage`.
          schema:
            type: string
            enum:
              - 1h
              - 24h
              - 7d
              - 14d
              - 30d
      responses:
        '200':
          description: List of filtered coins with market data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoinsMegafilter'
              example:
                - id: bitcoin
                  symbol: btc
                  name: Bitcoin
                  image: >-
                    https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400
                  current_price: 63035
                  market_cap: 1267855911398
                  market_cap_rank: 1
                  fully_diluted_valuation: 1267855911398
                  total_volume: 31334295551
                  high_24h: 64864
                  low_24h: 62068
                  price_change_24h: -1406.0001232204377
                  price_change_percentage_24h: -2.21464
                  market_cap_change_24h: -28279701582.40454
                  market_cap_change_percentage_24h: -2.18185
                  circulating_supply: 20113584
                  total_supply: 20113584
                  max_supply: 21000000
                  ath: 126080
                  ath_change_percentage: -50.00407
                  ath_date: '2025-10-06T10:57:42.000Z'
                  atl: 67.81
                  atl_change_percentage: 92859.3539
                  atl_date: '2013-07-05T16:00:00.000Z'
                  roi: null
                  last_updated: '2026-11-19T03:48:54.000Z'
                  market_cap_fdv_ratio: 1
                - id: ethereum
                  symbol: eth
                  name: Ethereum
                  image: >-
                    https://coin-images.coingecko.com/coins/images/279/large/ethereum.png?1696501628
                  current_price: 1782.4
                  market_cap: 217868175292
                  market_cap_rank: 2
                  fully_diluted_valuation: 217868175449
                  total_volume: 10349983788
                  high_24h: 1817.16
                  low_24h: 1734.01
                  price_change_24h: -22.305224700353392
                  price_change_percentage_24h: -1.24977
                  market_cap_change_24h: -2721120421.222595
                  market_cap_change_percentage_24h: -1.23357
                  circulating_supply: 122233327.7069443
                  total_supply: 122233327.79516056
                  max_supply: null
                  ath: 4946.05
                  ath_change_percentage: -63.96321
                  ath_date: '2025-08-24T11:21:03.000Z'
                  atl: 0.432979
                  atl_change_percentage: 411559.10922
                  atl_date: '2015-10-19T16:00:00.000Z'
                  roi:
                    times: 43.309089628863546
                    currency: btc
                    percentage: 4330.908962886355
                  last_updated: '2026-11-19T03:48:54.000Z'
                  market_cap_fdv_ratio: 0.9999999992782962
components:
  schemas:
    CoinsMegafilter:
      type: array
      items:
        type: object
        required:
          - id
          - symbol
          - name
          - image
          - current_price
          - market_cap
          - market_cap_rank
          - fully_diluted_valuation
          - total_volume
          - high_24h
          - low_24h
          - price_change_24h
          - price_change_percentage_24h
          - market_cap_change_24h
          - market_cap_change_percentage_24h
          - circulating_supply
          - total_supply
          - max_supply
          - ath
          - ath_change_percentage
          - ath_date
          - atl
          - atl_change_percentage
          - atl_date
          - roi
          - last_updated
          - market_cap_fdv_ratio
        properties:
          id:
            type: string
            description: Coin ID
          symbol:
            type: string
            description: Coin symbol
          name:
            type: string
            description: Coin name
          image:
            type: string
            description: Coin image URL
          current_price:
            type: number
            nullable: true
            description: Current price in target currency
          market_cap:
            type: number
            nullable: true
            description: Market cap in target currency
          market_cap_rank:
            type: integer
            nullable: true
            description: Market cap rank
          fully_diluted_valuation:
            type: number
            nullable: true
            description: Fully diluted valuation in target currency
          total_volume:
            type: number
            nullable: true
            description: Total trading volume in target currency
          high_24h:
            type: number
            nullable: true
            description: 24-hour price high in target currency
          low_24h:
            type: number
            nullable: true
            description: 24-hour price low in target currency
          price_change_24h:
            type: number
            nullable: true
            description: 24-hour price change in target currency
          price_change_percentage_24h:
            type: number
            nullable: true
            description: 24-hour price change percentage
          market_cap_change_24h:
            type: number
            nullable: true
            description: 24-hour market cap change in target currency
          market_cap_change_percentage_24h:
            type: number
            nullable: true
            description: 24-hour market cap change percentage
          circulating_supply:
            type: number
            nullable: true
            description: Circulating supply
          total_supply:
            type: number
            nullable: true
            description: Total supply
          max_supply:
            type: number
            nullable: true
            description: Max supply
          ath:
            type: number
            nullable: true
            description: All-time high price in target currency
          ath_change_percentage:
            type: number
            nullable: true
            description: All-time high change percentage
          ath_date:
            type: string
            format: date-time
            nullable: true
            description: All-time high date
          atl:
            type: number
            nullable: true
            description: All-time low price in target currency
          atl_change_percentage:
            type: number
            nullable: true
            description: All-time low change percentage
          atl_date:
            type: string
            format: date-time
            nullable: true
            description: All-time low date
          roi:
            type: object
            nullable: true
            description: Return on investment data
            properties:
              times:
                type: number
                description: ROI multiplier
              currency:
                type: string
                description: ROI currency
              percentage:
                type: number
                description: ROI percentage
          last_updated:
            type: string
            format: date-time
            description: Last updated timestamp
          market_cap_fdv_ratio:
            type: number
            nullable: true
            description: Market cap to fully diluted valuation ratio
          market_cap_rank_with_rehypothecated:
            type: integer
            nullable: true
            description: Market cap rank including rehypothecated tokens
          sparkline_in_7d:
            type: object
            description: Sparkline price data for the last 7 days
            properties:
              price:
                type: array
                items:
                  type: number
                description: Array of price values
          price_change_percentage_1h_in_currency:
            type: number
            nullable: true
            description: 1-hour price change percentage in target currency
          price_change_percentage_24h_in_currency:
            type: number
            nullable: true
            description: 24-hour price change percentage in target currency
          price_change_percentage_7d_in_currency:
            type: number
            nullable: true
            description: 7-day price change percentage in target currency
          price_change_percentage_14d_in_currency:
            type: number
            nullable: true
            description: 14-day price change percentage in target currency
          price_change_percentage_30d_in_currency:
            type: number
            nullable: true
            description: 30-day price change percentage in target currency
          price_change_percentage_200d_in_currency:
            type: number
            nullable: true
            description: 200-day price change percentage in target currency
          price_change_percentage_1y_in_currency:
            type: number
            nullable: true
            description: 1-year price change percentage in target currency
  securitySchemes:
    headerAuth:
      type: apiKey
      in: header
      name: x-cg-pro-api-key
      description: >-
        Learn how to [set up your API
        key](https://docs.coingecko.com/docs/setting-up-your-api-key)
    queryAuth:
      type: apiKey
      in: query
      name: x_cg_pro_api_key
      description: >-
        Learn how to [set up your API
        key](https://docs.coingecko.com/docs/setting-up-your-api-key)

````

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