The API for Polymarket

One endpoint for every event, market, position, trader, and more on Polymarket. Built for agents, traders, and developers.

hero background

Easy to Integrate

Start integrating our API in minutes.

events.ts
Core offering

Everything you need in one place

Drag or use arrows

REST API for every event, market, position, trader, oracle event, series, tags, candlesticks, and more.

Websockets to stream trades, oracle events, price updates, and market changes in real time.

Webhooks to trigger on market launches, resolutions, price thresholds, and custom events.

TypeScript SDK with full type safety, autocompletion, and seamless integration into your codebase.

Indexing & Backfilling to load complete history and stream new data into your own database.

Use cases

Ship with confidence at lightning speed

Focus on building your product and idea, not the infrastructure. Struct handles the rest.

Build prediction market trading interfaces powered by real-time Polymarket data.

Power autonomous agents that research, monitor, and trade on prediction markets.

Build dashboards, run quantitative research, and analyze prediction market data at scale.

feature background image
feature background image
feature background image
feature background image
AI-First

Build faster with the help of AI

We made it easy to integrate our APIs, Webhooks, SDKs, and more using your existing AI tools.

Connect AI assistants like Claude, Cursor, and Codex directly to live prediction market data through the Model Context Protocol.

Install the Struct skill in Claude Code to scaffold integrations, generate API calls, and work with our SDK using natural language.

If opted in, AI Optimized Responses automatically truncate unnecessary fields, reducing token usage and keeping AI context windows clean.

Start building with Struct

Get started for free and access prediction market data in minutes. No credit card required.

Get Started