# Polymarket data API for AI agents > morigraph has one Polymarket data API, Polymarket Markets, that Claude, ChatGPT, Cursor, Codex or your own code can call. Discover Polymarket prediction markets (question, outcome prices, volume, liquidity, and end dates) by keyword or sorted by activity, as normalized JSON. You need no Polymarket developer account or API key, only one morigraph connection. A call costs 2.88 credits, about $288 for 1,000 calls, paid from one balance. ## How to call it Every data API is run by one tool, `data_api`, with the API's id and its arguments. The example is Polymarket Markets. In your assistant (MCP). Connect once, then ask in plain words: ```sh claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp Use morigraph's Polymarket Markets data API with {"limit":10,"query":"election"} and summarise what comes back. ``` From a terminal or script (CLI): ```sh npx @morigraph/cli@latest login morigraph call data_api --json-args '{"api":"polymarket.markets","input":{"limit":10,"query":"election"}}' ``` From your own code (HTTP API): ```sh curl https://api.morigraph.com/v1/tools/data_api \ -H "Authorization: Bearer $MORIGRAPH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"api":"polymarket.markets","input":{"limit":10,"query":"election"}}' ``` ## Polymarket Markets `polymarket.markets` · 2.88 credits a call (about $288 for 1,000) Discover Polymarket prediction markets (question, outcome prices, volume, liquidity, and end dates) by keyword or sorted by activity, as normalized JSON. | Argument | Type | Required | What it is | |---|---|---|---| | `limit` | integer | no | Maximum number of results to return (10-25, default 25). You are billed per result returned, so a lower limit costs less. | | `query` | string | yes | Search term for markets (e.g. election, bitcoin, super bowl). | | `sortBy` | volume_24hr \| volume \| liquidity \| start_date \| ending_soon \| competitive | no | How discovered markets are ordered before results are returned (e.g. volume_24hr for recent momentum). | | `status` | active \| resolved | no | Return "active" markets for current prices and volume, or "resolved" markets for historical outcomes. | Returns: `bestAsk`, `bestBid`, `commentCount`, `conditionId`, `createdUtc`, `description`, `endsUtc`, `eventId`, `eventTitle`, `id`, `image`, `lastTradePrice`, `liquidityUsd`, `openInterestUsd`, `outcomes`, `slug`, `spread`, `startsUtc`, `status`, `tags`, `title`, `updatedUtc`, `url`, `volume1mUsd`, `volume1wUsd`, `volume24hUsd`, `volumeUsd` ``` data_api({"api":"polymarket.markets","input":{"limit":10,"query":"election"}}) ``` ## Do I need a Polymarket API key or developer account? No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call the API on this page. ## What does Polymarket data cost through morigraph? 2.88 credits a call, where a credit is about 10 cents. That is from about $288 for 1,000 calls. You pay per call from one balance, with no separate subscription. ## Can Claude, ChatGPT or Cursor get Polymarket data? Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call. --- Canonical page: https://morigraph.com/tools/data/polymarket/ Prices read from the catalogue on 2026-11-27. These APIs return public data; how you may use it depends on the platform's terms and applicable law. All data APIs: https://morigraph.com/tools/data.md · Connect: https://morigraph.com/connect.md · Site overview: https://morigraph.com/llms.txt