Eymdeyy/tsfa-forecasting-api
TSFA — Time Series Forecasting API
Predict future values with calibrated confidence intervals via a simple REST API.
TSFA handles the full forecasting pipeline: automatic preprocessing, model selection, uncertainty quantification, and diagnostics — no ML expertise required.
Available on RapidAPI
🚀 [Try the API on RapidAPI](https://rapidapi.com/dorianmrt/api/tsfa)
Free tier available. No credit card required to start.
Quick Start
import requests
resp = requests.post(
"https://tsfa.p.rapidapi.com/v1/forecast/univariate",
headers={
"X-RapidAPI-Key": "YOUR_KEY",
"X-RapidAPI-Host": "tsfa.p.rapidapi.com",
},
json={
"series": [120, 132, 128, 145, 139, 152, 148, 160, 155, 168],
"horizon": 7,
"model": "auto",
},
)
print(resp.json()["forecast"]["mean"])
# [171.2, 174.5, 177.8, 181.0, 184.3, 187.6, 190.8]Use Cases
Retail demand forecast — 14-day ahead with 80% and 95% confidence intervals
EUR/USD exchange rate forecast — 30-day ahead with 95% probability band
Energy consumption forecast — 48h ahead (ETT-h1 real data)
Models
Benchmarks
Evaluated via sliding-window backtesting (5 windows) on public datasets.
Datasets: ETT-h1 (electricity transformer temperature), Exchange Rate (8 currencies), M5 (retail sales). All results are out-of-sample.
Endpoints
Plans
License
MIT — see GitHub
