◆ STEPS
- 01Run `npm install @getfundedapi/client` (or pnpm / bun / yarn).
- 02Set FUNDED_API_KEY in your env — the client picks it up automatically.
- 03Use typed methods: listStartups, getStartup, aiSearch, listInvestors, createWebhook, etc.
- 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_KEYin your environment. - ▸Read the API reference if you need other endpoints.
▶ RELATED RECIPES