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

# Trending Pools by Network

> To query the trending 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

* Trending rankings are determined by:
  * User engagement on GeckoTerminal
  * Market activity (volume, transactions)
  * Pool security (liquidity, honeypot checks)
* 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.trendingPools.getNetwork('eth');

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

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

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


## OpenAPI

````yaml openapi-specs/demo-api.json get /onchain/networks/{network}/trending_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}/trending_pools:
    get:
      summary: Trending Pools by Network
      description: To query the trending pools based on the provided network
      operationId: trending-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: duration
          in: query
          required: false
          description: |-
            Duration to sort trending list by. 
            Default: `24h`
          schema:
            type: string
            enum:
              - 5m
              - 1h
              - 6h
              - 24h
        - 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: Trending pools on a network
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pool'
              example:
                data:
                  - id: eth_0x76a411f14a704099ba476ce8dffc288a53295218
                    type: pool
                    attributes:
                      base_token_price_usd: '0.000157869028295179'
                      base_token_price_native_currency: '0.000000076174152494787'
                      quote_token_price_usd: '2066.59098774463'
                      quote_token_price_native_currency: '1.0'
                      base_token_price_quote_token: '0.00000007617415249'
                      quote_token_price_base_token: '13127812.6142386'
                      address: '0x76a411f14a704099ba476ce8dffc288a53295218'
                      name: ASTEROID / WETH
                      pool_created_at: '2024-09-10T10:18:23Z'
                      fdv_usd: '66412125.220192'
                      market_cap_usd: '66413921.515527'
                      price_change_percentage:
                        m5: '-0.355'
                        m15: '-0.228'
                        m30: '0.284'
                        h1: '-4.605'
                        h6: '-13.908'
                        h24: '-20.721'
                      transactions:
                        m5:
                          buys: 7
                          sells: 4
                          buyers: 7
                          sellers: 4
                        m15:
                          buys: 24
                          sells: 11
                          buyers: 24
                          sellers: 11
                        m30:
                          buys: 62
                          sells: 40
                          buyers: 54
                          sellers: 34
                        h1:
                          buys: 218
                          sells: 174
                          buyers: 153
                          sellers: 116
                        h6:
                          buys: 784
                          sells: 520
                          buyers: 422
                          sellers: 344
                        h24:
                          buys: 3175
                          sells: 2431
                          buyers: 1290
                          sellers: 1169
                      volume_usd:
                        m5: '5610.858166059'
                        m15: '10926.8813342462'
                        m30: '92508.9175387338'
                        h1: '471159.035768368'
                        h6: '1738275.01961596'
                        h24: '7900631.31777918'
                      reserve_in_usd: '2471711.2255'
                      sentiment_vote_positive_percentage: 0
                      sentiment_vote_negative_percentage: 0
                      community_sus_report: 4
                    relationships:
                      base_token:
                        data:
                          id: eth_0xf280b16ef293d8e534e370794ef26bf312694126
                          type: token
                      quote_token:
                        data:
                          id: eth_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
                          type: token
                      dex:
                        data:
                          id: uniswap_v2
                          type: dex
                included:
                  - id: eth_0xf280b16ef293d8e534e370794ef26bf312694126
                    type: token
                    attributes:
                      address: '0xf280b16ef293d8e534e370794ef26bf312694126'
                      name: Asteroid Shiba
                      symbol: ASTEROID
                      decimals: 9
                      image_url: >-
                        https://coin-images.coingecko.com/coins/images/50333/large/IMG_0728.jpeg?1727384521
                      coingecko_coin_id: asteroid-shiba
                  - 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_v2
                    type: dex
                    attributes:
                      name: Uniswap V2
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)

````