Hello, I am trying to retrieve the list of companies that match a specific emtity name (e.g. BNP Paribas Securities (JP)). When I use the permid API, I get 5 matches. However , when I use the manual search, I get 67 matches. Is there a limit set on the API? How can I get the same matches on the API? Here is my code:
for search in searches: url = 'https://api.thomsonreuters.com/permid/search?q=' access_token = 'xxxx' headers = {'X-AG-Access-Token' : access_token} response = requests.get(url + search, headers=headers) if response.status_code == 200: json_data = response.json() res = json_data['result']['organizations']['entities'] org = [] for rs in res: org = org + [rs['organizationName']] newdf = pd.DataFrame([[search,";".join(org)]], columns = ['seach','organisationName']) tabres = tabres.append(newdf, ignore_index=True)