Quickstart
This page shows the shortest path from a document URL to structured Markdown output.
What you get
Section titled “What you get”- 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
Minimal example
Section titled “Minimal example”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)Next steps
Section titled “Next steps”- Pick a PDF strategy: PDF Parsing Modes
- Improve scanned PDF extraction: Scanned PDFs & OCR
- Understand the output shape: Markdown Output