Mapping
Isin To Entity
Returns entity information for a list of ISINs. - uri_suffixes: a list of suffixes, of the format ['company.tesla_motors', 'company.volkswagen']
Examples
- Curl
- Python
Note: If you are using Windows, adjust the syntax:
- Replace line breaks (
\) with caret (^).- Use double quotes (
") instead of single quotes (').
curl -X 'POST' \
'https://metadata.api.yukkalab.com/isin_to_entity' \
-H 'accept: application/json' \
-H "Authorization: Bearer $YUKKA_TOKEN" \
-H 'Content-Type: application/json' \
-d '["DE0007164600", "US0378331005"]'
import requests
headers = {
'accept': 'application/json',
'Authorization': f'Bearer {token}',
# Already added when you pass json=
# 'Content-Type': 'application/json',
}
json_data = [
'DE0007164600',
'US0378331005',
]
response = requests.post('https://metadata.api.yukkalab.com/isin_to_entity', headers=headers, json=json_data)
Return type
Dict[str, YlMetadataApiModelsRelatedModelEntity]
Example Response
{"DE0007164600":{"type":"company","alpha_id":"sap","compound_key":"company:sap","name":"SAP SE","description":{"Country":{"entity":{"type":"country","alpha_id":"de","compound_key":"country:de"},"name":"Germany"},"City":{"entity":{"type":"city","alpha_id":"walldorf","compound_key":"city:walldorf"},"name":"Walldorf"},"Industry":{"entity":{"type":"industry","alpha_id":"technology","compound_key":"industry:technology"},"name":"Technology"},"Supersector":{"entity":{"type":"supersector","alpha_id":"technology","compound_key":"supersector:technology"},"name":"Technology"},"Sector":{"entity":{"type":"sector","alpha_id":"software_computer_services","compound_key":"sector:software_computer_services"},"name":"Software & Computer Services"},"Subsector":{"entity":{"type":"subsector","alpha_id":"software","compound_key":"subsector:software"},"name":"Software"},"Ticker":{"entity":{"type":"ticker","alpha_id":"SAP_GR","compound_key":"ticker:SAP_GR"},"name":"SAP GR"},"Exchange":{"entity":{"type":"company","alpha_id":"b_rse_d_sseldorf","compound_key":"company:b_rse_d_sseldorf"},"name":"Dusseldorf Stock Exchange"},"CEO":{"entity":{"type":"person","alpha_id":"bill_mcdermott","compound_key":"person:bill_mcdermott"},"name":"Bill McDermott"},"Member_of":null,"Member_of_political_party":null,"CEO_of":null,"Manufacturer":null,"Location":null,"Source_provider":null},"isin":["DE0007164600"],"media":null},"US0378331005":{"type":"company","alpha_id":"apple","compound_key":"company:apple","name":"Apple Inc","description":{"Country":{"entity":{"type":"country","alpha_id":"us","compound_key":"country:us"},"name":"United States of America"},"City":{"entity":{"type":"city","alpha_id":"cupertino","compound_key":"city:cupertino"},"name":"Cupertino"},"Industry":{"entity":{"type":"industry","alpha_id":"technology","compound_key":"industry:technology"},"name":"Technology"},"Supersector":{"entity":{"type":"supersector","alpha_id":"technology","compound_key":"supersector:technology"},"name":"Technology"},"Sector":{"entity":{"type":"sector","alpha_id":"technology_hardware_equipment","compound_key":"sector:technology_hardware_equipment"},"name":"Technology Hardware & Equipment"},"Subsector":{"entity":{"type":"subsector","alpha_id":"computer_hardware","compound_key":"subsector:computer_hardware"},"name":"Computer Hardware"},"Ticker":{"entity":{"type":"ticker","alpha_id":"AAPL_US","compound_key":"ticker:AAPL_US"},"name":"AAPL US"},"Exchange":{"entity":{"type":"company","alpha_id":"b_rse_d_sseldorf","compound_key":"company:b_rse_d_sseldorf"},"name":"Dusseldorf Stock Exchange"},"CEO":{"entity":{"type":"person","alpha_id":"steve_jobs","compound_key":"person:steve_jobs"},"name":"Steve Jobs"},"Member_of":null,"Member_of_political_party":null,"CEO_of":null,"Manufacturer":null,"Location":null,"Source_provider":null},"isin":["US0378331005"],"media":null}}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| request_body | List[str] |
Return type
Dict[str, YlMetadataApiModelsRelatedModelEntity]
Authorization
JSON Web Token. Issued by Yukka.
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |