Skip to content
GET /v1/search

Find markets by keyword

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/predictit-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/predictit-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/predictit-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/predictit-api/v1/search");
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/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "count": 20,
        "query": "president",
        "source": "PredictIt",
        "markets": [
            {
                "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": 8171,
                "url": "https://www.predictit.org/markets/detail/8171/Who-will-win-the-2028-US-presidential-election",
                "name": "Who will win the 2028 US presidential election?",
                "status": "Open",
                "short_name": "2028 US presidential election winner?",
                "contract_count": 13
            },
            {
                "id": 8181,
                "url": "https://www.predictit.org/markets/detail/8181/Which-party-will-win-the-2028-US-presidential-election",
                "name": "Which party will win the 2028 US presidential election?",
                "status": "Open",
                "short_name": "Which party wins the presidency in 2028?",
                "contract_count": 2
            },
            {
                "id": 8357,
                "url": "https://www.predictit.org/markets/detail/8357/Who-will-win-the-2028-Republican-presidential-primary-in-New-Hampshire",
                "name": "Who will win the 2028 Republican presidential primary in New Hampshire?",
                "status": "Open",
                "short_name": "2028 NH Primary Winner?",
                "contract_count": 9
            },
            {
                "id": 8373,
                "url": "https://www.predictit.org/markets/detail/8373/Who-will-win-the-2026-Peruvian-presidential-election",
                "name": "Who will win the 2026 Peruvian presidential election?",
                "status": "Open",
                "short_name": "Peru presidential election winner?",
                "contract_count": 16
            },
            {
                "id": 8495,
                "url": "https://www.predictit.org/markets/detail/8495/Who-will-win-the-2026-Colombian-presidential-election",
                "name": "Who will win the 2026 Colombian presidential election?",
                "status": "Open",
                "short_name": "Colombia presidential election winner?",
                "contract_count": 11
            },
         
…