# Indicators Discontinued Series

> The following API endpoints list all discontinued data series.

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

This endpoint lists data series or datasets that have been discontinued, meaning they are no longer being updated or maintained by the official source.

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/country/all/discontinued?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.getDiscontinuedIndicator()
```

**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/country/all/discontinued?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getDiscontinuedIndicators().then(function(data){
  console.log(data)       
});
```

**C#**
```c#
using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/country/all/discontinued?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);
        }
    }
}
```

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

**JSON**
```text
https://api.tradingeconomics.com/country/all/discontinued?c={your_api_key}&f=json
```
```json
[
  {
    "Country": "Afghanistan",
    "Category": "Internet Speed",
    "Title": "Afghanistan Internet Speed",
    "LatestValueDate": "2017-03-31T00:00:00",
    "LatestValue": 1901.54,
    "Source": "AKAMAI",
    "SourceURL": "",
    "Unit": "KBps",
    "URL": "/afghanistan/internet-speed",
    "CategoryGroup": "Business",
    "Adjustment": "",
    "Frequency": "Quarterly",
    "HistoricalDataSymbol": "AFGKBPS",
    "CreateDate": "2017-10-25T17:12:00",
    "FirstValueDate": "2007-09-30T00:00:00",
    "PreviousValue": 1797.43,
    "PreviousValueDate": "2016-12-31T00:00:00"
  },
  {
    "Country": "Afghanistan",
    "Category": "IP Addresses",
    "Title": "Afghanistan IP Addresses",
    "LatestValueDate": "2017-03-31T00:00:00",
    "LatestValue": 14505.0,
    "Source": "AKAMAI",
    "SourceURL": "",
    "Unit": "IP",
    "URL": "/afghanistan/ip-addresses",
    "CategoryGroup": "Business",
    "Adjustment": "",
    "Frequency": "Quarterly",
    "HistoricalDataSymbol": "AFGIPS",
    "CreateDate": "2017-10-25T17:12:00",
    "FirstValueDate": "2007-09-30T00:00:00",
    "PreviousValue": 15003.0,
    "PreviousValueDate": "2016-12-31T00:00:00"
  },
  {
    "Country": "Afghanistan",
    "Category": "Interest Rate",
    "Title": "Afghanistan Interest Rate",
    "LatestValueDate": "2017-03-31T00:00:00",
    "LatestValue": 14.94,
    "Source": "Afghanistan Bank",
    "SourceURL": "http://www.centralbank.gov.af/",
    "Unit": "percent",
    "URL": "/afghanistan/interest-rate",
    "CategoryGroup": "Money",
    "Adjustment": "",
    "Frequency": "Monthly",
    "HistoricalDataSymbol": "AFGSTANINTTRATE",
    "CreateDate": "2014-08-07T17:57:00",
    "FirstValueDate": "2007-03-31T00:00:00",
    "PreviousValue": 14.57,
    "PreviousValueDate": "2017-02-28T00:00:00"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/country/all/discontinued?c={your_api_key}&f=csv
```
```bash
Country,Category,Title,LatestValueDate,LatestValue,Source,SourceURL,Unit,URL,CategoryGroup,Adjustment,Frequency,HistoricalDataSymbol,CreateDate,FirstValueDate,PreviousValue,PreviousValueDate
Afghanistan,Internet Speed,Afghanistan Internet Speed,3/31/2017 12:00:00 AM,1901.54,AKAMAI,,KBps,/afghanistan/internet-speed,Business,,Quarterly,AFGKBPS,10/25/2017 5:12:00 PM,9/30/2007 12:00:00 AM,1797.43,12/31/2016 12:00:00 AM
Afghanistan,IP Addresses,Afghanistan IP Addresses,3/31/2017 12:00:00 AM,14505.00,AKAMAI,,IP,/afghanistan/ip-addresses,Business,,Quarterly,AFGIPS,10/25/2017 5:12:00 PM,9/30/2007 12:00:00 AM,15003.00,12/31/2016 12:00:00 AM
Afghanistan,Interest Rate,Afghanistan Interest Rate,3/31/2017 12:00:00 AM,14.94,Afghanistan Bank,http://www.centralbank.gov.af/,percent,/afghanistan/interest-rate,Money,,Monthly,AFGSTANINTTRATE,8/7/2014 5:57:00 PM,3/31/2007 12:00:00 AM,14.57,2/28/2017 12:00:00 AM
```

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

