Skip to content

Instantly share code, notes, and snippets.

@kennyeliason
Created April 1, 2024 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennyeliason/f38fd0fd958e662037207be3d1773508 to your computer and use it in GitHub Desktop.
Save kennyeliason/f38fd0fd958e662037207be3d1773508 to your computer and use it in GitHub Desktop.
Google Sheets Domain Finder FETCH Script
function FETCH(url1) {
var response = UrlFetchApp.fetch(url1);
var json = JSON.parse(response.getContentText());
var output = [];
for (var i = 0; i < json.length; i++) {
var company = json[i];
output.push(company.name);
output.push(company.domain);
output.push(company.logo);
}
return [output];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment