Most agents that look for a Polymarket API want one thing: the markets about a topic, and their
current odds. Polymarket has good public APIs for that. This page explains what they are, where
the work is, and how to get the same answer from Polymarket, Limitless and Manifold in one request.
Gamma API (gamma-api.polymarket.com): discover events and markets, and get their metadata.
CLOB API (clob.polymarket.com): read prices and order books, and place and manage orders.
Data API (data-api.polymarket.com): positions, activity and market participation.
Relayer API: submit wallet transactions without holding gas.
There are also WebSocket channels for live order book and price updates. The same docs say public market data needs no credentials. Polymarket also ships official TypeScript and Python SDKs.
§02 · what an agent wants
Markets about X, with odds.
A research, forecasting or news agent rarely needs an order book. It usually needs:
the open markets that match a topic, like “bitcoin” or “election”;
the current probability of each outcome;
how much money has traded on each, to tell a real market from a quiet one;
when each market closes, and a link to it.
§03 · the friction
Where the work is.
On Polymarket, an event groups one or more markets, and each market has its own outcomes. Search returns events. Prices for a market’s outcomes live on the market, and the order book lives on the CLOB, keyed by outcome IDs. Listing endpoints page with cursors. None of this is hard, but it is several calls and some joining.
Then there are other venues. Limitless and Manifold each have their own API and their own shape. Manifold trades play money, so its volume is not in dollars. To compare the same question across venues, you have to normalize all of it yourself.
§04 · one call
Search three venues at once.
curl
# Free to try: a few calls a day per IP, no wallet. After that it answers 402 (pay over x402).
curl -s -X POST https://true402.dev/api/v1/prediction-markets \
-H 'content-type: application/json' \
-d '{"query":"bitcoin","limit":10}'
true402’s POST /v1/prediction-markets takes a query keyword and an optional limit (1 to 50, default 20). It searches Polymarket, Limitless and Manifold in parallel. No account and no API key: you pay per call over x402, $0.005 in USDC, and the first few calls each day are free.
outcomes: each outcome’s price, between 0 and 1. Read it as the market’s implied probability. That is what makes venues comparable.
volumeUsd: traded volume in dollars where the venue reports it. Always null for Manifold, never a converted guess.
closesAt, url, question, marketId: when it ends, where to look, what it asks.
venues.ok / venues.failed: which venues answered. A slow venue is dropped and listed, so you always know your coverage.
Only open markets are returned. They are sorted by USD volume, with null volume last, and the list is cut to limit. A Manifold market that is not yes/no keeps its question and link with an empty outcomes list, rather than made-up prices. The answer has volume, not order-book depth or liquidity.
§06 · from an agent
Pay and read in code.
Node — @x402/fetch
// npm i @x402/fetch @x402/core @x402/evm viem — Coinbase's official x402 client
import { x402Client } from '@x402/core/client';
import { wrapFetchWithPayment } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm';
import { privateKeyToAccount } from 'viem/accounts';
const signer = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY); // a funded Base wallet
const client = new x402Client().register('eip155:8453', new ExactEvmScheme(signer));
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay('https://true402.dev/api/v1/prediction-markets', {
method: 'POST', headers: { 'content-type': 'application/json' },
body: JSON.stringify({ query: 'bitcoin', limit: 10 }),
});
const { venues, markets } = await res.json();
if (venues.failed.length) console.warn('not covered this time:', venues.failed);
for (const m of markets) {
const yes = m.outcomes.find((o) => o.name === 'Yes');
console.log(m.venue, m.question, yes?.price, m.volumeUsd, m.closesAt);
}
Trading. Placing orders needs Polymarket’s CLOB with your own account and keys. Its docs describe two layers: a wallet signature to create API credentials, then HMAC-signed requests, and a wallet signature on each order (quickstart). true402 is read-only. It never trades and never holds your keys.
Order books and live streams. Bids, asks, last trade and WebSocket updates come from the CLOB and its channels.
Polymarket-only depth. Tags, positions, wallet activity and full event metadata are in the Gamma and Data APIs.
If you only ever read Polymarket and can write the joins once, its free public API is the right choice. The one-call endpoint is for agents that want several venues, one schema, and no integration work.
§08 · questions
Answered for machines.
What APIs does Polymarket offer?
Polymarket's developer docs list four REST APIs: the Gamma API (gamma-api.polymarket.com) to discover events and markets and their metadata, the CLOB API (clob.polymarket.com) to read prices and order books and to place and manage orders, the Data API (data-api.polymarket.com) for positions and activity, and the Relayer API for gasless wallet transactions. There are also WebSocket channels for order book updates, account updates, live data and sports scores.
Does the Polymarket API need an API key?
Not for public market data. Polymarket's docs say public market data is available without credentials. Private CLOB requests, such as placing orders, need authentication: a wallet signature to create API credentials, then HMAC-signed requests, plus a wallet signature on each order.
Can I search Polymarket, Limitless and Manifold with one API call?
Yes. true402's prediction-markets endpoint takes a keyword and searches all three venues in parallel. It returns open markets in one shape: venue, question, link, outcomes with prices between 0 and 1, USD volume where the venue has it, and the close date. It needs no account and no API key. It is paid per call over x402.
Can I place Polymarket orders through true402?
No. The endpoint is read-only. It reads public market data and returns it. To trade on Polymarket you use Polymarket's CLOB API or its official SDKs with your own Polymarket account and keys.
What does a call cost?
$0.005 per call, paid in USDC on Base (or Solana) through the x402 protocol. The server answers 402 with the price, the client signs a payment for exactly that amount and retries. There is no subscription. The first few calls each day are free from your IP, with no wallet.
Is the Polymarket API free?
Reading public market data from Polymarket's own APIs is free and needs no credentials, according to its docs. Trading needs an account and signed requests. true402's cross-venue endpoint costs $0.005 per call, with a few free calls a day, and saves you joining three venues yourself.
How do I call the Polymarket API from Python?
For Polymarket alone, use its official Python SDK or plain HTTP requests to the Gamma API for markets and the CLOB API for prices. For several venues in one call, POST a query to true402's endpoint with any x402 client; the official x402 Python package handles the 402 and the payment.