Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Crustdata company lookup

Type a company's domain and get its profile: headcount, funding, headquarters and what it does. A small Next.js app that calls the Crustdata Company Enrich API from the server with the key Vercel adds when you install Crustdata from the Marketplace.

Deploy with Vercel

Deploying adds Crustdata to the new project, which sets CRUSTDATA_API_KEY for you.

How it works

lib/crustdata.ts makes one request:

await fetch("https://api.crustdata.com/company/enrich", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CRUSTDATA_API_KEY}`,
    "Content-Type": "application/json",
    "x-api-version": "2025-11-01",
  },
  body: JSON.stringify({
    domains: ["stripe.com"],
    exact_match: true,
    fields: ["basic_info", "headcount.total", "funding.total_investment_usd", "funding.last_round_type", "locations.headquarters"],
  }),
});
  • The key stays on the server. The page is a React Server Component, so the request and CRUSTDATA_API_KEY never reach the browser.
  • fields is a whitelist. The response carries only the groups you list. Add any group from the Company Enrich reference to show more, such as funding (every round), headcount (growth over time), people or technographics (which adds 2 credits per company).
  • Each lookup costs 2 credits per matched company. exact_match: true keeps a domain from also matching look-alike companies, each of which would be billed.

Run it locally

npm install
vercel link              # pick the project you deployed
vercel env pull .env.local
npm run dev

No Vercel project yet? Copy .env.example to .env.local and paste a key from your Crustdata dashboard.

Next steps

  • Search people or companies by title, industry, size or location with the Search APIs.
  • Find work emails with Person Contact Enrich, 1 credit per matched person.
  • Full reference: docs.crustdata.com.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages