/v1/markets
Every open market with question and contracts
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/predictit-api/v1/markets" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/predictit-api/v1/markets", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/predictit-api/v1/markets");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/predictit-api/v1/markets",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"count": 249,
"source": "PredictIt",
"markets": [
{
"id": 7589,
"url": "https://www.predictit.org/markets/detail/7589/How-many-House-seats-will-Republicans-win-in-the-2026-midterm-election",
"name": "How many House seats will Republicans win in the 2026 midterm election?",
"status": "Open",
"short_name": "Republican House Seats won in midterms?",
"contract_count": 11
},
{
"id": 8152,
"url": "https://www.predictit.org/markets/detail/8152/Who-will-win-the-2028-Republican-presidential-nomination",
"name": "Who will win the 2028 Republican presidential nomination?",
"status": "Open",
"short_name": "Republican presidential nominee in 2028?",
"contract_count": 14
},
{
"id": 8153,
"url": "https://www.predictit.org/markets/detail/8153/Who-will-win-the-2028-Democratic-presidential-nomination",
"name": "Who will win the 2028 Democratic presidential nomination?",
"status": "Open",
"short_name": "Democratic presidential nominee in 2028?",
"contract_count": 17
},
{
"id": 8155,
"url": "https://www.predictit.org/markets/detail/8155/Which-party-will-control-the-Senate-after-the-2026-election",
"name": "Which party will control the Senate after the 2026 election?",
"status": "Open",
"short_name": "Who will control the Senate after 2026?",
"contract_count": 2
},
{
"id": 8156,
"url": "https://www.predictit.org/markets/detail/8156/Which-party-will-win-the-2026-US-Senate-election-in-Georgia",
"name": "Which party will win the 2026 US Senate election in Georgia?",
"status": "Open",
"short_name": "Georgia Senate party winner?",
"contract_count": 2
},
{
"id": 8157,
"url": "https://www.predictit.org/markets/detail/8157/Which-party-will-win-the-House-in-the-2026-election",
"name": "Which party will win the House in the 2026 election?",
"status": "Open",
"short_name": "Which party will win the House in 2026?",
"contract_count": 2
},
{
"id": 8158,
"url": "https://www.predictit.org/markets/detail/8158/Which-party-will-win-the-2026-US-Senate-election-in-Michigan",
"name": "Which party will win the 2026 US Senate election in Michigan?",
"status": "Open",
"short_name": "Michigan Senate party winner?",
"contract_count": 2
…