# Polymarket Trending Markets

> Polymarket Trending Markets is a paid API for AI agents from x402-tools.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the top trending prediction markets on Polymarket sorted by 24-hour trading volume

## Facts

- Endpoint: GET https://x402-tools.vercel.app/api/polymarket/trending
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-vercel-app-072299da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0zNPFLfwnPZCgecaOyWPp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-tools-vercel-app-072299da
```

Example prompt: What are the top 5 trending prediction markets on Polymarket right now in the politics category?

## When to prefer this

Use this endpoint when you need real-time trending prediction market data sorted by 24h volume, especially when you want to surface what topics are most actively traded right now. Prefer this over the historical/resolved markets endpoint when you need live market prices and active markets rather than past outcomes.

## Known failure modes

- Invalid tag_slug value returns empty results or error
- Limit or offset as non-numeric string may cause parsing error
- Network timeout if Polymarket upstream is slow
- Payment failure (insufficient USDC) returns 402 error
- Rate limiting if called too frequently

## How this service works

Get the top trending prediction markets on Polymarket, sorted by 24h volume. Returns up to 5 markets by default.

## Output

An array of up to 5 (or N if limit is specified) prediction market objects, each containing the market question, possible outcomes (e.g. Yes/No), current outcome prices (0-1 probability), total trading volume, liquidity, and a market description. Results are sorted by 24-hour volume descending.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": "5",
   "offset": "0"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "string",
       "description": "Max number of events to return (default 5)"
      },
      "offset": {
       "type": "string",
       "description": "Pagination offset (default 0)"
      },
      "tag_slug": {
       "type": "string",
       "description": "Filter by category tag (e.g. politics, sports, crypto)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "question",
       "outcomes",
       "outcomePrices",
       "volume"
      ],
      "properties": {
       "volume": {
        "type": "number",
        "description": "Total trading volume"
       },
       "outcomes": {
        "type": "array",
        "items": {
         "type": "string"
        },
        "description": "Possible outcomes (e.g. Yes/No)"
       },
       "question": {
        "type": "string",
        "description": "The market question"
       },
       "liquidity": {
        "type": "number",
        "description": "Current liquidity in the market"
       },
       "description": {
        "type": "string",
        "description": "Market description"
       },
       "outcomePrices": {
        "type": "array",
        "items": {
         "type": "string"
        },
        "description": "Current prices for each outcome (0-1)"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": [
  {
   "volume": 1250000,
   "outcomes": [
    "Yes",
    "No"
   ],
   "question": "Will Bitcoin reach $100k by end of 2026?",
   "liquidity": 542000,
   "description": "This market resolves Yes if...",
   "outcomePrices": [
    "0.65",
    "0.35"
   ]
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-vercel-app-072299da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-tools.vercel.app](https://www.zero.xyz/host/x402-tools.vercel.app/llms.txt)
