How to get the country of domicile using searchlight
Hello,
I was trying to get the domicile country and the HQ country of a company. Using
/data/entity-reference/v1/organization/company-info
I can get the Country of Legal Registration, I was testing it using "BABA.N" and I was hoping to have another field with "China" as a value for the HQ country.
How can I get both of these values using Searchlight? I tried with the field RCSCountryHeadquartersLeaf that I found in another response but I doesn't seem to exist.
Thanks!
Best Answer
-
I believe that this endpoint is the same as used but the search module in the RD Lib. for Python; so I'm using it to access it to test.
Does the below not give a field that you are interested in? Note that it also produces an excel doc with all the available fields:
.import refinitiv.data as rd
rd.open_session()response = rd.content.search.metadata.Definition(
view = rd.content.search.Views.SEARCH_ALL
).get_data()
response.data.df.to_excel("SEARCH_ALL.xlsx")
rd.discovery.search(
view = rd.content.search.Views.SEARCH_ALL,
query = "BABA.N",
select = "AcquirerAdvisorCountry, AcquirerCountry, BorrowerCountry, Country, CountryBondMarketRIC, CountryBondSpeedguideRIC, CountryBradyBondChain, CountryDomesticBondMarketFRIC, CountryDomesticBondMarketMFRIC, CountryDomesticBondMarketSRIC, CountryHeadquarters, CountryHeadquartersName, CountryIndexFutureChain, CountryName, CountryOfIncorporation, CountryOfIndicator, CountryOfIndicatorName, ExchangeCountry, FundDomicileCountryId, GuarantorCountry, GuarantorCountryName, IndexCountryGroup, IndexCountryGroupName, InvestorAddressCountry, InvestorAddressCountryId, InvestorCountry, IRDCountry1, IRDCountry2, IRDCountryDesc1, IRDCountryDesc2, IsCurvePrimaryForCountry, ISOCountryName, IssueCountryRegisteredForSale, IssueCountryRegisteredForSaleCountryGroup, IssueCountryRegisteredForSaleCountryGroupName, IssueCountryRegisteredForSaleName, IssuerCountry, IssuerCountryContinentGroup, IssuerCountryName, IssuerDomicileCountry, IssuerDomicileCountryGroup, IssuerDomicileCountryGroupName, IssuerDomicileCountryName, LoanCountry, LoanCountryDescription, OldCountry, PageCountry, ParticipantRCSCountryNames, PartyCountry, PartyCountryCode, PrimaryIssueReportingCountry, PrimaryIssueReportingCountryName, PrimaryListingReportingCountry, PrimaryListingReportingCountryName, RCSAcquirerCountry, RCSAcquirerCountryGenealogy, RCSAcquirerCountryGenealogyName, RCSAcquirerCountryName, RCSBorrowerCountry, RCSBorrowerCountryGenealogy, RCSBorrowerCountryLeaf, RCSBorrowerCountryLeafML, RCSBorrowerCountryName, RCSBorrowerCountryNameML, RCSCountry, RCSCountryGenealogy, RCSCountryHeadquarters, RCSCountryHeadquartersGenealogy, RCSCountryHeadquartersLeaf, RCSCountryHeadquartersLeafML, RCSCountryHeadquartersName, RCSCountryHeadquartersNameML, RCSCountryLeaf, RCSCountryLeafML, RCSCountryName, RCSCountryNameML, RCSCountryOfIncorporation, RCSCountryOfIncorporationGenealogy, RCSCountryOfIncorporationLeaf, RCSCountryOfIndicator, RCSCountryOfIndicatorGenealogy, RCSCountryOfIndicatorLeaf, RCSCountryOfIndicatorLeafML, RCSCountryOfIndicatorName, RCSCountryOfIndicatorNameML, RCSCurrencyCountry, RCSCurrencyCountryGenealogy, RCSCurrencyCountryLeaf, RCSCurrencyCountryLeafML, RCSCurrencyCountryName, RCSCurrencyCountryNameML, RCSCurveCountry, RCSCurveCountryGenealogy, RCSCurveCountryLeaf, RCSCurveCountryLeafML, RCSCurveCountryName, RCSCurveCountryNameML, RCSExchangeCountry, RCSExchangeCountryGenealogy, RCSExchangeCountryLeaf, RCSExchangeCountryLeafML, RCSExchangeCountryName, RCSExchangeCountryNameML, RCSFilingCountry, RCSFilingCountryGenealogy, RCSFilingCountryLeaf, RCSFilingCountryLeafML, RCSFilingCountryName, RCSFilingCountryNameML, RCSGuarantorCountry, RCSGuarantorCountryGenealogy, RCSGuarantorCountryLeaf, RCSGuarantorCountryLeafML, RCSGuarantorCountryName, RCSGuarantorCountryNameML, RCSIndexCountryGroup, RCSIndexCountryGroupGenealogy, RCSIndexCountryGroupLeaf, RCSIndexCountryGroupLeafML, RCSIndexCountryGroupName, RCSIndexCountryGroupNameML, RCSInvestorCountry, RCSInvestorCountryGenealogy, RCSInvestorCountryGenealogyName, RCSInvestorCountryName, RCSIssueCountryRegisteredForSale, RCSIssueCountryRegisteredForSaleGenealogy, RCSIssueCountryRegisteredForSaleLeaf, RCSIssueCountryRegisteredForSaleLeafML, RCSIssueCountryRegisteredForSaleName, RCSIssueCountryRegisteredForSaleNameML, RCSIssuerCountry, RCSIssuerCountryGenealogy, RCSIssuerCountryLeaf, RCSIssuerCountryLeafML, RCSIssuerCountryName, RCSIssuerCountryNameML, RCSIssuerDomicileCountry, RCSIssuerDomicileCountryGenealogy, RCSIssuerDomicileCountryLeaf, RCSIssuerDomicileCountryLeafML, RCSIssuerDomicileCountryName, RCSIssuerDomicileCountryNameML, RCSLoanCountry, RCSLoanCountryGenealogy, RCSLoanCountryLeaf, RCSLoanCountryLeafML, RCSLoanCountryName, RCSLoanCountryNameML, RCSPartyCountry, RCSPartyCountryLeaf, RCSPrimaryIssueReportingCountry, RCSPrimaryIssueReportingCountryGenealogy, RCSPrimaryIssueReportingCountryLeaf, RCSPrimaryIssueReportingCountryLeafML, RCSPrimaryIssueReportingCountryName, RCSPrimaryIssueReportingCountryNameML, RCSPrimaryListingReportingCountry, RCSPrimaryListingReportingCountryGenealogy, RCSPrimaryListingReportingCountryLeaf, RCSPrimaryListingReportingCountryLeafML, RCSPrimaryListingReportingCountryName, RCSPrimaryListingReportingCountryNameML, RCSRefEntityCountry, RCSRefEntityCountryGenealogy, RCSRefEntityCountryLeaf, RCSRefEntityCountryLeafML, RCSRefEntityCountryName, RCSRefEntityCountryNameML, RCSRiskCountry, RCSRiskCountryGenealogy, RCSRiskCountryLeaf, RCSRiskCountryLeafML, RCSRiskCountryName, RCSRiskCountryNameML, RCSRiskOrganisationCountry, RCSRiskOrganisationCountryGenealogy, RCSRiskOrganisationCountryLeaf, RCSRiskOrganisationCountryLeafML, RCSRiskOrganisationCountryName, RCSRiskOrganisationCountryNameML, RCSSellerCountry, RCSSellerCountryGenealogy, RCSSellerCountryGenealogyName, RCSSellerCountryName, RCSTargetCountry, RCSTargetCountryGenealogy, RCSTargetCountryGenealogyName, RCSTargetCountryName, RCSUnderlyingAssetDomicileCountry, RCSUnderlyingAssetDomicileCountryGenealogy, RCSUnderlyingAssetDomicileCountryLeaf, RCSUnderlyingAssetDomicileCountryName, RefEntityCountry, RefEntityCountryName, RefEntityImmediateParentCountry, RefEntityImmediateParentCountryName, RefEntityRCSCountryHeadquarters, RefEntityRCSCountryHeadquartersGenealogy, RefEntityRCSCountryHeadquartersLeaf, RefEntityRCSCountryHeadquartersLeafML, RefEntityRCSCountryHeadquartersName, RefEntityRCSCountryHeadquartersNameML, RefEntityUltimateParentCountry, RefEntityUltimateParentCountryName, RepoEligBankCountry, RiskCountry, RiskCountryDescription, RiskOrganisationCountryCode, SellerCountry, TargetAdvisorCountry, TargetCountry, UnderlyingAssetDomicileCountry, UnderlyingCompanyCountryRCSCode, VesselBuilderCountry",
top = 100)1
Answers
-
Thank you @jonathan.legrand for your help, I appreciate the quick response.
I managed to get "IssuerCountry": "CHN" with your request, however it seems that not all the fields are present on the searchlight api.
"Warnings": [
"100 invalid 'select' entries were ignored: [AcquirerAdvisorCountry, AcquirerCountry, CountryBondMarketRIC, CountryBondSpeedguideRIC, CountryBradyBondChain, CountryDomesticBondMarketFRIC, CountryDomesticBondMarketMFRIC, CountryDomesticBondMarketSRIC, CountryHeadquartersName, CountryIndexFutureChain, CountryName, CountryOfIndicatorName, FundDomicileCountryId, GuarantorCountryName, InvestorAddressCountry, InvestorAddressCountryId, InvestorCountry, IRDCountry1, IRDCountry2, IRDCountryDesc1, IRDCountryDesc2, ISOCountryName, IssueCountryRegisteredForSaleCountryGroup, IssueCountryRegisteredForSaleCountryGroupName, IssueCountryRegisteredForSaleName, IssuerCountryContinentGroup, IssuerCountryName, IssuerDomicileCountryGroup, IssuerDomicileCountryGroupName, IssuerDomicileCountryName, LoanCountry, LoanCountryDescription, OldCountry, PageCountry, ParticipantRCSCountryNames, PartyCountry, PartyCountryCode, PrimaryIssueReportingCountryName, PrimaryListingReportingCountryName, RCSAcquirerCountry, RCSAcquirerCountryGenealogy, RCSAcquirerCountryGenealogyName, RCSAcquirerCountryName, RCSCurrencyCountry, RCSCurrencyCountryGenealogy, RCSCurrencyCountryLeaf, RCSCurrencyCountryLeafML, RCSCurrencyCountryName, RCSCurrencyCountryNameML, RCSInvestorCountry, RCSInvestorCountryGenealogy, RCSInvestorCountryGenealogyName, RCSInvestorCountryName, RCSLoanCountry, RCSLoanCountryGenealogy, RCSLoanCountryLeaf, RCSLoanCountryLeafML, RCSLoanCountryName, RCSLoanCountryNameML, RCSPartyCountry, RCSPartyCountryLeaf, RCSRefEntityCountry, RCSRefEntityCountryGenealogy, RCSRefEntityCountryLeaf, RCSRefEntityCountryLeafML, RCSRefEntityCountryName, RCSRefEntityCountryNameML, RCSRiskOrganisationCountry, RCSRiskOrganisationCountryGenealogy, RCSRiskOrganisationCountryLeaf, RCSRiskOrganisationCountryLeafML, RCSRiskOrganisationCountryName, RCSRiskOrganisationCountryNameML, RCSSellerCountry, RCSSellerCountryGenealogy, RCSSellerCountryGenealogyName, RCSSellerCountryName, RCSTargetCountry, RCSTargetCountryGenealogy, RCSTargetCountryGenealogyName, RCSTargetCountryName, RefEntityCountry, RefEntityCountryName, RefEntityImmediateParentCountry, RefEntityImmediateParentCountryName, RefEntityRCSCountryHeadquarters, RefEntityRCSCountryHeadquartersGenealogy, RefEntityRCSCountryHeadquartersLeaf, RefEntityRCSCountryHeadquartersLeafML, RefEntityRCSCountryHeadquartersName, RefEntityRCSCountryHeadquartersNameML, RefEntityUltimateParentCountry, RefEntityUltimateParentCountryName, RiskCountryDescription, RiskOrganisationCountryCode, SellerCountry, TargetAdvisorCountry, TargetCountry, UnderlyingAssetDomicileCountry, VesselBuilderCountry]"
],Also, using the /data/entity-reference/v1/organization/company-info endpoint I can get the "Country of Legal Registration" in this case being "Cayman Islands" how would I get that field using /discovery/searchlight/v1/
Thanks again!
0 -
Hello,
As per my knowledge, to get both the domicile country and the HQ country of a company using Searchlight, try the following:
- Use the /data/entity-reference/v1/organization/company-info endpoint to get the Country of Legal Registration.
- For the HQ country, check if there's a specific field or endpoint for headquarters details, such as /data/entity-reference/v1/organization/headquarters or a similar one.
I hope this will help you.
Thanks
0 -
Hello,
I want to use only the /discovery/searchlight/v1/ endpoint if possible. How would I get the Country of Legal Registration from searchlight? I am happy to use IssuerCountry field from searchlight to get the HQ.
Thanks again!
0 -
Hi @daniel.fidalgopanera, The way you went here is the best. Searchlight is the enterprise (MachineID) version of search - it contains a subset of information and content than Workspace Search endpoint due to content licensing; the search you did above allowed you to see which fields were returned for your license, and it looks like the closes one to what you are after is "IssuerCountry". If you would like access to the other fields, you may need to switch to the Workspace Search endpoint - for which you may need an upgraded LSEG license.
I will liaise with internal teams to find the exact endpoint address used for the Workspace Search endpoint.1 -
Hi @daniel.fidalgopanera, The way you went here is the best. Searchlight is the enterprise (MachineID) version of search - it contains a subset of information and content than Workspace Search endpoint due to content licensing; therefore, if you could not retrieve data for the field you were after by using the /discovery/searchlight/v1/ endpoint, it means that is is not available on that endpoint, and another will have to be used (potentially along with another LSEG license which allows for access to this Workspace Search endpoint).
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