| Country	| Category | Title | LatestValueDate | LatestValue | Source | SourceURL | Unit | URL | CategoryGroup | Adjustment | Frequency | HistoricalDataSymbol | CreateDate | FirstValueDate	| PreviousValue	| PreviousValueDate |
|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
| Afghanistan	| Internet Speed | Afghanistan Internet Speed | 3/31/2017 12:00:00 AM	| 1901.54	| AKAMAI | | KBps |	/afghanistan/internet-speed	| Business | | Quarterly | AFGKBPS | 10/25/2017 5:12:00 PM | 9/30/2007 12:00:00 AM | 1797.43 | 12/31/2016 12:00:00 AM |
| Afghanistan	| IP Addresses | Afghanistan IP Addresses	| 3/31/2017 12:00:00 AM	| 14505.00 | AKAMAI | | IP	| /afghanistan/ip-addresses	| Business | | Quarterly | AFGIPS	| 10/25/2017 5:12:00 PM	| 9/30/2007 12:00:00 AM	| 15003.00 | 12/31/2016 12:00:00 AM |
| Afghanistan	| Interest Rate	| Afghanistan Interest Rate	| 3/31/2017 12:00:00 AM	| 14.94	| Afghanistan Bank | http://www.centralbank.gov.af/	| percent	| /afghanistan/interest-rate | Money | | Monthly | AFGSTANINTTRATE | 8/7/2014 5:57:00 PM | 3/31/2007 12:00:00 AM | 14.57 | 2/28/2017 12:00:00 AM |

## By country

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/country/united%20states,china/discontinued?c={your_api_key}'
data = requests.get(url).json()
print(data)
```
*Or using our package:*
```python
te.getDiscontinuedIndicator(country = 'united states')
```

*With multi countries*
```python
te.getDiscontinuedIndicator(country = ['united states', 'china'] )
```

**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/country/united%20states,china/discontinued?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getDiscontinuedIndicators(country = 'united states').then(function(data){
  console.log(data)       
});
```

*With multi countries*
```javascript
data = te.getDiscontinuedIndicators(country = ['united states', 'china'] ).then(function(data){
  console.log(data)       
});
```

**C#**
```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/country/united%20states/discontinued?c=your_api_key");
```

*With multi countries*
```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/country/united%20states,china/discontinued?c=your_api_key");
```

**JSON**
```text
https://api.tradingeconomics.com/country/{countries}/discontinued?c={your_api_key}&f=json
```
```json
[
  {
    "Country": "China",
    "Category": "Competitiveness Index",
    "Title": "China Competitiveness Index",
    "LatestValueDate": "2019-12-31T00:00:00",
    "LatestValue": 73.9,
    "Source": "World Economic Forum",
    "SourceURL": "https://www.weforum.org",
    "Unit": "Points",
    "URL": "/china/competitiveness-index",
    "CategoryGroup": "Business",
    "Adjustment": "",
    "Frequency": "Yearly",
    "HistoricalDataSymbol": "ChinaComInd",
    "CreateDate": "2015-06-12T17:19:00",
    "FirstValueDate": "2007-12-31T00:00:00",
    "PreviousValue": 72.61,
    "PreviousValueDate": "2018-12-31T00:00:00"
  },
  {
    "Country": "China",
    "Category": "Competitiveness Rank",
    "Title": "China Competitiveness Rank",
    "LatestValueDate": "2019-12-31T00:00:00",
    "LatestValue": 28.0,
    "Source": "World Economic Forum",
    "SourceURL": "https://www.weforum.org",
    "Unit": "",
    "URL": "/china/competitiveness-rank",
    "CategoryGroup": "Business",
    "Adjustment": "",
    "Frequency": "Yearly",
    "HistoricalDataSymbol": "ChinaComRan",
    "CreateDate": "2015-06-12T17:17:00",
    "FirstValueDate": "2007-12-31T00:00:00",
    "PreviousValue": 28.0,
    "PreviousValueDate": "2018-12-31T00:00:00"
  },
  {
    "Country": "China",
    "Category": "Consumer Confidence",
    "Title": "China Consumer Confidence",
    "LatestValueDate": "2023-03-31T00:00:00",
    "LatestValue": 94.9,
    "Source": "National Bureau of Statistics of China",
    "SourceURL": "http://www.stats.gov.cn/",
    "Unit": "points",
    "URL": "/china/consumer-confidence",
    "CategoryGroup": "Consumer",
    "Adjustment": "",
    "Frequency": "Monthly",
    "HistoricalDataSymbol": "CHCSCONF",
    "CreateDate": "2013-01-22T17:35:00",
    "FirstValueDate": "1991-01-31T00:00:00",
    "PreviousValue": 94.7,
    "PreviousValueDate": "2023-02-28T00:00:00"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/country/{countries}/discontinued?c={your_api_key}&f=csv
```
```bash
Country,Category,Title,LatestValueDate,LatestValue,Source,SourceURL,Unit,URL,CategoryGroup,Adjustment,Frequency,HistoricalDataSymbol,CreateDate,FirstValueDate,PreviousValue,PreviousValueDate
China,Competitiveness Index,China Competitiveness Index,12/31/2019 12:00:00 AM,73.90,World Economic Forum,https://www.weforum.org,Points,/china/competitiveness-index,Business,,Yearly,ChinaComInd,6/12/2015 5:19:00 PM,12/31/2007 12:00:00 AM,72.61,12/31/2018 12:00:00 AM
China,Competitiveness Rank,China Competitiveness Rank,12/31/2019 12:00:00 AM,28.00,World Economic Forum,https://www.weforum.org,,/china/competitiveness-rank,Business,,Yearly,ChinaComRan,6/12/2015 5:17:00 PM,12/31/2007 12:00:00 AM,28.00,12/31/2018 12:00:00 AM
China,Consumer Confidence,China Consumer Confidence,3/31/2023 12:00:00 AM,94.90,National Bureau of Statistics of China,http://www.stats.gov.cn/,points,/china/consumer-confidence,Consumer,,Monthly,CHCSCONF,1/22/2013 5:35:00 PM,1/31/1991 12:00:00 AM,94.70,2/28/2023 12:00:00 AM
```

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

