SDKs · TypeScript

TypeScript SDK

Fully-typed client for browser, Node, and edge runtimes.

Install

Shell
npm install @you-com/sdk

Usage

TypeScript
import { You } from "@you-com/sdk";

const you = new You({ apiKey: process.env.YOU_API_KEY! });

const res = await you.search.unified({ query: "edge functions vs lambda" });
for (const hit of res.results.web ?? []) {
  console.log(hit.title, hit.url);
}