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

# Get Trending Prediction Markets

> Get the most trending prediction markets ranked by volume change and activity.

<Warning>**Alpha** — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.</Warning>

### Query Parameters

<ParamField query="period" type="string" default="24h">
  Trending period. Possible values: `1h`, `24h`, `7d`, `30d`.
</ParamField>

<ParamField query="rankBy" type="string" default="volume">
  Ranking signal. Possible values: `volume` (USD volume over the period), `trades` (trade count over the period — better proxy for crowd attention).
</ParamField>

<ParamField query="filters" type="string">
  JSON object with optional filter fields: `platforms` (comma-separated or array of platform names), `categories` (comma-separated or array of category names), `excludeRecurring` (boolean — exclude recurring series such as hourly/daily up-or-down markets). Example: `{"platforms":"polymarket","categories":"crypto","excludeRecurring":true}`.
</ParamField>

<ParamField query="limit" type="number" default="20">
  Number of markets to return (1 to 100).
</ParamField>

<ParamField query="offset" type="number" default="0">
  Pagination offset.
</ParamField>

### Response

<ResponseField name="data" type="array">
  Array of trending market results (extends search results with trending data).

  <Expandable title="Trending Market">
    <ResponseField name="platform" type="string">Platform name.</ResponseField>
    <ResponseField name="marketId" type="string">Market identifier.</ResponseField>
    <ResponseField name="slug" type="string">URL-friendly slug.</ResponseField>
    <ResponseField name="question" type="string">Market question.</ResponseField>
    <ResponseField name="category" type="string">Market category.</ResponseField>
    <ResponseField name="status" type="string">Market status.</ResponseField>
    <ResponseField name="volume24hUSD" type="number | null">24h trading volume in USD.</ResponseField>
    <ResponseField name="totalVolumeUSD" type="number | null">All-time trading volume in USD.</ResponseField>
    <ResponseField name="liquidityUSD" type="number | null">Current liquidity in USD.</ResponseField>
    <ResponseField name="endDate" type="string | null">Market end date (ISO 8601).</ResponseField>
    <ResponseField name="createdAt" type="string">Market creation timestamp.</ResponseField>
    <ResponseField name="logo" type="string">Market logo URL.</ResponseField>
    <ResponseField name="tradesCount" type="number">Total number of trades.</ResponseField>
    <ResponseField name="trendingScore" type="number | null">Computed trending score.</ResponseField>
    <ResponseField name="volumeChange24hPercentage" type="number | null">Volume change percentage over 24h.</ResponseField>
    <ResponseField name="rank" type="number | null">Trending rank.</ResponseField>
    <ResponseField name="eventId" type="string | null">Parent event identifier, if this market belongs to a grouped event (e.g., "Peru Presidential Election Winner"). `null` for standalone markets. Use with [`/api/2/pm/event/details`](/endpoint/pm-event-details) to fetch the full event.</ResponseField>
    <ResponseField name="eventSlug" type="string | null">Parent event URL-friendly slug. `null` for standalone markets.</ResponseField>
    <ResponseField name="eventTitle" type="string | null">Parent event title. `null` for standalone markets.</ResponseField>

    <ResponseField name="outcomes" type="array">
      Array of outcome summaries.

      <Expandable title="Outcome Summary">
        <ResponseField name="outcomeId" type="string">Outcome token ID.</ResponseField>
        <ResponseField name="label" type="string">Outcome label.</ResponseField>
        <ResponseField name="priceUSD" type="number">Current price (0 to 1).</ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="pagination" type="object">
  Pagination metadata.

  <Expandable title="Pagination">
    <ResponseField name="page" type="number">Current page number (1-based).</ResponseField>
    <ResponseField name="offset" type="number">Current offset.</ResponseField>
    <ResponseField name="limit" type="number">Page size limit.</ResponseField>
    <ResponseField name="pageEntries" type="number">Number of entries in the current page.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="hostname" type="string">Server hostname that handled the request.</ResponseField>
<ResponseField name="took" type="number">Time taken in milliseconds.</ResponseField>

### Usage Example

```bash theme={null}
curl -X GET "https://api.mobula.io/api/2/pm/trending?period=24h&limit=10"
```

### Example Response

```json theme={null}
{
  "data": [
    {
      "platform": "polymarket",
      "marketId": "0x1234...",
      "slug": "will-eth-reach-10k-2026",
      "question": "Will ETH reach $10,000 by end of 2026?",
      "category": "crypto",
      "status": "active",
      "volume24hUSD": 45000,
      "totalVolumeUSD": 1250000,
      "liquidityUSD": 320000,
      "endDate": "2026-12-31T23:59:59.000Z",
      "createdAt": "2026-01-15T00:00:00.000Z",
      "logo": "https://polymarket.com/images/market.png",
      "tradesCount": 8500,
      "trendingScore": 92.5,
      "volumeChange24hPercentage": 156.3,
      "rank": 1,
      "outcomes": [
        { "outcomeId": "71321...", "label": "Yes", "priceUSD": 0.35 },
        { "outcomeId": "71322...", "label": "No", "priceUSD": 0.65 }
      ]
    }
  ],
  "pagination": {
    "page": 1,
    "offset": 0,
    "limit": 20,
    "pageEntries": 1
  },
  "hostname": "node-xyz",
  "took": 42
}
```


## OpenAPI

````yaml GET /2/pm/trending
openapi: 3.0.0
info:
  version: 1.0.0
  title: Mobula Prediction Markets API
  description: >-
    Documentation of the Mobula Prediction Markets API.


    The PM API is currently served from a dedicated host:
    `pm-api-prod-eu.mobula.io`.

    All endpoints below require an API key (same key as the main Mobula API).


    Parameter names below are the **canonical names enforced by the API

    controllers** (Zod-validated). Following the wrong name (e.g. `?market=...`

    instead of `?platform=...&marketId=...`) returns `HTTP 400`.
servers:
  - url: https://pm-api-prod-eu.mobula.io/api/
    description: PM Production API (requires API key)
security: []
tags:
  - name: V2 - PM Market
    description: Prediction market data — details, prices, order book, trades, OHLCV
  - name: V2 - PM Discovery
    description: Search, trending, categories, live markets
  - name: V2 - PM Wallet
    description: Wallet prediction-market positions, balances, PnL, activity, status
paths:
  /2/pm/trending:
    get:
      tags:
        - V2 - PM Discovery
      summary: Get Trending Prediction Markets
      description: >
        Get the most trending prediction markets ranked by volume change and
        activity.


        Filters are passed as a JSON-encoded `filters` query param (legacy
        form), e.g.

        `?filters={"categories":["Politics"],"platforms":["polymarket"]}`.
      parameters:
        - name: period
          in: query
          required: false
          description: Trending window.
          schema:
            type: string
            enum:
              - 1h
              - 24h
              - 7d
              - 30d
            default: 24h
        - name: filters
          in: query
          required: false
          description: >-
            JSON-encoded filter object with optional `platforms` and
            `categories` string arrays.
          schema:
            type: string
            example: '{"categories":["Politics"]}'
        - name: limit
          in: query
          required: false
          description: Page size (1-100).
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - $ref: '#/components/parameters/Offset'
      responses:
        '200':
          description: Trending markets list
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
components:
  parameters:
    Offset:
      name: offset
      in: query
      required: false
      description: Pagination offset.
      schema:
        type: integer
        minimum: 0
        default: 0

````