# Forecasts for Economic Indicators

> Use the following API endpoints to obtain forecast data for economic indicators.

Source: https://docs.tradingeconomics.com/forecasts/indicators/

Trading Economics forecasts are built using a proprietary global macro model that takes into account our analysts’ expectations, correlations between countries, and a set of logical relationships between different indicators.

## By country

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/forecast/country/mexico,sweden?c={your_api_key}'
data = requests.get(url).json()
print(data)
```
*Or using our package:*
```python
import tradingeconomics as te
te.login('your_api_key')
te.getForecastData(country='mexico')
```

*With multi countries:*
```python
te.getForecastData(country= ['mexico', 'sweden' ])
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/forecast/country/mexico,sweden?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getForecasts(country = 'mexico').then(function(data){
    console.log(data)     
});
```

*With multi countries:*
```javascript
data = te.getForecasts(country = ['mexico','sweden']).then(function(data){
    console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/forecast/country/mexico?c=your_api_key"))
    {
        request.Headers.TryAddWithoutValidation("Upgrade-Insecure-Requests", "1");
        var response = await httpClient.SendAsync(request);
        if (response.IsSuccessStatusCode)
        {
            var content = await response.Content.ReadAsStringAsync(); 
            Console.WriteLine(content);
        }
    }
}
```

*With multi countries:*
```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/forecast/country/mexico,sweden?c=your_api_key");
```

The response data format can be configured by appending the **&f=** parameter to the URL request.

**JSON**
```text
https://api.tradingeconomics.com/forecast/country/{countries}?c={your_api_key}&f=json
```
```json
[
  {
    "Country": "Mexico",
    "Category": "Auto Exports",
    "Title": "Mexico Auto Exports",
    "LatestValue": 301.34,
    "LatestValueDate": "2023-09-30T00:00:00",
    "q1": 256.0,
    "q2": 272.0,
    "q3": 255.0,
    "q4": 245.0,
    "YearEnd": 256.0,
    "YearEnd2": 242.0,
    "YearEnd3": 232.0,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Monthly",
    "Unit": "Thousand Units",
    "HistoricalDataSymbol": "MEXICOAUTEXP"
  },
  {
    "Country": "Mexico",
    "Category": "Balance of Trade",
    "Title": "Mexico Balance of Trade",
    "LatestValue": -1377.09,
    "LatestValueDate": "2023-08-31T00:00:00",
    "q1": 1379.0,
    "q2": 1104.0,
    "q3": -2330.0,
    "q4": -2330.0,
    "YearEnd": 1379.0,
    "YearEnd2": 1691.0,
    "YearEnd3": 407.0,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Monthly",
    "Unit": "USD Million",
    "HistoricalDataSymbol": "MXTBBAL"
  },
  {
    "Country": "Sweden",
    "Category": "Balance of Trade",
    "Title": "Sweden Balance of Trade",
    "LatestValue": -8400.0,
    "LatestValueDate": "2023-08-31T00:00:00",
    "q1": -2600.0,
    "q2": 5900.0,
    "q3": 14700.0,
    "q4": 5300.0,
    "YearEnd": -2600.0,
    "YearEnd2": -2000.0,
    "YearEnd3": -2800.0,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Monthly",
    "Unit": "SEK Million",
    "HistoricalDataSymbol": "SWTBAL"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/forecast/country/{countries}?c={your_api_key}&f=csv
```
```bash
Category,Title,LatestValue,LatestValueDate,q1,q2,q3,q4,YearEnd,YearEnd2,YearEnd3,q1_date,q2_date,q3_date,q4_date,ForecastLastUpdate,Frequency,Unit,HistoricalDataSymbol
Auto Exports,Mexico Auto Exports,301.34,9/30/2023 12:00:00 AM,256.00,272.00,255.00,245.00,256.00,242.00,232.00,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Monthly,Thousand Units,MEXICOAUTEXP
Balance of Trade,Mexico Balance of Trade,-1377.09,8/31/2023 12:00:00 AM,1379.00,1104.00,-2330.00,-2330.00,1379.00,1691.00,407.00,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Monthly,USD Million,MXTBBAL
Balance of Trade,Sweden Balance of Trade,-8400.00,8/31/2023 12:00:00 AM,-2600.00,5900.00,14700.00,5300.00,-2600.00,-2000.00,-2800.00,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Monthly,SEK Million,SWTBAL
```

**HTML**
```text
https://api.tradingeconomics.com/forecast/country/{countries}?c={your_api_key}
```

| Category | Title | LatestValue | LatestValueDate | ForecastValue1Q | ForecastValue2Q | ForecastValue3Q | ForecastValue4Q | ForecastValue1 | ForecastValue2 | ForecastValue3 | q1_date | q2_date | q3_date | q4_date | ForecastLastUpdate | Frequency | Unit | HistoricalDataSymbol |
|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
| Auto Exports | Mexico Auto Exports | 286.29 | 6/30/2023 12:00:00 AM | 269.00 | 256.00 | 272.00 | 255.00 | 256.00 | 242.00 | 232.00 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Monthly | Thousand Units | MEXICOAUTEXP |
| Balance of Trade | Mexico Balance of Trade | -74.09 | 5/31/2023 12:00:00 AM | -713.00 | 1379.00 | 1104.00 | -2330.00 | 1379.00 | 1691.00 | 407.00 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Monthly | USD Million | MXTBBAL |
| Balance of Trade | Sweden Balance of Trade | -300.00 | 5/31/2023 12:00:00 AM | -1700.00 | -2600.00 | 900.00 | 4700.00 | -2600.00 | -2000.00 | -2800.00 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Monthly	| SEK Million | SWTBAL |

## By indicator

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/forecast/indicator/gdp,population?c={your_api_key}'
data = requests.get(url).json()
print(data)
```
*Or using our package:*
```python
te.getForecastData(indicator= 'gdp')
```

*With multi indicators:*
```python
te.getForecastData(indicator= ['gdp', 'population'])
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/forecast/indicator/gdp,population?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getForecasts(indicator = 'gdp').then(function(data){
    console.log(data)     
});
```

*With multi indicators:*
```javascript
data = te.getForecasts(indicator = ['gdp','population']).then(function(data){
    console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/forecast/indicator/gdp?c=your_api_key");
```

*With multi indicators:*
```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/forecast/indicator/gdp,population?c=your_api_key");
```

**JSON**
```text
https://api.tradingeconomics.com/forecast/indicator/{indicators}?c={your_api_key}&f=json
```
```json
[
  {
    "Country": "Afghanistan",
    "Category": "GDP",
    "Title": "Afghanistan GDP",
    "LatestValue": 14.58,
    "LatestValueDate": "2021-12-31T00:00:00",
    "q1": null,
    "q2": null,
    "q3": null,
    "q4": null,
    "YearEnd": 14.03,
    "YearEnd2": 13.66,
    "YearEnd3": 14.0,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Yearly",
    "Unit": "USD Billion",
    "HistoricalDataSymbol": "AFGSTANGDP"
  },
  {
    "Country": "Afghanistan",
    "Category": "Population",
    "Title": "Afghanistan Population",
    "LatestValue": 34.3,
    "LatestValueDate": "2022-12-31T00:00:00",
    "q1": null,
    "q2": null,
    "q3": null,
    "q4": null,
    "YearEnd": 33.4,
    "YearEnd2": 32.8,
    "YearEnd3": 32.3,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Yearly",
    "Unit": "Million",
    "HistoricalDataSymbol": "AFGSTANPOPLATION"
  },
  {
    "Country": "Albania",
    "Category": "GDP",
    "Title": "Albania GDP",
    "LatestValue": 18.88,
    "LatestValueDate": "2022-12-31T00:00:00",
    "q1": null,
    "q2": null,
    "q3": null,
    "q4": null,
    "YearEnd": 19.37,
    "YearEnd2": 19.99,
    "YearEnd3": 20.59,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Yearly",
    "Unit": "USD Billion",
    "HistoricalDataSymbol": "ALBANIAGDP"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/forecast/indicator/{indicators}?c={your_api_key}&f=csv
```
```bash
Category,Title,LatestValue,LatestValueDate,q1,q2,q3,q4,YearEnd,YearEnd2,YearEnd3,q1_date,q2_date,q3_date,q4_date,ForecastLastUpdate,Frequency,Unit,HistoricalDataSymbol
GDP,Afghanistan GDP,14.58,12/31/2021 12:00:00 AM,,,,,14.03,13.66,14.00,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Yearly,USD Billion,AFGSTANGDP
Population,Afghanistan Population,34.30,12/31/2022 12:00:00 AM,,,,,33.40,32.80,32.30,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Yearly,Million,AFGSTANPOPLATION
GDP,Albania GDP,18.88,12/31/2022 12:00:00 AM,,,,,19.37,19.99,20.59,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Yearly,USD Billion,ALBANIAGDP
```

**HTML**
```text
https://api.tradingeconomics.com/forecast/indicator/{indicators}?c={your_api_key}
```

| Category | Title | LatestValue | LatestValueDate | ForecastValue1Q | ForecastValue2Q | ForecastValue3Q | ForecastValue4Q | ForecastValue1 | ForecastValue2 | ForecastValue3 | q1_date | q2_date | q3_date | q4_date | ForecastLastUpdate | Frequency | Unit | HistoricalDataSymbol |
|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
| GDP | Afghanistan GDP | 14.58 | 12/31/2021 12:00:00 AM | | | | | 14.03 | 13.66 | 14.00 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Yearly | USD Billion | AFGSTANGDP |
| Population | Afghanistan Population | 34.30 | 12/31/2022 12:00:00 AM | | | | | 33.40 | 32.80 | 32.30 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Yearly | Million | AFGSTANPOPLATION |
| GDP | Albania GDP | 18.88 | 12/31/2022 12:00:00 AM | | | | | 19.37 | 20.05 | 20.65 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Yearly | USD Billion | ALBANIAGDP |

## By country and indicator

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/forecast/country/mexico,sweden/indicator/gdp,population?c={your_api_key}'
data = requests.get(url).json()
print(data)
```
*Or using our package:*
```python
te.getForecastData(country= ['mexico','sweden'],
 indicator= ['gdp','population'])
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/forecast/country/mexico,sweden/indicator/gdp,population?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getForecasts(country = ['mexico','sweden'],
 indicator = ['gdp','population']).then(function(data){
    console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/forecast/country/mexico,sweden/indicator/gdp,population?c=your_api_key");
```

**JSON**
```text
https://api.tradingeconomics.com/forecast/country/{countries}/indicator/{indicators}?c={your_api_key}&f=json
```
```json
[
  {
    "Country": "Mexico",
    "Category": "GDP",
    "Title": "Mexico GDP",
    "LatestValue": 1414.19,
    "LatestValueDate": "2022-12-31T00:00:00",
    "q1": null,
    "q2": null,
    "q3": null,
    "q4": null,
    "YearEnd": 1447.0,
    "YearEnd2": 1470.0,
    "YearEnd3": 1496.0,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Yearly",
    "Unit": "USD Billion",
    "HistoricalDataSymbol": "WGDPMEXI"
  },
  {
    "Country": "Sweden",
    "Category": "GDP",
    "Title": "Sweden GDP",
    "LatestValue": 585.94,
    "LatestValueDate": "2022-12-31T00:00:00",
    "q1": null,
    "q2": null,
    "q3": null,
    "q4": null,
    "YearEnd": 581.84,
    "YearEnd2": 581.26,
    "YearEnd3": 592.3,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Yearly",
    "Unit": "USD Billion",
    "HistoricalDataSymbol": "WGDPSWED"
  },
  {
    "Country": "Mexico",
    "Category": "Population",
    "Title": "Mexico Population",
    "LatestValue": 129.0,
    "LatestValueDate": "2022-12-31T00:00:00",
    "q1": null,
    "q2": null,
    "q3": null,
    "q4": null,
    "YearEnd": 126.6,
    "YearEnd2": 126.8,
    "YearEnd3": 127.1,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Yearly",
    "Unit": "Million",
    "HistoricalDataSymbol": "MEX SP.POP.TOTL"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/forecast/country/{countries}/indicator/{indicators}?c={your_api_key}&f=csv
```
```bash
Category,Title,LatestValue,LatestValueDate,q1,q2,q3,q4,YearEnd,YearEnd2,YearEnd3,q1_date,q2_date,q3_date,q4_date,ForecastLastUpdate,Frequency,Unit,HistoricalDataSymbol
GDP,Mexico GDP,1414.19,12/31/2022 12:00:00 AM,,,,,1447.00,1470.00,1496.00,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Yearly,USD Billion,WGDPMEXI
GDP,Sweden GDP,585.94,12/31/2022 12:00:00 AM,,,,,581.84,581.26,592.30,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Yearly,USD Billion,WGDPSWED
Population,Mexico Population,129.00,12/31/2022 12:00:00 AM,,,,,126.60,126.80,127.10,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,9/30/2024 12:00:00 AM,Yearly,Million,MEX SP.POP.TOTL
```

**HTML**
```text
https://api.tradingeconomics.com/forecast/country/{countries}/indicator/{indicators}?c={your_api_key}
```

| Category | Title | LatestValue | LatestValueDate | ForecastValue1Q | ForecastValue2Q | ForecastValue3Q | ForecastValue4Q | ForecastValue1 | ForecastValue2 | ForecastValue3 | q1_date | q2_date | q3_date | q4_date | ForecastLastUpdate | Frequency | Unit | HistoricalDataSymbol |
|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
| GDP | Mexico GDP | 1414.19 | 12/31/2022 12:00:00 AM | | | | | 1450.00 | 1473.00 | 1499.00 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Yearly | USD Billion | WGDPMEXI |
| GDP | Sweden GDP | 585.94 | 12/31/2022 12:00:00 AM | | | | | 583.60 | 588.85 | 604.16 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Yearly | USD Billion | WGDPSWED |
| Population | Mexico Population | 129.00 | 12/31/2022 12:00:00 AM | | | | | 126.60 | 126.80 | 127.10 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Yearly | Million | MEX SP.POP.TOTL |

## By ticker

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/forecast/ticker/usurtot,wgdpchin?c={your_api_key}'
data = requests.get(url).json()
print(data)
```
*Or using our package:*
```python
te.getForecastByTicker(ticker= 'usurtot')
```

*With multi tickers:*
```python
te.getForecastByTicker(ticker= ['usurtot', 'wgdpchin'])
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/forecast/ticker/usurtot,wgdpchin?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getForecasts(ticker = 'usurtot').then(function(data){
    console.log(data)     
});
```

*With multi tickers:*
```javascript
data = te.getForecasts(ticker = ['usurtot','wgdpchin']).then(function(data){
    console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/forecast/ticker/usurtot?c=your_api_key");
```

*With multi tickers:*
```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/forecast/ticker/usurtot,wgdpchin?c=your_api_key");
```

**JSON**
```text
https://api.tradingeconomics.com/forecast/ticker/{tickers}?c={your_api_key}&f=json
```
```json
[
  {
    "Country": "United States",
    "Category": "Unemployment Rate",
    "Title": "United States Unemployment Rate",
    "LatestValue": 3.8,
    "LatestValueDate": "2023-09-30T00:00:00",
    "q1": 4.0,
    "q2": 4.3,
    "q3": 4.5,
    "q4": 4.5,
    "YearEnd": 4.0,
    "YearEnd2": 4.6,
    "YearEnd3": null,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Monthly",
    "Unit": "percent",
    "HistoricalDataSymbol": "USURTOT"
  },
  {
    "Country": "China",
    "Category": "GDP",
    "Title": "China GDP",
    "LatestValue": 17963.17,
    "LatestValueDate": "2022-12-31T00:00:00",
    "q1": null,
    "q2": null,
    "q3": null,
    "q4": null,
    "YearEnd": 18772.0,
    "YearEnd2": 19616.0,
    "YearEnd3": 20636.0,
    "q1_date": "2023-12-31T00:00:00",
    "q2_date": "2024-03-31T00:00:00",
    "q3_date": "2024-06-30T00:00:00",
    "q4_date": "2024-09-30T00:00:00",
    "ForecastLastUpdate": "2023-10-01T15:33:00",
    "Frequency": "Yearly",
    "Unit": "USD Billion",
    "HistoricalDataSymbol": "WGDPCHIN"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/forecast/ticker/{tickers}?c={your_api_key}&f=csv
```
```bash
Category,Title,LatestValue,LatestValueDate,q1,q2,q3,q4,YearEnd,YearEnd2,YearEnd3,q1_date,q2_date,q3_date,q4_date,ForecastLastUpdate,Frequency,Unit,HistoricalDataSymbol
Unemployment Rate,United States Unemployment Rate,3.80,9/30/2023 12:00:00 AM,4.00,4.30,4.50,4.50,4.00,4.60,,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Monthly,percent,USURTOT
GDP,China GDP,17963.17,12/31/2022 12:00:00 AM,,,,,18772.00,19616.00,20636.00,12/31/2023 12:00:00 AM,3/31/2024 12:00:00 AM,6/30/2024 12:00:00 AM,9/30/2024 12:00:00 AM,9/30/2023 12:00:00 AM,Yearly,USD Billion,WGDPCHIN
```

**HTML**
```text
https://api.tradingeconomics.com/forecast/ticker/{tickers}?c={your_api_key}
```

| Category | Title | LatestValue | LatestValueDate | ForecastValue1Q | ForecastValue2Q | ForecastValue3Q | ForecastValue4Q | ForecastValue1 | ForecastValue2 | ForecastValue3 | q1_date | q2_date | q3_date | q4_date | ForecastLastUpdate | Frequency | Unit | HistoricalDataSymbol |
|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
| Unemployment Rate | United States Unemployment Rate | 3.60 | 6/30/2023 12:00:00 AM | 3.80 | 4.00 | 4.30 | 4.50 | 4.00 | 4.60 | | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Monthly | percent | USURTOT |
| GDP | China GDP | 17963.17 | 12/31/2022 12:00:00 AM | | | | | 18879.00 | 20012.00 | 21253.00 | 9/30/2023 12:00:00 AM | 12/31/2023 12:00:00 AM | 3/31/2024 12:00:00 AM | 6/30/2024 12:00:00 AM | 9/30/2023 12:00:00 AM | Yearly | USD Billion | WGDPCHIN |

## Response fields

| Field                | Type   | Description                                                          | Example               |
| ---------------------| -------|----------------------------------------------------------------------|-----------------------|
| Country*             | string | Name of the country associated with the indicator.                   | "Mexico"              |
| Category             | string | Name of the economic indicator.                                      | "Auto Exports"        |
| Title	               | string | Combination of country and indicator name.                           | "Mexico Auto Exports" |
| LatestValue	       | number | Most recently released actual value.                                 | 272.69                |
| LatestValueDate      | string | Date of the last actual value release.                               | "2023-03-31T00:00:00" |
| q1**                 | number | Forecast for the next quarter.                                       | 257.00                |
| q2**                 | number | Forecast for the quarter following ForecastValue1Q.                  | 250.00                |
| q3**                 | number | Forecast for the quarter following ForecastValue2Q.                  | 239.00                |
| q4**                 | number | Forecast for the quarter following ForecastValue3Q.                  | 274.00                |
| YearEnd**            | number | Forecast for the current year-end.                                   | 239.00                |
| YearEnd2**           | number | Forecast for the next year-end.                                      | 242.00                |
| YearEnd3**           | number | Forecast for the year after ForecastValue2.                          | 232.00                |
| q1_date              | string | Release date associated with ForecastValue1Q.                        | "2023-06-30T00:00:00" |
| q2_date              | string | Release date associated with ForecastValue2Q.                        | "2023-09-30T00:00:00" |
| q3_date              | string | Release date associated with ForecastValue3Q.                        | "2023-12-31T00:00:00" |
| q4_date              | string | Release date associated with ForecastValue4Q.                        | "2024-03-31T00:00:00" |
| ForecastLastUpdate   | string | Timestamp of the most recent update to the forecast data, in UTC.    | "2024-03-31T00:00:00" |
| Frequency            | string | Frequency of data release.                                           | "Monthly"             |
| Unit                 | string | Unit of measurement for all forecast values.                         | "Thousand Units"      |
| HistoricalDataSymbol | string | Unique internal symbol used by Trading Economics for this indicator. | "MEXICOAUTEXP"        |

***Country only appears in the packages or when using '&f=json' on endpoints.**

****Forecast response fields can be diferent from HTML response fields:**

| JSON/CSV   | HTML            |
|------------|-----------------|                 
| YearEnd    | ForecastValue1  |
| YearEnd2   | ForecastValue2  |
| YearEnd3   | ForecastValue3  |
| q1         | ForecastValue1Q |
| q2         | ForecastValue2Q |
| q3         | ForecastValue3Q |
| q4         | ForecastValue4Q |

