# Polymarket Historical Prediction Markets

> Polymarket Historical Prediction 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).

Retrieves resolved and historical prediction markets from Polymarket, filterable by date range, slug, or category tag.

## Facts

- Endpoint: GET https://x402-tools.vercel.app/api/polymarket/historical
- 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-fb86fc18
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DniyG0L--qL5vPikA0eyG

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-fb86fc18
```

Example prompt: Can you pull up resolved Polymarket prediction markets in the politics category that ended between January 1 and March 31, 2024? Give me the top 10 results.

## When to prefer this

Use this endpoint when you need historical or resolved prediction market data from Polymarket — specifically when you want to look up past events, analyze outcomes over a date range, or filter by category (politics, sports, crypto). Prefer this over the trending markets endpoint when you need resolved/closed markets rather than currently active ones.

## Known failure modes

- Invalid date format (non-ISO 8601) returns a validation error
- Unknown slug returns empty results or 404
- Invalid tag_slug returns empty results
- Exceeding rate limits or insufficient USDC balance returns a 402 Payment Required
- Network timeout on large result sets

## How this service works

Get resolved/historical prediction markets from Polymarket. Filter by date range, slug, or category.

## Output

Returns an array of resolved prediction market objects, each containing the market question, possible outcomes (e.g. Yes/No), outcome prices (0-1 scale), total trading volume, liquidity, and a market description.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": "10",
   "offset": "0",
   "tag_slug": "politics",
   "endDateMax": "2024-03-31",
   "endDateMin": "2024-01-01"
  }
 }
}
```

## 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": {
      "slug": {
       "type": "string",
       "description": "Look up a specific event by slug"
      },
      "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)"
      },
      "endDateMax": {
       "type": "string",
       "description": "Filter events that ended on or before this date (ISO 8601)"
      },
      "endDateMin": {
       "type": "string",
       "description": "Filter events that ended on or after this date (ISO 8601)"
      }
     }
    }
   },
   "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": 890000,
   "outcomes": [
    "Yes",
    "No"
   ],
   "question": "Will the Fed cut rates in January 2026?",
   "liquidity": 120000,
   "description": "This market resolves Yes if...",
   "outcomePrices": [
    "0.92",
    "0.08"
   ]
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-vercel-app-fb86fc18/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)
