Developer··11 min read

Polymarket US API: Public Data, Keys & Examples

Use the Polymarket US API with verified public market and BBO reads, correct hosts, offset pagination, decimal quotes and downloadable code examples.

Polymarket US API: Public Data, Keys & Examples
On this page

The Polymarket US API has a public market-data gateway and a separate authenticated account API. Start public research at https://gateway.polymarket.us. The authenticated host is https://api.polymarket.us. International Polymarket's Gamma and CLOB examples are not interchangeable US endpoints.

We checked the official documentation and made three small public GET requests on December 2, 2026: two market-list pages and one best-bid/offer request. All returned HTTP 200 without credentials. This guide explains that bounded observation, includes a reproducible reader, and shows how to interpret the returned fields without turning prices into unsupported performance claims.

Which Polymarket US API host should you use?

PurposeStarting pointAccess distinction
Browse markets, events and public quotesgateway.polymarket.usThe documented public endpoints need no API key
Account, portfolio and order requestsapi.polymarket.usAuthenticated requests require compatible US credentials
International Polymarket integrationdocs.polymarket.comA separate API/product workflow
Direct institutional exchange integrationUS Institutional API documentationSeparate connectivity and onboarding requirements

The official US API introduction distinguishes the public and authenticated hosts. Its navigation also separates the retail reference from the institutional trader guide, which discusses REST, gRPC and FIX. Match a tutorial to the documentation surface you actually intend to use.

For Gamma discovery, international outcome-token IDs and CLOB requests, use our separate international Polymarket API guide. A similarly named method or market does not make credentials, identifiers or request shapes portable.

Start with a public market-data request

The Get Markets reference documents a markets array and query parameters including limit, offset, active and closed. This small request asks for the first two active, non-closed records:

curl -fsSL --max-time 20   'https://gateway.polymarket.us/v1/markets?limit=2&offset=0&active=true&closed=false'

At 2026-12-02 20:40:29 UTC, this returned two records with IDs 7974 and 7976. The first had slug tec-mls-winner-2026-11-07-vwh, with active true and closed false. Those are captured metadata values, not a recommendation to trade that market or a guarantee that a later request returns the same records.

Preserve the ID and slug as returned. Our sampled IDs were strings even though some request parameters in the reference are typed as integers. Avoid applying one field's type rule to every other field. Retain the question, rules, status and timestamps alongside the identifier.

Offset pagination: a page is not a full export

Keeping the same filters, a second request with limit=2&offset=2 returned IDs 7990 and 7992. The two pages contained four distinct IDs in this observation.

That proves a successful two-page read, not complete coverage of Polymarket US. A collector needs a declared scope, ordering and stopping rule. Inserts, removals or changes in a filtered collection between requests can shift offset boundaries.

For a fictional example, page one of [A, B, C, D] returns A and B. If A disappears before the next request, the collection becomes [B, C, D]. Starting at offset two returns D and misses C. Removing duplicate IDs cannot repair a record that was never retrieved.

Store the request filters, page boundaries and retrieval times. Detect repeated pages or non-advancing progress, impose a page cap for exploratory work, and verify the provider's ordering behavior before describing a dataset as complete. This guide's reader deliberately stops after two pages.

Read a market's best bid and offer by slug

The BBO endpoint takes a market slug and returns a marketData object. Using the first slug from our list response:

GET https://gateway.polymarket.us/v1/markets/
    tec-mls-winner-2026-11-07-vwh/bbo

The actual URL has no line break. The request at 20:40:29 UTC returned these selected fields:

{
  "bestBid": {"value": "0.3390", "currency": "USD"},
  "bestAsk": {"value": "0.3400", "currency": "USD"},
  "currentPx": {"value": "0.3395", "currency": "USD"},
  "longQuote": {"value": "0.3400", "currency": "USD"},
  "shortQuote": {"value": "0.661", "currency": "USD"},
  "state": "MARKET_STATE_OPEN"
}

The downloadable timestamped quote snapshot preserves the complete BBO response from that request. It is historical data for this explanation, not a live quote widget.

Parse decimal prices and preserve currency

In the observed payload, quote values were decimal strings. The bid–ask difference was 0.3400 − 0.3390 = 0.0010 USD, or one tenth of one cent. Their arithmetic midpoint was 0.3395 USD. That happened to equal currentPx in this response; one match does not establish that currentPx always means midpoint.

The longQuote and shortQuote values added to 1.0010 USD. Do not automatically normalize those quote fields to sum to one. Quotes describe prices under their field definitions; they are not necessarily a pair of fair probabilities. Check outcome direction, costs and execution separately.

