# prediction-trending

> prediction-trending is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the top trending prediction market events ranked by 24-hour traded volume, with volume stats, liquidity, market count, top-market summary, close date, and status.

## Facts

- Endpoint: GET https://api.agentstools.dev/prediction/trending
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prediction-trending-0e31169e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PsCwZM3fCkuWwdpu2vz-r

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 prediction-trending-0e31169e
```

Example prompt: Show me the top 15 trending prediction markets on Polymarket right now, including their 24-hour volume, total volume, and liquidity.

## When to prefer this

Use this endpoint when you need a ranked, ready-to-consume summary of the most actively traded prediction market events by 24-hour volume, specifically on Polymarket. Prefer this over building your own Polymarket scraper or using raw market APIs when you want normalized volume, liquidity, and metadata in a single call. Ideal for daily briefings, market monitoring agents, or identifying where speculative interest is concentrated.

## Known failure modes

- Invalid limit value (outside 1–25 range) returns a validation error
- Unsupported venue value returns an enum validation error
- No trending events found may return an empty list
- Downstream Polymarket data unavailability may cause stale or empty results
- Rate limiting or payment failure (x402) may block access

## How this service works

Top trending prediction events by 24-hour traded volume: a normalized list with 24h and total volume, liquidity, market count, a top-market summary, close date, status and a link-back.

## Output

A normalized list of up to 25 trending prediction market events, each including the event name, 24-hour traded volume, total all-time volume, available liquidity, number of sub-markets, a top-market summary, close date, current status, and a direct link back to the event on the venue.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 25,
       "minimum": 1,
       "description": "Max events (default 15, cap 25)"
      },
      "venue": {
       "enum": [
        "polymarket"
       ],
       "type": "string",
       "description": "Venue (default polymarket)"
      },
      "closed": {
       "type": "boolean",
       "description": "Include closed events (default false)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prediction-trending-0e31169e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
