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

# Top Pools by Network

> To query all the top pools based on the provided network

export const CacheInfo = ({publicRate, paidRate, rate}) => {
  const fmt = v => v === 0 ? 'Real-time (Cacheless)' : `Every ${v}`;
  if (rate !== undefined) {
    return <Callout icon="clock-rotate-left" color="#2196F3" iconType="regular">
        <strong>Cache / Update Frequency:</strong><br />{fmt(rate)}
      </Callout>;
  }
  if (publicRate !== undefined && paidRate !== undefined) {
    return <Callout icon="clock-rotate-left" color="#2196F3" iconType="regular">
        <strong>Cache / Update Frequency:</strong><ul><li>{fmt(paidRate)} (Paid API)</li><li>{fmt(publicRate)} (Demo / Keyless API)</li></ul>
      </Callout>;
  }
  return null;
};

#### Notes

* Returns up to 20 pools per page. Pagination beyond 10 pages requires [Analyst plan or above](https://www.coingecko.com/en/api/pricing).
* Unverified token market cap returns `null` — the displayed value on GeckoTerminal may match FDV and might not be accurate.
* Use `include` to return related attributes under the top-level `included` key.

<CacheInfo paidRate="30 seconds" publicRate="60 seconds" />

#### SDK Examples

<CodeGroup>
  ```typescript TypeScript theme={null}
  const response = await client.onchain.networks.pools.get('eth');

  console.log(JSON.stringify(response, null, 2));
  ```

  ```python Python theme={null}
  response = client.onchain.networks.pools.get("eth")

  print(response.model_dump_json(indent=2))
  ```
</CodeGroup>


## OpenAPI

````yaml openapi-specs/demo-api.json get /onchain/networks/{network}/pools
openapi: 3.0.0
info:
  title: CoinGecko Demo API
  version: 3.0.0
servers:
  - url: https://api.coingecko.com/api/v3
security:
  - headerAuth: []
  - queryAuth: []
paths:
  /onchain/networks/{network}/pools:
    get:
      summary: Top Pools by Network
      description: To query all the top pools based on the provided network
      operationId: top-pools-network
      parameters:
        - name: network
          in: path
          required: true
          description: |-
            Network ID. 
            *refers to [`/onchain/networks`](/reference/networks-list).
          schema:
            type: string
            default: eth
        - name: include
          in: query
          required: false
          description: |-
            Attributes to include, comma-separated if more than one. 
            Available values: `base_token`, `quote_token`, `dex`
          schema:
            type: string
        - name: page
          in: query
          required: false
          description: |-
            Page through results. 
            Default value: 1
          schema:
            type: integer
        - name: sort
          in: query
          required: false
          description: |-
            Sort the pools by field. 
            Default: `h24_tx_count_desc`
          schema:
            type: string
            enum:
              - h24_tx_count_desc
              - h24_volume_usd_desc
        - name: include_gt_community_data
          in: query
          required: false
          description: >-
            Include GeckoTerminal community data (sentiment votes, suspicious
            reports). 

            Default: `false`
          schema:
            type: boolean
      responses:
        '200':
          description: Top pools on a network
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pool'
              example:
                data:
                  - id: eth_0xe0554a476a092703abdb3ef35c80e0d76d32939f
                    type: pool
                    attributes:
                      base_token_price_usd: '1.00416362400354'
                      base_token_price_native_currency: '0.000486360749106006'
                      quote_token_price_usd: '2062.64658353477'
                      quote_token_price_native_currency: '1.0'
                      base_token_price_quote_token: '0.0004863607491'
                      quote_token_price_base_token: '2056.086972146'
                      address: '0xe0554a476a092703abdb3ef35c80e0d76d32939f'
                      name: USDC / WETH 0.01%
                      pool_created_at: '2021-12-30T20:32:10Z'
                      fdv_usd: '52795390278.303'
                      market_cap_usd: '76649272425.414'
                      price_change_percentage:
                        m5: '0.355'
                        m15: '0.217'
                        m30: '0.422'
                        h1: '-0.011'
                        h6: '0.521'
                        h24: '0.621'
                      transactions:
                        m5:
                          buys: 46
                          sells: 47
                          buyers: 29
                          sellers: 37
                        m15:
                          buys: 125
                          sells: 133
                          buyers: 90
                          sellers: 98
                        m30:
                          buys: 216
                          sells: 208
                          buyers: 148
                          sellers: 139
                        h1:
                          buys: 429
                          sells: 521
                          buyers: 277
                          sellers: 286
                        h6:
                          buys: 2174
                          sells: 2154
                          buyers: 1195
                          sellers: 956
                        h24:
                          buys: 8688
                          sells: 8756
                          buyers: 3656
                          sellers: 2830
                      volume_usd:
                        m5: '295843.242851232'
                        m15: '610802.206180104'
                        m30: '1007505.50492217'
                        h1: '3248217.38569341'
                        h6: '12299601.042572'
                        h24: '39081025.0003669'
                      reserve_in_usd: '4558978.8435'
                      sentiment_vote_positive_percentage: 0
                      sentiment_vote_negative_percentage: 0
                      community_sus_report: 2
                    relationships:
                      base_token:
                        data:
                          id: eth_0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
                          type: token
                      quote_token:
                        data:
                          id: eth_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
                          type: token
                      dex:
                        data:
                          id: uniswap_v3
                          type: dex
                included:
                  - id: eth_0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
                    type: token
                    attributes:
                      address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
                      name: USD Coin
                      symbol: USDC
                      decimals: 6
                      image_url: >-
                        https://coin-images.coingecko.com/coins/images/6319/large/USDC.png?1769615602
                      coingecko_coin_id: usd-coin
                  - id: eth_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
                    type: token
                    attributes:
                      address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
                      name: Wrapped Ether
                      symbol: WETH
                      decimals: 18
                      image_url: >-
                        https://coin-images.coingecko.com/coins/images/2518/large/weth.png?1696503332
                      coingecko_coin_id: weth
                  - id: uniswap_v3
                    type: dex
                    attributes:
                      name: Uniswap V3
components:
  schemas:
    Pool:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            type: object
            required:
              - id
              - type
              - attributes
              - relationships
            properties:
              id:
                type: string
                description: Pool identifier
              type:
                type: string
                description: Resource type
              attributes:
                type: object
                required:
                  - base_token_price_usd
                  - base_token_price_native_currency
                  - quote_token_price_usd
                  - quote_token_price_native_currency
                  - base_token_price_quote_token
                  - quote_token_price_base_token
                  - address
                  - name
                  - pool_created_at
                  - fdv_usd
                  - market_cap_usd
                  - price_change_percentage
                  - transactions
                  - volume_usd
                  - reserve_in_usd
                properties:
                  base_token_price_usd:
                    type: string
                    description: Base token price in USD
                  base_token_price_native_currency:
                    type: string
                    nullable: true
                    description: Base token price in native currency
                  quote_token_price_usd:
                    type: string
                    description: Quote token price in USD
                  quote_token_price_native_currency:
                    type: string
                    nullable: true
                    description: Quote token price in native currency
                  base_token_price_quote_token:
                    type: string
                    nullable: true
                    description: Base token price in quote token
                  quote_token_price_base_token:
                    type: string
                    nullable: true
                    description: Quote token price in base token
                  address:
                    type: string
                    description: Pool contract address
                  name:
                    type: string
                    description: Pool name
                  pool_created_at:
                    type: string
                    description: Pool creation timestamp
                  fdv_usd:
                    type: string
                    nullable: true
                    description: Fully diluted valuation in USD
                  market_cap_usd:
                    type: string
                    nullable: true
                    description: Market cap in USD
                  price_change_percentage:
                    type: object
                    description: Price change percentage over various timeframes
                    properties:
                      m5:
                        type: string
                      m15:
                        type: string
                      m30:
                        type: string
                      h1:
                        type: string
                      h6:
                        type: string
                      h24:
                        type: string
                  transactions:
                    type: object
                    description: Transaction counts over various timeframes
                    properties:
                      m5:
                        type: object
                        properties:
                          buys:
                            type: integer
                          sells:
                            type: integer
                          buyers:
                            type: integer
                          sellers:
                            type: integer
                      m15:
                        type: object
                        properties:
                          buys:
                            type: integer
                          sells:
                            type: integer
                          buyers:
                            type: integer
                          sellers:
                            type: integer
                      m30:
                        type: object
                        properties:
                          buys:
                            type: integer
                          sells:
                            type: integer
                          buyers:
                            type: integer
                          sellers:
                            type: integer
                      h1:
                        type: object
                        properties:
                          buys:
                            type: integer
                          sells:
                            type: integer
                          buyers:
                            type: integer
                          sellers:
                            type: integer
                      h6:
                        type: object
                        properties:
                          buys:
                            type: integer
                          sells:
                            type: integer
                          buyers:
                            type: integer
                          sellers:
                            type: integer
                      h24:
                        type: object
                        properties:
                          buys:
                            type: integer
                          sells:
                            type: integer
                          buyers:
                            type: integer
                          sellers:
                            type: integer
                  volume_usd:
                    type: object
                    description: Volume in USD over various timeframes
                    properties:
                      m5:
                        type: string
                      m15:
                        type: string
                      m30:
                        type: string
                      h1:
                        type: string
                      h6:
                        type: string
                      h24:
                        type: string
                  reserve_in_usd:
                    type: string
                    nullable: true
                    description: Total reserve in USD
                  token_price_usd:
                    type: string
                    description: >-
                      Price of the queried token in USD, present when querying
                      pools by token address
                  sentiment_vote_positive_percentage:
                    type: number
                    description: GeckoTerminal community positive sentiment vote percentage
                  sentiment_vote_negative_percentage:
                    type: number
                    description: GeckoTerminal community negative sentiment vote percentage
                  community_sus_report:
                    type: integer
                    description: GeckoTerminal community suspicious reports count
              relationships:
                type: object
                description: Related resources
                properties:
                  base_token:
                    type: object
                    properties:
                      data:
                        type: object
                        properties:
                          id:
                            type: string
                          type:
                            type: string
                  quote_token:
                    type: object
                    properties:
                      data:
                        type: object
                        properties:
                          id:
                            type: string
                          type:
                            type: string
                  network:
                    type: object
                    properties:
                      data:
                        type: object
                        properties:
                          id:
                            type: string
                          type:
                            type: string
                  dex:
                    type: object
                    properties:
                      data:
                        type: object
                        properties:
                          id:
                            type: string
                          type:
                            type: string
        included:
          type: array
          description: >-
            Included related resources, present when include parameter is
            specified
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
              attributes:
                type: object
                properties:
                  address:
                    type: string
                  name:
                    type: string
                  symbol:
                    type: string
                  decimals:
                    type: integer
                  image_url:
                    type: string
                    nullable: true
                  coingecko_coin_id:
                    type: string
                    nullable: true
                  coingecko_asset_platform_id:
                    type: string
  securitySchemes:
    headerAuth:
      type: apiKey
      in: header
      name: x-cg-demo-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_demo_api_key
      description: >-
        Learn how to [set up your API
        key](https://docs.coingecko.com/docs/setting-up-your-api-key)

````