API para Polymarket

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.

POST/v1/run/polymarket.markets
Disponibilidade
100,00%
30d · 10 chamadas
Requisições
12
30d · semanal, últimas 12 sem.
Resposta
7,3s
mediana · 30d

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())
Abrir em
Obter chave grátis
Resposta de exemplo
{
  "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 da resposta
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 30d
POST /v1/run/polymarket.markets
curl -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"}'
CampoTipoValor de exemplo
Corpo da requisição
querystring"election"Termo de busca para mercados (ex.: election, bitcoin, super bowl).
limitinteger10Nú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.
sortByenumComo os mercados encontrados são ordenados antes de os resultados serem retornados (ex.: volume_24hr para o momento recente).
statusenumRetorna mercados "active" para preços e volume atuais, ou mercados "resolved" para resultados históricos.
Resposta
dataobjectThe result wrapper, or null when nothing was found.
data.itemsobject[]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[].bestAsknumberBest ask currently on the order book (0 to 1).
data.items[].bestBidnumberBest bid currently on the order book (0 to 1).
data.items[].commentCountintegerNumber of comments on the event.
data.items[].conditionIdstringOn-chain condition identifier for the market.
data.items[].createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the market was created.
data.items[].descriptionstringResolution rules for the market.
data.items[].endsUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the market resolves/ends.
data.items[].eventIdstringIdentifier of the parent event grouping this market.
data.items[].eventTitlestringTitle of the parent event grouping this market.
data.items[].idstringPolymarket market identifier. Populated whenever the provider has data for the entity.
data.items[].imagestringEvent image URL.
data.items[].lastTradePricenumberPrice of the most recent trade (0 to 1).
data.items[].liquidityUsdnumberAvailable liquidity in USD.
data.items[].openInterestUsdnumberOpen interest in USD.
data.items[].outcomesobject[]Market outcomes with their current implied prices.
data.items[].outcomes[].namestringOutcome label, e.g. Yes or No.
data.items[].outcomes[].pricenumberCurrent implied probability price for the outcome (0 to 1).
data.items[].slugstringURL slug of the market.
data.items[].spreadnumberDifference between the best ask and the best bid.
data.items[].startsUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When trading opened.
data.items[].statusstringMarket status, e.g. active or closed.
data.items[].tagsobject[]Polymarket topic tags for the event.
data.items[].tags[].namestringTag label, e.g. Politics.
data.items[].tags[].slugstringTag slug.
data.items[].titlestringThe market question. Populated whenever the provider has data for the entity.
data.items[].updatedUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the market was last updated.
data.items[].urlstringPolymarket URL for the market event. Populated whenever the provider has data for the entity.
data.items[].volume1mUsdnumberTraded volume in USD over the past month.
data.items[].volume1wUsdnumberTraded volume in USD over the past week.
data.items[].volume24hUsdnumberTraded volume in USD over the past 24 hours.
data.items[].volumeUsdnumberTotal traded volume in USD.
foundbooleanTrue 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)USDUS$ 0,132
Preço /mil resultadosUSDUS$ 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.

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. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

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 resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

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. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.