| name | firecrawl-hello-world |
| description | Create a minimal working Firecrawl example that scrapes a page to markdown.
Use when starting a new Firecrawl integration, testing your setup,
or learning the scrape/crawl/map/extract API surface.
Trigger with phrases like "firecrawl hello world", "firecrawl example",
"firecrawl quick start", "simple firecrawl code".
|
| allowed-tools | Read, Write, Edit |
| version | 1.11.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","firecrawl","api","testing"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Firecrawl Hello World
Overview
Four minimal examples covering Firecrawl's core endpoints: scrape (single page), crawl (multi-page), map (URL discovery), and extract (LLM structured data). Each is a standalone snippet you can run immediately.
Prerequisites
@mendable/firecrawl-js installed (npm install @mendable/firecrawl-js)
FIRECRAWL_API_KEY environment variable set
Instructions
Step 1: Single-Page Scrape
import FirecrawlApp from "@mendable/firecrawl-js";
const firecrawl = new FirecrawlApp({
apiKey: process.env.FIRECRAWL_API_KEY!,
});
const result = await firecrawl.scrapeUrl("https://docs.firecrawl.dev", {
formats: ["markdown"],
});
console.log("Title:", result.metadata?.title);
console.log("Markdown:", result.markdown?.substring(0, 500));
Step 2: Multi-Page Crawl
const crawlResult = await firecrawl.crawlUrl("https://docs.firecrawl.dev", {
: ,
: {
: [],
},
});
.();
( page crawlResult. || []) {
.();
}