Retrieve Company Info via API: Easy Guide

Lean how to fetch company descriptions with an API using pipe0

F
FlorianFounder, pipe0
ย ยทย  1 min read
Cover art generated from the post title.

In this blog post, we explore how you can generate a company description 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 description via API. For this blog post, we're using the pipe CompanyGetDescriptionPipe0:Website.

This pipe relies on scraping website data from a URL and summarizing this data with the help of an LLM.

The cost per invocation is ~1ct. per company description.

Prerequisites

๐Ÿ™†๐Ÿผโ€โ™‚๏ธ Go to pipe0 and create an account
๐Ÿ”‘ Create an API Key

Request object

const id = 1;
const result = await fetch("https://api.pipe0.com/v1/pipes/run", {
  method: "POST",
  headers: {
    "Authorization": `Bearer <API_KEY>`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    pipes: [{ pipe_id: "company:description:website@1" }],
    input: [{id, company_website_url: "<COMPANY_URL>"}]
  })
});

const response = await result.json();

// [NOT SHOWN] Poll the "/check" endpoint until the task status is "completed"
// Learn more: https://www.pipe0.com/docs/pipeline#async-processing

// Print description
console.log(response.records[id].fields["companyDescription"].value);

Clay-like data enrichment for your apps & agents. Fast.

Stack pipes on a sheet and run them over every row.

selectedRun
InputHDFind work email
NameWork email
Ada ByrneHa.byrne@acme.io
Leo CostaDl.costa@northbeam.co
Mia ChenRunning...
New empty row
Using pipe0 at work?