API ReferenceMarkets & Discovery
List canonical categories with served-market counts.
const url = 'https://data.predictefy.com/api/polymarket/fetchCategories';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://data.predictefy.com/api/polymarket/fetchCategories \ --header 'Authorization: Bearer <token>'Returns 404 ROUTE_NOT_FOUND when this feature is not available. A venue scopes counts to itself; router returns cross-venue counts. All categories remain present in sort_order. When aggregates are available, an appended uncategorised bucket counts served markets with no matching canonical category, including null or unknown slugs. All category counts use served open, active markets, including when the hot snapshot has full scope. The uncategorised slug is filterable with category, categories, and excludeCategories. Degraded vocabulary responses retain the bucket with zero counts when vocabulary recovery succeeds. Sum marketCount across all rows for the exact total, excluding sandbox and unserved markets.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”One of the 16 served product venues, or router for the all-served-venues union.
Unavailable venues, currently smarkets, return 404 EXCHANGE_NOT_AVAILABLE.
SX Bet serves catalog reads, real CLOB order books, the public trades tape, tape-derived candles, Trader Intelligence, and public account resources. It has no server execution service; its separate client-side SDK trading integration is live as of 2026-07-27, and the trading wallet must have a registered sx.bet account with betting enabled once per token per network. There is no venue-official history claim.
pascal, xo and pred all serve catalog reads and real CLOB order books,
plus a public trades tape on pascal only: xo and pred answer
501 NOT_SUPPORTED for fetchTrades. XO's is a venue property rather than a gap: its
trade endpoints are caller-scoped, so no public XO tape exists to serve. None of
the three has an account or venue-official history read. Their execution state
differs per venue and is no longer uniform:
- Pascal supports build, submit, and signed cancel permits.
- XO supports hosted build, submit, client-credentialed status refresh, and cancel.
- PRED execution is unavailable. Every PRED execution route, including build, returns 404 VENUE_NOT_SUPPORTED.
PredictStreet serves keyless catalog/detail reads and real two-sided CLOB books. Its ADI Chain execution supports build, submit and cancel; it has no hosted settlement service. Predict Street Limited states it operates under Gibraltar licence 167, and FIFA names it the official prediction-market partner of the FIFA World Cup 2026.
Eligibility and jurisdiction remain an operator/compliance responsibility.
PRED restricts the US, UK, France, Ontario, Singapore, Poland, Thailand, and
Taiwan and prohibits location masking; pascal is US-restricted at the venue, and
XO read access is partner-provided. Check Pascal's restricted-jurisdiction and API/data terms before use.
GET /v1/exec/venues reports current execution availability.
Responses
Section titled “Responses”Canonical category vocabulary and served-market aggregates.
object
A vocabulary category, or the appended filterable uncategorised bucket (zero counts in degraded vocabulary responses).
object
object
Example
{ "data": [ { "volume24hSource": { "sources": [ "venue" ] } } ]}The API key is missing, unknown, or revoked. A venue-authenticated read also answers 401 when the venue itself rejects the credential. Not retryable.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The account's credit balance cannot cover this endpoint's weight. Not retryable.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The API key lacks the scope this route requires, or the account's plan does not include the feature. Not retryable.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}EXCHANGE_NOT_AVAILABLE for an unavailable exchange; ROUTE_NOT_FOUND when this feature is not available.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Rate limit exceeded. The response carries Retry-After in whole seconds, always rounded up so a sub-second remainder never points back inside the live window.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Unexpected service error. Retryable; error.requestId identifies the failure.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}