Hello,
I am designing an excel file which will provide me the company website URL taking the Company name as Input. For this I have found out a free API which does this exact Name->Domain mapping.
The API goes like this:
where C_NAME is the company names present in the worksheet column.
Can anyone help me write a macro/VBA code for this small function? It would be of a great help.
TIA
I am designing an excel file which will provide me the company website URL taking the Company name as Input. For this I have found out a free API which does this exact Name->Domain mapping.
The API goes like this:
Code:
https://autocomplete.clearbit.com/v1/companies/suggest?query=[C_NAME]
where C_NAME is the company names present in the worksheet column.
- The response of the API usually has 3 parameters (name, domain and logo). I would like to have the domain value only to be inserted in the excel column.
- At times, the response can be multiple sub nodes - in that case I would love to have the first domain only(which is possibly most relevant).
- Also, sometimes the response might be empty when the API is not able to lookup for the company name. In this case, the cell can be populated with a default value.
Can anyone help me write a macro/VBA code for this small function? It would be of a great help.
TIA