---
title: "Forecast Endpoint"
method: GET
path: "/api/v1/forecast/{indicator_id}/{country_code}"
tags: ["Forecasting"]
---

# Forecast Endpoint

`GET /api/v1/forecast/{indicator_id}/{country_code}`

## Request

- Base URL: `https://api.africadb.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.africadb.com/api/v1/forecast/{indicator_id}/{country_code}`
- Auth: none declared

Get forecast/projection for an indicator in a specific country.

## Path parameters

- `indicator_id` string, required
- `country_code` string, required

## Query parameters

- `method` string: Forecast method: linear, exponential, imf_weo
- `years_ahead` integer: Number of years to forecast

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/africadb/apis/africa-data-bank-api.md) · [All operations](https://skmtc.dev/africadb/apis/africa-data-bank-api/llms.txt) · [OpenAPI document](https://skmtc.dev/africadb/apis/africa-data-bank-api/revisions/2a50da82945b?raw)