Use a decimal representation when checking currency arithmetic. Preserve the original text and currency, distinguish a valid zero from a missing value, and reject non-finite or malformed values. The accompanying worksheet checks the specific USD binary-price illustration. It is not a universal schema for all future products.

A top-of-book read also does not establish the fill price for an arbitrary quantity. The BBO response includes depth-related fields; consult their current definitions and the full book when assessing a size. Our slippage calculator illustrates how multiple price levels can change an average fill.

Keep retrieval time, quote time and resolution separate

The market-list record's updatedAt was 2026-12-02T18:56:24Z. The BBO response's lastPriceSample timestamp was 2026-12-02T20:37:52.074916564Z. Our request occurred around 20:40:29 UTC. These three timestamps refer to different observations; do not replace them with one generic “last updated” label.

The response also contained a nonzero settlementPx while its state was MARKET_STATE_OPEN. A populated field with “settlement” in its name is therefore insufficient by itself to declare the market resolved or to assign a binary outcome. Check the contract's actual resolution record and rules before using it in a forecast evaluation.

For a Brier score study, a stored market quote and an eventual outcome belong in separate columns. Treat voids, exclusions and unresolved records explicitly. A successful API request establishes data retrieval, not forecasting accuracy.

Polymarket US API keys and authentication

For authenticated functionality, the US authentication guide directs users through account verification and the developer portal. It describes a Key ID and Secret Key and recommends using the same sign-in method as the app. Follow the current setup instructions for your account.

Raw authenticated requests use X-PM-Access-Key, X-PM-Timestamp and X-PM-Signature. The official workflow uses signed requests; the official Python SDK and TypeScript SDK provide compatible clients. Keep secrets on the server and out of browser bundles, committed files and public logs.

Our examples below use the public gateway only. We did not generate credentials, inspect an account, subscribe to authenticated streams, test signing or submit an order. Reading public data does not establish a user's eligibility for authenticated account actions.

Rate limits and read-only troubleshooting

The current retail rate-limit page states a general 25-requests/second limit with endpoint exceptions. Counters are shared by source IP and Cloudflare location; multiple API keys from the same IP do not imply independent budgets there. Verify the current page when designing a collector.

On HTTP 429, pause before bounded exponential retries rather than launching more simultaneous requests. The documentation distinguishes a latency-related order-processing rejection from a true rate limit. That order-handling behavior is outside our public reader's tested scope.

Observed problemUseful first check
Empty market pageFilters, offset, product and response shape; an empty array can be valid
Market slug failsUse the returned slug from the same US source, and URL-encode it
Authentication errorConfirm endpoint host and whether the action actually requires US credentials
429 responseShared source-IP budget, request rate and bounded backoff
Different numbers across endpointsField definition, currency, side, observation time and available size

Run the bounded reader and offline worksheet

Download the public Node.js reader and run node polymarket-us-read.mjs with Node.js 18 or newer. It makes at most three sequential GET requests: two two-record pages, then BBO for the first returned slug. Each request has a 20-second timeout. It sends no API credentials and has no account or order functions.

The separate offline Python quote worksheet uses the standard library and the embedded captured quote values. Run python3 polymarket-us-quotes.py to reproduce the spread, midpoint, quote sum and valid-zero handling without network access. Neither file is an exchange client for placing trades.

Use the international API guide for the other product's workflow and Kalshi API guide for a separate venue. Explore Alphascope market research for event context. This article documents public US API observations; it does not claim a new Polymarket US trading integration in Alphascope.

Official sources reviewed December 2, 2026. Request times are UTC. The captured markets and prices can change; the fictional pagination example is identified separately from the live checks.

Frequently Asked Questions

Does Polymarket US have a public API?▾

Yes. The official reference distinguishes the public gateway.polymarket.us market-data API from the authenticated api.polymarket.us account API. Our three bounded public reads succeeded without credentials.

Can I reuse international Polymarket API credentials?▾

Do not assume so. Polymarket US has separate API hosts, authentication instructions, account access and identifiers. Follow the documentation for the intended product.

Does two-page pagination prove a complete market export?▾

No. Our check retrieved four distinct market IDs across two pages. A complete collector needs scope, ordering, stopping rules and safeguards for changes between requests.

Does a nonzero settlementPx prove a market has resolved?▾

No. Our captured BBO payload included a nonzero settlementPx while its state was MARKET_STATE_OPEN. Determine resolution from the appropriate record and contract rules.