# Markets Symbology

> Use the following API endpoints to obtain the complete symbology for market companies.

Source: https://docs.tradingeconomics.com/markets/symbology/

The Symbology endpoint provides identifier mappings for market symbols, allowing you to cross-reference Trading Economics symbols against standard industry identifiers such as **ISIN**, **Bloomberg**, and **Reuters** codes. This is useful when integrating with external databases or matching instruments across multiple data sources.

## Symbologies by symbol

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/symbology/symbol/aapl:us?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.getMarketsSymbology(symbol = 'aapl:us')
```

**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/markets/symbology/symbol/aapl:us?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getSymbology(symbol = 'aapl:us').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/markets/symbology/symbol/aapl:us?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/markets/symbology/symbol/{symbol}?c={your_api_key}&f=json
```
```json
[
  {
    "Symbol": "AAPL:US",
    "Ticker": "AAPL",
    "ISIN": "US0378331005",
    "Name": "Apple",
    "Country": "United States"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/markets/symbology/symbol/{symbol}?c={your_api_key}&f=csv
```
```bash
AAPL:US,AAPL,US0378331005,Apple,United States
```

**HTML**
```text
https://api.tradingeconomics.com/markets/symbology/symbol/{symbol}?c={your_api_key}
```

| Symbol | Ticker | ISIN | Name | Country |
|-------|-------|-------|-------|-------|
| AAPL:US	| AAPL | US0378331005 | Apple | United States |

## Symbologies by country

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

**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/markets/symbology/country/mexico?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getSymbology(country = 'mexico').then(function(data){
  console.log(data)     
});
```

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

**JSON**
```text
https://api.tradingeconomics.com/markets/symbology/country/{country}?c={your_api_key}&f=json
```
```json
[
  {
    "Symbol": "AC:MM",
    "Ticker": "AC",
    "ISIN": "MX01AC100006",
    "Name": "Arca Continental",
    "Country": "Mexico"
  },
  {
    "Symbol": "ALFAA:MM",
    "Ticker": "ALFAA",
    "ISIN": "MXP000511016",
    "Name": "Alfa",
    "Country": "Mexico"
  },
  {
    "Symbol": "ALPEKA:MM",
    "Ticker": "ALPEKA",
    "ISIN": "MX01AL0C0004",
    "Name": "Alpek",
    "Country": "Mexico"
  },
  {
    "Symbol": "ASURB:MM",
    "Ticker": "ASURB",
    "ISIN": "MXP001661018",
    "Name": "Grupo Aeroportuario del Sureste",
    "Country": "Mexico"
  },
  {
    "Symbol": "BIMBOA:MM",
    "Ticker": "BIMBOA",
    "ISIN": "MXP495211262",
    "Name": "Grupo Bimbo",
    "Country": "Mexico"
  },
  {
    "Symbol": "BOLSAA:MM"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/markets/symbology/country/{country}?c={your_api_key}&f=csv
```
```bash
AC:MM,AC,MX01AC100006,Arca Continental,Mexico
ALFAA:MM,ALFAA,MXP000511016,Alfa,Mexico
ALPEKA:MM,ALPEKA,MX01AL0C0004,Alpek,Mexico
```

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

| Symbol | Ticker | ISIN | Name | Country |
|-------|-------|-------|-------|-------|
| AC:MM | AC | MX01AC100006 | Arca Continental | Mexico |
| ALFAA:MM | ALFAA | MXP000511016 | Alfa | Mexico |
| ALPEKA:MM | ALPEKA | MX01AL0C0004 | Alpek | Mexico |

## Symbologies by ticker

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

**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/markets/symbology/ticker/aapl?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getSymbology(ticker = 'aapl').then(function(data){
  console.log(data)     
});
```

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

**JSON**
```text
https://api.tradingeconomics.com/markets/symbology/ticker/{ticker}?c={your_api_key}&f=json
```
```json
[
  {
    "Symbol": "AAPL:US",
    "Ticker": "AAPL",
    "ISIN": "US0378331005",
    "Name": "Apple",
    "Country": "United States"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/markets/symbology/ticker/{ticker}?c={your_api_key}&f=csv
```
```bash
AAPL:US,AAPL,US0378331005,Apple,United States
```

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

| Symbol | Ticker | ISIN | Name | Country |
|-------|-------|-------|-------|-------|
| AAPL:US	| AAPL | US0378331005 | Apple | United States |

## Symbologies by ISIN

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/symbology/isin/US0378331005?c={your_api_key}'
data = requests.get(url).json()
print(data)
```
*Or using our package:*
```python
te.getMarketsSymbology(isin = 'US0378331005')
```

**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/markets/symbology/isin/US0378331005?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getSymbology(isin = 'US0378331005').then(function(data){
  console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/markets/symbology/isin/US0378331005?c=your_api_key");
```

**JSON**
```text
https://api.tradingeconomics.com/markets/symbology/isin/{isin}?c={your_api_key}&f=json
```
```json
[
  {
    "Symbol": "AAPL:US",
    "Ticker": "AAPL",
    "ISIN": "US0378331005",
    "Name": "Apple",
    "Country": "United States"
  }
]
```

**CSV**
```text
https://api.tradingeconomics.com/markets/symbology/isin/{isin}?c={your_api_key}&f=csv
```
```bash
AAPL:US,AAPL,US0378331005,Apple,United States
```

**HTML**
```text
https://api.tradingeconomics.com/markets/symbology/isin/{isin}?c={your_api_key}
```

| Symbol | Ticker | ISIN | Name | Country |
|-------|-------|-------|-------|-------|
| AAPL:US	| AAPL | US0378331005 | Apple | United States |

## Response fields

| Field            | Type   | Description                                | Example                                                               |
| -----------------| -------|--------------------------------------------|-----------------------------------------------------------------------|
| Symbol  | string | Unique symbol used by Trading Economics   | "AAPL:US"       |
| Ticker  | string | Unique ticker code used by Trading Economics                        | "AAPL"          |
| ISIN    | string | International Securities Identification Number                      | "US0378331005"  |
| Name    | string | Full company name                                                   | "Apple"         |
| Country | string | Country where the company is based                                   | "United States" |

