Skip to content

Quickstart

This page shows the shortest path from a document URL to structured Markdown output.

  • Clean Markdown with headings, paragraphs, lists, and tables where possible
  • PDF support for both text-native and scanned PDFs (with OCR when needed)
  • A controllable PDF strategy: fast / auto / ocr
import Firecrawl from '@mendable/firecrawl-js'
const firecrawl = new Firecrawl({ apiKey: 'fc-YOUR-API-KEY' })
const doc = await firecrawl.scrape('https://example.com/file.pdf', {
formats: ['markdown'],
parsers: [{ type: 'pdf' }],
})
console.log(doc.markdown)