Scrape SDK

TypeScript Scrape SDK

Scrape, search, crawl, and extract with one TypeScript client across Firecrawl, Jina, Tavily, Spider, Browserbase Fetch, and local Cheerio.

View Markdown

Scrape SDK is a provider-neutral web client for TypeScript agents. It talks to real vendor APIs, fails over on retryable errors, and returns one typed result shape.

scraper.ts
import { createScrapeClient } from "scrape-sdk";
import { firecrawl } from "scrape-sdk/firecrawl";
import { jina } from "scrape-sdk/jina";
import { local } from "scrape-sdk/local";

export const scraper = createScrapeClient({
  providers: [
    firecrawl({ apiKey: process.env.FIRECRAWL_API_KEY! }),
    jina(),
    local(),
  ],
});

const page = await scraper.scrape("https://stripe.com/docs", {
  format: "markdown",
  onlyMainContent: true,
});

Use search() when you do not have a URL, crawl() for a site, and extract() for JSON Schema. Providers that cannot perform an operation are skipped.

On this page