| Country	| Category | Title | LatestValueDate | LatestValue | Source | SourceURL | Unit | URL | CategoryGroup | Adjustment | Frequency | HistoricalDataSymbol | CreateDate | FirstValueDate	| PreviousValue	| PreviousValueDate |
|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
| China	| Competitiveness Index	| China Competitiveness Index	| 12/31/2019 12:00:00 AM | 73.90 | World Economic Forum	| https://www.weforum.org	| Points | /china/competitiveness-index	| Business | | Yearly	| ChinaComInd	| 6/12/2015 5:19:00 PM | 12/31/2007 12:00:00 AM	| 72.61 | 12/31/2018 12:00:00 AM |
| China	| Competitiveness Rank | China Competitiveness Rank	| 12/31/2019 12:00:00 AM | 28.00 | World Economic Forum	| https://www.weforum.org | |	/china/competitiveness-rank |	Business | | Yearly	| ChinaComRan	| 6/12/2015 5:17:00 PM | 12/31/2007 12:00:00 AM	| 28.00 | 12/31/2018 12:00:00 AM |
| China	| Coronavirus Recovered	| China Coronavirus COVID-19 Recovered | 12/15/2021 12:00:00 AM	| 86689.00 | World Health Organization | | Persons | /china/coronavirus-recovered |	Health | | Daily | CNCOVIDRT | 3/11/2020 1:48:00 PM	| 12/31/2019 12:00:00 AM | 86676.00	| 6/29/2021 12:00:00 AM |

## Response fields

| Field                | Type   | Description                                                                | Example                |
| ---------------------| -------|----------------------------------------------------------------------------|------------------------|
| Country              | string | Name of the country associated with the indicator.                          | "Algeria"              |
| Category             | string | Name of the economic indicator or data category.                            | "Auto Exports",        |
| Title                | string | Combined label of country and category.       | "Mexico Auto Exports"  |
| LatestValueDate      | string | Date of the most recently released value, in UTC.             | "2023-03-31T00:00:00"  |
| LatestValue          | number | Most recent published value for the indicator.                              | 272.69                 |
| Source               | string | Name of the organization or authority that provided the data. | "Instituto Nacional de Estadística y Geografía (INEGI)" |
| SourceURL            | string | Direct URL link to the original data source (if available).      | "https://www.inegi.org.mx/" |
| Unit                 | string | Unit of measurement for the value.                   | "Thousand Units"       |
| URL                  | string | Hyperlink to the indicator page on Trading Economics.                       | "/mexico/auto-exports" |
| CategoryGroup        | string | Broad classification group for the indicator.    | "Trade"                |
| Adjustment           | string | Description of any adjustments. | "Current USD           |
| Frequency            | string | Frequency of data release.               | "Monthly"              |
| HistoricalDataSymbol | string | Unique identifier used by Trading Economics for the data series.            | "MEXICOAUTEXP"         |
| CreateDate           | string | Date and time when the indicator was added to the database                  | "2019-07-23T12:20:00"  |
| FirstValueDate       | string | Date of the earliest available historical value.                            | "1988-01-31T00:00:00"  |
| PreviousValue        | number | Value released prior to the latest one.                                     | 230.48                 |
| PreviousValueDate    | string | Release date of the previous value.                                         | "2023-02-28T00:00:00"  |

