Welcome to the Matchr API
The Matchr API provides programmatic access to our prediction market aggregation infrastructure. Access market data, execute trades, and build applications on top of unified prediction market data.API Status: Beta — We’re actively developing and improving our API. Breaking changes may occur.
What You Can Build
Trading Bots
Automate your prediction market strategies with programmatic trading.
Analytics Dashboards
Build custom visualizations and analysis tools.
AI Agents
Power autonomous trading agents with real-time market data.
Aggregator Apps
Create your own interfaces on top of Matchr data.
API Overview
Base URL
Available Endpoints
| Category | Endpoints | Description |
|---|---|---|
| Events | /events, /events/{id} | Market events and metadata |
| Markets | /markets, /markets/{id} | Individual markets within events |
| Prices | /prices/{id}, /prices/history | Current and historical prices |
| Matches | /matches, /matches/spreads | Cross-platform matched markets |
| Trading | /orders, /positions | Order submission and portfolio |
Quick Example
Fetch all prediction markets with Python:Rate Limits
| Tier | Requests/Minute | Requests/Day |
|---|---|---|
| Free | 60 | 10,000 |
| Pro | 300 | 100,000 |
| Enterprise | Unlimited | Unlimited |
Response Format
All responses follow a consistent format:Success Response
Error Response
HTTP Status Codes
| Code | Meaning |
|---|---|
200 | Success |
400 | Bad request (invalid parameters) |
401 | Unauthorized (invalid or missing API key) |
403 | Forbidden (insufficient permissions) |
404 | Not found |
429 | Rate limit exceeded |
500 | Internal server error |
SDKs
Official SDKs
JavaScript/TypeScript
Python
SDK Example
Webhooks
Subscribe to real-time events:Get Your API Key
1
Create Account
Sign up at matchr.xyz if you haven’t already.
2
Go to Settings
Navigate to Settings → API Keys.
3
Generate Key
Click “Create API Key” and save your secret key securely.
