Getting Started
Quick Start
Get an API key and make your first call
1. Get your API key
Sign in with Google on the dashboard and click Create API key. Copy it right away, because it is only shown once. If you lose it, regenerate it from the same page. See Authentication for details.
2. Search markets
curl -s "https://api.predictionrouter.keronlabs.com/v1/markets?platform=polymarket&q=election&limit=3" \
-H "Authorization: Bearer YOUR_API_KEY"Response:
{
"markets": [
{
"id": "540817",
"platform": "polymarket",
"title": "Will the 2028 US election...",
"outcomes": [
{ "id": "0", "label": "Yes", "probability": 0.62, "price": 0.62 },
{ "id": "1", "label": "No", "probability": 0.38, "price": 0.38 }
],
"status": "open",
"volume": 15000,
"url": "https://polymarket.com/event/..."
}
]
}3. Ask Kalshi the same question
Change platform and nothing else. The response has the same fields.
curl -s "https://api.predictionrouter.keronlabs.com/v1/markets?platform=kalshi&status=open&limit=3" \
-H "Authorization: Bearer YOUR_API_KEY"4. Fetch one market and its trades
curl -s "https://api.predictionrouter.keronlabs.com/v1/markets/KXFED-0325?platform=kalshi" \
-H "Authorization: Bearer YOUR_API_KEY"
curl -s "https://api.predictionrouter.keronlabs.com/v1/markets/KXFED-0325/trades?platform=kalshi&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"From here, see the API Reference for events, series, sports and user trades.