Skip to main content
Choose your access method and get working code in 2 minutes.

REST API

Query prediction market data via HTTP with simple authentication.

Setup (1 min)

Step 1: Click “Create API Key”

Go to app.probalytics.io → API Keys section
Click Create API Key

Step 2: Enter Credential Name

Give your key a name (e.g., “trading-bot”, “research”)
Enter API Credentials Name

Step 3: Copy API Key ID and API Key Secret

Copy both the API Key ID and API Key Secret from the dashboard.
Copy API Credentials
Keep your API Key Secret secure. Never commit it to git or expose it publicly.

Make Your First Request

Concatenate API Key ID and API Key Secret with a colon in the Authorization header:
Authorization: Bearer API_KEY_ID:API_KEY_SECRET
import requests

API_KEY_ID = "api_brave_cosmic_falcon"
API_KEY_SECRET = "sk_life_AbCdEfGh..."
API_KEY = f"{API_KEY_ID}:{API_KEY_SECRET}"

headers = {"Authorization": f"Bearer {API_KEY}"}

response = requests.get(
    "https://api.probalytics.io/api/v1/markets",
    headers=headers
)

markets = response.json()
print(f"Found {len(markets)} markets")
See REST API Reference for:
  • All endpoints (GET /markets, GET /trades)
  • Query parameters & filtering
  • Complete response examples
  • Other languages (cURL, JavaScript, Go, TypeScript)

Which Method Should I Use?

REST API
  • ✓ Real-time data access
  • ✓ Simple to integrate
  • ✓ Good for production applications
  • ✗ Limited query flexibility
SQL (ClickHouse)
  • ✓ Complex queries and analytics
  • ✓ Aggregations and joins
  • ✓ Full historical data (Pro tier+)
  • ✓ Super fast analytics

Next Steps

REST API

All endpoints with interactive documentation

SQL Guide

Tables, schemas, query templates

Tutorials

Real-world examples

Common Patterns

Copy-paste recipes