The Forecasting Company Logo

Forecast any time series.

Forecasting APIPython · REST

Forecast from your code

Call t0-gamma, our latest model, or any open-source model we host.

Python
import os import requests response = requests.post( "https://api.retrocast.com/forecast?model=t0-gamma", headers={"Authorization": f"Bearer {os.environ['TFC_API_KEY']}"}, json={ "series": [{ "index": ["2024-01-01", "2024-01-02", "2024-01-03", "2024-01-04"], "target": [125, 120, 140, 135], }], "horizon": 3, "freq": "D", }, ) response.raise_for_status() print(response.json()["series"][0][0]["prediction"]["mean"])
RetrocastNo code

Forecast in your browser

Upload your data, compare models on your own history and forecast.