Good Afternoon Team,
Hope your well.
I am hoping you can help me or point me in the right direction. I am trying to connect to an API where i am hoping to pass company names and in turn the API returns the relevant results.
The GLEIF LEI Look-up API makes it possible to easily find up to 200 LEI records included in the Global LEI Index with one request.
The GLEIF LEI Look-up API is supported by JSON data so i know that the next step is to parse the data - using the JSON Prse tool and connect the JSON Parse tool to the Download tools
Reading the documentation this is an the API i should be using;
https://api.gleif.org/api/v1/lei-records?filter[entity.legalName]=xxxxx&page[number]=1&page[size]=5
NB : xxxxx is the parameter where i need to pass the relevant company name
If i use the company name of "Sto Bene Partners SA"
Full URL would be :
Using the full URL and pasting into google i can see it returns a result set back
I have created the following Alteryx Workflow but i am getting an error when using the download tool
Alteryx Version 2019.3 64 bit
Looking Forward to your response
Your main issue is that you aren't specifying a query string and it is pointed at the URL which is throwing the error. You will want to choose the "Compose Query String/Body" option up top. Additionally, you will want to follow the API documentation for what parameters to pass through:
It looks like the proper format for the API call for what you are looking to do is
https://api.gleif.org/api/v1/lei-records/5067002PTFI40N9JMB37
where the value after the last slash is the ID for the LEI. I have added additional information below and attached the workflow that returns the results and parses the JSON.
HI BrandonB,
Thanks for your swift Response.
I get a warning when i open your attachment ( due to different versions of Alteryx), however when i run your workflow i stil get a " Download (5) Error transferring data: Failure when receiving data from the peer" i think this is a firewall issue with our company.
Any other solutions on how to get the data to proceed ? ( i will liaise with our tech team in mean while to confirm if it is a firewall issues)
Also ,the problem i have is, i dont have the LEI, therefore i am unable to pass the LEI as a variable.
Reading this documentation i thought i am able to use the "Finding Legal Entities By Name" and pass the name as a variable.
https://documenter.getpostman.com/view/7679680/SVYrrxuU?version=latest
Yep! So this is just another API call. It looks like the proper endpoint is going to be the "Fuzzy Completions"
"You can also find Legal Entities with potentially similar names using the fuzzycompletions endpoint. This type of search can provide a convenient starting point for obtaining LEIs."
This would be your first API call and you would find the ID from the results of this call and then use that ID to create the URL that would be passed in to the next download tool. I will see if I can mock it up for you.
Hi BrandonB,
Your correct.
So how i envisioned this was the following ;
Input File
Data Type (Excel)
Company Name (Column A1)
Then build an API call to gleif and based on exact match on name then return the relevant information from Glief (Name , Lei etc)
HI BrandonB,
Thanks for your swift Response.
I am still struggling to run the query ( but i think that an issue for me internally at my company with proxys settings etc.)
I have question for you, I am trying to go through the flow and understand whats happening.
If my understanding is correct the first part of the flow you are doing the following;
The question i have is if i want to pass more than one company name at a time ( lets say 200 at a time).
How would the query reflect this?
You are correct that you most likely have some proxy settings preventing the query.
If you want to pass in multiple values, you can pass in the data from an upstream field rather than hard coding it in the configuration. So instead of hard coding it like I am doing below, you can have a column called q with a list of company names from an Excel file and you would just check the box next to the column in my picture below. You would also want to delete the hard coded q value up top.
The download tool will execute one API call per row of data that is passed into it, so you can do an entire list of companies as part of one process.
Hi BrandonB,
Cool let me try and take a stab at this tomorrow. No doubt I will be in touch with additional questions .
I appreciate you taking your time to help me with this matter.
My concern now is I am unable to get the proxy sorted is there an alternative way to get this data..