Welcome to the Tremor API
The Tremor API provides programmatic access to prediction market data from Polymarket and Kalshi. Query historical snapshots, track market movements, and build custom analytics with our REST API.Get Your API Key
Generate an API key from your Tremor dashboard
Base URL
All API requests should be made to:Authentication
All API endpoints require authentication using Bearer tokens. Include your API key in theAuthorization header:
Available Endpoints
Queries
POST /api/query- Execute SQL queries against Tremor dataPOST /api/query/validate- Validate SQL syntax without executionGET /api/query/{query_id}/stats- Get execution statistics for a saved queryGET /api/queries/stats- List analytics for all saved queries
Metadata & Schema
GET /api/tables- List all available tables and namespacesGET /api/table/{namespace}/{table}- Get schema for a specific tableGET /api/table/{namespace}/{table}/sample- Retrieve sample rows from a tableGET /api/table/{namespace}/{table}/stats- Get column-level statistics
Search & AI
POST /api/markets/semantic-search- Find markets using natural languagePOST /api/assistant/generate/stream- Generate SQL from natural language (SSE streaming)
Sync Monitoring
GET /api/sync/status- Current sync status and recent runsGET /api/sync/history- Historical sync execution logsGET /api/sync/metrics- Aggregated sync performance metrics
API Key Management
POST /api/keys/create- Create a new API keyGET /api/keys/list- List your API keysDELETE /api/keys/{key_id}- Revoke an API key
Rate Limits
- Query endpoints: 30 requests per minute
- Metadata endpoints: 60 requests per minute
- Sync monitoring: 60 requests per minute
- API key management: 30 requests per minute
- AI Assistant: 20 requests per minute
429 Too Many Requests response, pause briefly before retrying.
Response Format
All API responses are returned in JSON format:Error Handling
API errors return standard HTTP status codes with descriptive error messages:Invalid query syntax or parameters
Missing or invalid API key
Server error - please retry or contact support
Quick Example
Here’s a complete example of querying the top 10 markets by volume:Available Data
polymarket_events
Decentralized prediction market data with probabilities, volume, and liquidity
kalshi_events
CFTC-regulated prediction market data with settlement information
Need Help?
Support
Contact our team at [email protected]