# Polymarket Resolution History

> Polymarket Resolution History is a paid API for AI agents from agenttoll.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Fetches recently resolved Polymarket prediction market outcomes via the Gamma API, returning a list of settled markets with their resolution details.

## Facts

- Endpoint: POST https://agenttoll.dev/paid/polymarket/resolution-history
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-resolution-history-6f7bae44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GIW7HwgIXuUdLT4xNsWce

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 polymarket-resolution-history-6f7bae44 -d '<json body>'
```

Example prompt: Pull the last 30 days of resolved Polymarket prediction markets and show me up to 50 settled outcomes — I want to see which questions have been answered recently.

## When to prefer this

Choose this endpoint when you need historical resolution data for Polymarket prediction markets — particularly for backtesting, auditing outcomes, or summarizing recently settled events. Prefer this over live market endpoints when you need finalized results rather than current odds or open questions.

## Known failure modes

- Empty markets array if no markets resolved in the specified time window
- Invalid limit (outside 5–100) or days_back (outside 1–90) returns a validation error
- Upstream Polymarket Gamma API unavailability causes failure or empty response
- Payment not processed correctly results in 402 error before data is returned

## How this service works

108+ receipt-backed x402 work products for AI agents. Clear prices, spend caps, buyer metadata, and structured results over Base USDC.

## Output

Returns a JSON object with a 'source' field identifying 'Polymarket Gamma API' and a 'markets' array containing details of recently resolved prediction markets, including their resolution outcomes and associated metadata.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 5
      },
      "days_back": {
       "type": "integer",
       "maximum": 90,
       "minimum": 1
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "Polymarket Gamma API",
  "markets": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-resolution-history-6f7bae44/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttoll.dev](https://www.zero.xyz/host/agenttoll.dev/llms.txt)
