---
title: "Forecast"
method: POST
path: "/api/v1/data/economic/forecast"
tags: ["Economic Data"]
---

# Forecast

`POST /api/v1/data/economic/forecast`

## Request

- Base URL: `https://www.deepmapai.com`
- URL: `https://www.deepmapai.com/api/v1/data/economic/forecast`
- Auth: none declared

Generate ML forecast with anomaly detection for a series.

Uses Holt's double exponential smoothing for forecasting and
rolling z-score for anomaly detection.

The forecast includes predicted values, confidence intervals,
and flagged anomalies in the historical data.

**Pricing:** Included in subscription tiers (legacy list price: GET /api/v1/billing/pricing).

## Query parameters

- `x_api_key` string, nullable

## Request body

- EconomicDataRouterForecastRequest
  - `series_id` string, required: FRED or BLS series ID
  - `horizon` integer: Forecast periods
  - `anomaly_threshold` number: Z-score threshold
  - `observation_start` string, nullable: Start date (YYYY-MM-DD)

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deepmapai/apis/deepmap-ai.md) · [All operations](https://skmtc.dev/deepmapai/apis/deepmap-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/deepmapai/apis/deepmap-ai/revisions/dab995d977d0?raw)
