Find a Company Headquarters Address via API
In this blog post, we explore how you can generate a company headquarters address via an API endpoint. For this, we use pipe0β.
Pipe0 is a framework for data enrichment. To enrich data with pipe0 you use enrichment pipes. There are several pipes available to generate a company headquarters address via API. For this blog post, weβre using the pipe CompanyGetHQAddressGoogleMaps@1β.
This pipe relies on fetching location data from Google Maps and summarizing this data with the help of an LLM.
The cost per invocation is ~1ct. per company headquarters address.
Prerequisites
ππΌββοΈ Go to pipe0β and create an account
π Create an API Key
Request object
const id = 1;
const result = await fetch("https://pipe0.com/api/v1/run", {
method: "POST",
headers: {
"Authorization": `Bearer <YOUR_API_TOKEN>`,
},
body: JSON.stringify({
pipes: [{ name: "CompanyGetHQAddressGoogleMaps@1" }],
input: [{id, companyWebsiteURL: "<COMAPNY_URL>"}]
})
});
const response = await result.json();
// [NOT SHOWN] Poll the "/check" endpoint until the task status is "completed"
// Learn more: https://www.pipe0.com/resources/documentation/pipeline#async-processing
// Print description
console.log(response.records[id].fields["hqAddress"].value);
Add clay-like π data enrichment to your application. Fast.
Last updated on