Skip to main content
This guide shows you how to submit forecasts for different question types using the Metaculus API.

Prerequisites

All API requests require authentication. Make sure you have:
  1. Generated an API token from your account settings
  2. Include the token in the Authorization header: 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.
The probabilities must sum to exactly 1.0, or the API will reject your forecast.

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