FutureSearch Python SDK

Forecast what will happen, including outcomes of your decisions.
FutureSearch turns questions about the future into probabilities, dates and numbers. Ask about the world ("When will Anthropic IPO?"), or about a decision ("If we give this organization nothing, $250k or $1M, how many lawmakers back its campaign by 2028?") and get predicted outcomes for each option. The decision can be yours or someone else's: a company's, a government's, a public figure's.
Accuracy is verifiable via our public track record on stocks, prediction markets, public benchmarks, and forecasting tournaments, including live standings on Metaculus, against human forecasters in the Metaculus Cup, on ForecastBench and on BTF-3, our pastcasting benchmark. Every forecast draws on a shared world model that reconciles related questions against each other. It is on by default; pass world_model="account" to use only your own forecasts, or world_model="off" to keep each forecast independent.
| Track Record | |
|---|
| markets.futuresearch.ai | Live trading on Kalshi, Polymarket, and the S&P 500. Every position, including the losers. |
| evals.futuresearch.ai | Benchmarks: Bench To the Future, Deep Research Bench, and live forecasting tournament standings (Metaculus, ForecastBench). |
Try it in the app, or connect it to the assistant you already use: Claude.ai, Claude Code, or Gemini, Codex and others. Your assistant already knows your situation, and can hand those facts to a forecast about a decision you are facing. Or use this Python SDK directly.
Installation
The Python SDK installs from PyPI and requires Python 3.12+. Requires an API key, get one at futuresearch.ai/app/api-key.
pip install futuresearch
Note: The everyrow package still works but is deprecated. Please migrate to futuresearch.
For an assistant, the MCP server is hosted at https://mcp.futuresearch.ai/mcp. Connect your assistant below has the steps for Claude.ai, Claude Code, Gemini CLI, Codex CLI and Cursor.
Forecasting
Ask what will happen, including the outcomes of your decisions. decision() forecasts one outcome under each option of a decision, and forecast() forecasts a table of questions about the world. Both return a rationale column explaining each answer.
Effort level is "LOW" or "HIGH", and defaults to high. Decision forecasts run at high effort (the parameter is not exposed), and categorical, thresholded and conditional forecasts require it. See pricing for current costs.
Forecast a decision
Give decision() the outcome you care about, a column listing the options, and what it cannot look up.
import asyncio
from pandas import DataFrame
from futuresearch.ops import decision
async def main():
result = await decision(
input=DataFrame([
{
"question": "How many sitting parliamentarians will be listed on ControlAI's campaign statement on December 31, 2028?",
"grant": ["$0 (no grant)", "$250k", "$1M"],
},
]),
context=(
"We are a family foundation deciding this quarter how much to give ControlAI. "
"The gift would be unrestricted and announced publicly, and no other funder is "
"waiting on our decision."
),
alternatives_field="grant",
forecast_type="numeric",
output_field="parliamentarians",
units="parliamentarians",
)
print(result.data[["question", "percentiles", "rationale"]])
asyncio.run(main())