# Layer Settlements API

> Layer Settlements API is a paid API for AI agents from uselayer.sh, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-21).

Retrieves normalized settlement history across Kalshi and Polymarket prediction markets

## Facts

- Endpoint: GET https://uselayer.sh/v0/settlements?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/layer-settlements-api-ec36eff3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wIcsdLkszBhT-EX66DEve

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 layer-settlements-api-ec36eff3
```

Example prompt: Pull the last 50 settlements from Kalshi since January 1st 2025 and show me which ones resolved YES.

## When to prefer this

Use this endpoint when you need normalized, cross-venue settlement data without integrating separately with Kalshi and Polymarket APIs. Prefer this over venue-specific APIs when you want unified settlement history with consistent schema, or when you need to filter by outcome or date range across both venues simultaneously.

## Known failure modes

- Empty settlements array if no markets settled in the specified date range
- Invalid 'since' date format (must be YYYY-MM-DD) causes rejection
- Unknown venue value returns empty or error response
- Exceeding rate limits may cause 402 or 429 responses requiring payment
- Very large limit values may time out or return partial results

## How this service works

One API for prediction markets. Find markets, stream normalized data, place orders, and track positions across Kalshi and Polymarket.

## Output

Returns a JSON object with a 'settlements' array containing normalized settlement records across Kalshi and Polymarket, including market identifiers, resolved outcomes, settlement dates, and venue information.

## 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"
      },
      "since": {
       "type": "string",
       "description": "YYYY-MM-DD"
      },
      "venue": {
       "type": "string"
      },
      "outcome": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "settlements": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/layer-settlements-api-ec36eff3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from uselayer.sh](https://www.zero.xyz/host/uselayer.sh/llms.txt)
