Need Help to retrieve an API result in Worksheet

Atri R

New Member
Joined
Mar 26, 2018
Messages
11
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:

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
 
Now you've got me, I'm not at a computer right now so can't recall where it is on a PC never mind a Mac.

I'll check it out and get back to you.

PS Does the workbook actually work for you?

What happens if you add more company names to the table on the first sheet and then right click the table on the second sheet and select Refresh?

It throws up an error :(

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Helvetica Neue'}</style>
The data connection can't be refreshed, as this type of data connection is not supported in this version of Excel.
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Oops, had a look and Power Query/Get and transform aren't supported on Excel for Mac.:eek:

Do you know if you can use VBA on your version of Excel?
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top