Polymarket markets and odds API

List Polymarket markets from the public Gamma API. query is filtered client-side on the returned page. Does not place orders. POST /api/v1/polymarket/markets costs $0.008 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Polymarket Gamma API Polymarket Data API v2 Limits: Public market data only — no order placement and no private fills. Does not use the retired Data API v1 or authenticated CLOB user-trades routes.

List Polymarket markets from the public Gamma API. query is filtered client-side on the returned page. Does not place orders. POST /api/v1/polymarket/markets costs $0.008 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Polymarket Gamma API Polymarket Data API v2 Limits: Public market data only — no order placement and no private fills. Does not use the retired Data API v1 or authenticated CLOB user-trades routes.

POST$0.008 USDC
/api/v1/polymarket/markets

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/polymarket/markets" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "limit": 5,
  "closed": false
}
JSON

Example response

{
  "status": "complete",
  "data": {
    "retrievedAt": "2026-11-20T21:36:00.000Z",
    "limit": 20,
    "offset": 0,
    "markets": [
      {
        "id": "559651",
        "question": "Xi Jinping out before 2027?",
        "slug": "xi-jinping-out-before-2027",
        "conditionId": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7",
        "outcomes": [
          "Yes",
          "No"
        ],
        "outcomePrices": [
          "0.0175",
          "0.9825"
        ],
        "bestBid": 0.017,
        "bestAsk": 0.018,
        "lastTradePrice": 0.015,
        "spread": 0.001,
        "volume": "17392796.370488998",
        "liquidity": "299906.07864",
        "endDate": "2027-01-01T04:59:00Z",
        "active": true,
        "closed": false
      }
    ],
    "unavailable": []
  },
  "nextCursor": null,
  "progress": {
    "processed": 0,
    "total": null,
    "unit": "items",
    "scannedRange": null
  },
  "sources": [
    {
      "source": "upstream",
      "url": "https://gamma-api.polymarket.com/markets",
      "retrievedAt": "2026-11-20T21:36:00.000Z"
    }
  ],
  "missing_items": [],
  "limitations": []
}

An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.

Errors: HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; failed or empty results are not charged. Invalid cursor returns HTTP 400 (uncharged).

Limits: Public market data only — no order placement and no private fills. Does not use the retired Data API v1 or authenticated CLOB user-trades routes. query filters are applied client-side on the returned Gamma page. Optional cursor resumes the next deterministic chunk. Partial responses include nextCursor, progress, sources, and data under a ~22s wall budget (#212).

FAQ

  • Do I need an API key? No. Pay the listed USDC amount with x402.
  • What network? Base (eip155:8453), USDC.
  • Is this an official determination? No. Results are for human review against the cited sources.

Related APIs

Polymarket Markets Odds Trades API APIGroup docsHow it works