Prerequisites
All API requests require authentication. Make sure you have:- Generated an API token from your account settings
- Include the token in the
Authorizationheader:Token YOUR_API_TOKEN
Binary Questions
Binary questions have yes/no outcomes. Submit a probability between 0 and 1.1
Get the question details
First, retrieve the question to get its ID and confirm it’s a binary question:
2
Submit your binary forecast
Submit a probability for the yes outcome:
Numeric Questions (Continuous)
Numeric questions require a 201-point CDF (Cumulative Distribution Function). For detailed guidance on generating CDFs, see the Continuous CDF Guide.1
Get the question scaling
Retrieve the question details to understand its range and scaling:
2
Generate a CDF
Create a 201-point CDF. This example shows a simple approach:
Python
For production use, see the Continuous CDF Guide for proper CDF generation that handles:
- Linear and logarithmic scaling
- Open and closed bounds
- Percentile-based distributions
- CDF standardization and validation
3
Submit your numeric forecast
Submit the CDF to the API:
Multiple Choice Questions
For multiple choice questions, provide probabilities for each option that sum to 1.0.Group of Questions
For posts containing multiple sub-questions, submit forecasts for each one:Withdrawing Forecasts
You can withdraw your current forecast on a question:Next Steps
- Learn how to fetch questions to find questions to forecast on
- Read the CDF generation guide for detailed numeric forecast creation
- Explore the full API reference for more endpoints
