API para Polymarket: Mercados
Descubra mercados de previsão da Polymarket (pergunta, preços dos resultados, volume, liquidez e datas de encerramento) por palavra-chave ou ordenados por atividade, em JSON normalizado.
Como chamar
Faça sua primeira requisição
import os, requests res = requests.post( "https://api.getanyapi.com/v1/run/polymarket.markets", headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"}, json={ "query": "" }, ) print(res.json())
{
"data": {
"items": [
{
"bestAsk": 12.5,
"bestBid": 1024,
"commentCount": 12500,
"conditionId": "a1b2c3d4",
"createdUtc": 12.5,
"description": "A short example description of this item.",
"endsUtc": 12.5,
"eventId": "a1b2c3d4",
"eventTitle": "Example title",
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"lastTradePrice": 19.99,
"liquidityUsd": 1024,
"openInterestUsd": 12.5,
"outcomes": [
{
"name": "Example title",
"price": 19.99
}
],
"slug": "alex_rivera",
"spread": 12.5,
"startsUtc": 12.5,
"status": "active",
"tags": [
{
"name": "Example title",
"slug": "alex_rivera"
}
],
"title": "Example title",
"updatedUtc": 12.5,
"url": "https://example.com/page",
"volume1mUsd": 12500,
"volume1wUsd": 12500,
"volume24hUsd": 12500,
"volumeUsd": 12500
}
]
},
"found": true,
"reason": "not_found"
}interface PolymarketMarketsResponse {
data: {
items: {
bestAsk?: number;
bestBid?: number;
commentCount?: number;
conditionId?: string;
createdUtc?: number;
description?: string;
endsUtc?: number;
eventId?: string;
eventTitle?: string;
id: string;
image?: string;
lastTradePrice?: number;
liquidityUsd?: number;
openInterestUsd?: number;
outcomes?: {
name?: string;
price?: number;
}[];
slug?: string;
spread?: number;
startsUtc?: number;
status?: string;
tags?: {
name?: string;
slug?: string;
}[];
title: string;
updatedUtc?: number;
url: string;
volume1mUsd?: number;
volume1wUsd?: number;
volume24hUsd?: number;
volumeUsd?: number;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/polymarket.markets \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":10,"query":"election"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| query | string | "election"Termo de busca para mercados (ex.: election, bitcoin, super bowl). |
| limit | integer | 10Número máximo de resultados a retornar (1-25, padrão 25). A cobrança é por resultado retornado, então um limite menor custa menos. |
| sortBy | enum | Como os mercados encontrados são ordenados antes de os resultados serem retornados (ex.: volume_24hr para o momento recente). |
| status | enum | Retorna mercados "active" para preços e volume atuais, ou mercados "resolved" para resultados históricos. |
| Resposta | ||
| data | object | The result wrapper, or null when nothing was found. |
| data.items | object[] | Prediction-market records: market question, outcomes with current prices, volume, liquidity, and end date. Populated whenever the provider has data for the entity. |
| data.items[].bestAsk | number | Best ask currently on the order book (0 to 1). |
| data.items[].bestBid | number | Best bid currently on the order book (0 to 1). |
| data.items[].commentCount | integer | Number of comments on the event. |
| data.items[].conditionId | string | On-chain condition identifier for the market. |
| data.items[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the market was created. |
| data.items[].description | string | Resolution rules for the market. |
| data.items[].endsUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the market resolves/ends. |
| data.items[].eventId | string | Identifier of the parent event grouping this market. |
| data.items[].eventTitle | string | Title of the parent event grouping this market. |
| data.items[].id | string | Polymarket market identifier. Populated whenever the provider has data for the entity. |
| data.items[].image | string | Event image URL. |
| data.items[].lastTradePrice | number | Price of the most recent trade (0 to 1). |
| data.items[].liquidityUsd | number | Available liquidity in USD. |
| data.items[].openInterestUsd | number | Open interest in USD. |
| data.items[].outcomes | object[] | Market outcomes with their current implied prices. |
| data.items[].outcomes[].name | string | Outcome label, e.g. Yes or No. |
| data.items[].outcomes[].price | number | Current implied probability price for the outcome (0 to 1). |
| data.items[].slug | string | URL slug of the market. |
| data.items[].spread | number | Difference between the best ask and the best bid. |
| data.items[].startsUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When trading opened. |
| data.items[].status | string | Market status, e.g. active or closed. |
| data.items[].tags | object[] | Polymarket topic tags for the event. |
| data.items[].tags[].name | string | Tag label, e.g. Politics. |
| data.items[].tags[].slug | string | Tag slug. |
| data.items[].title | string | The market question. Populated whenever the provider has data for the entity. |
| data.items[].updatedUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the market was last updated. |
| data.items[].url | string | Polymarket URL for the market event. Populated whenever the provider has data for the entity. |
| data.items[].volume1mUsd | number | Traded volume in USD over the past month. |
| data.items[].volume1wUsd | number | Traded volume in USD over the past week. |
| data.items[].volume24hUsd | number | Traded volume in USD over the past 24 hours. |
| data.items[].volumeUsd | number | Total traded volume in USD. |
| found | boolean | True when at least one market record was returned. |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição (teto) | USD | US$ 0,132 |
| Preço /mil resultados | USD | US$ 5,28 |
Dúvidas frequentes
Sobre o endpoint Mercados da API para Polymarket
O endpoint Mercados da AnyAPI para Polymarket retorna dados de Polymarket em JSON normalizado com uma chamada POST para /v1/run/polymarket.markets. Descubra mercados de previsão da Polymarket (pergunta, preços dos resultados, volume, liquidez e datas de encerramento) por palavra-chave ou ordenados por atividade, em JSON normalizado. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa US$ 5,28 por mil resultados, e nunca mais de US$ 0,132 por requisição, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Mercados da API para Polymarket feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 7,3 segundos, em 10 chamadas medidas.