◆ NPM~30sTYPESCRIPT

@getfundedapi/client — official npm package

The same client as above, published and maintained on npm. TypeScript types, 429 auto-retry, webhook HMAC verification — zero dependencies.

◆ STEPS
  1. 01Run `npm install @getfundedapi/client` (or pnpm / bun / yarn).
  2. 02Set FUNDED_API_KEY in your env — the client picks it up automatically.
  3. 03Use typed methods: listStartups, getStartup, aiSearch, listInvestors, createWebhook, etc.
  4. 04For webhook endpoints, verify signatures with verifyWebhookSignature before parsing the body.
◆ CODE · TYPESCRIPT
// npm install @getfundedapi/client

import { FundedAPI, verifyWebhookSignature } from "@getfundedapi/client";

const api = new FundedAPI({ apiKey: process.env.FUNDED_API_KEY });

// Typed responses, auto-retry on 429, timeout guard
const { startups } = await api.listStartups({
  niche: "AI",
  hiring: true,
  round: "Seed",
  limit: 10,
});

const ai = await api.aiSearch({
  query: "Seed-stage AI infra startups hiring in Europe",
});

// Webhook verify (runs on Node 18+, Bun, Deno, Cloudflare Workers)
export async function POST(req: Request) {
  const raw = await req.text();
  const sig = req.headers.get("x-fundedapi-signature") ?? "";
  if (!(await verifyWebhookSignature(raw, sig, process.env.WH_SECRET!))) {
    return new Response("invalid signature", { status: 401 });
  }
  const event = JSON.parse(raw);
  // ... handle event
  return new Response("ok");
}
◆ PREREQUISITES
  • A FundedAPI key (free). Grab one.
  • Set FUNDED_API_KEY in your environment.
  • Read the API reference if you need other endpoints.
▶ RELATED RECIPES