Appearance
Quick Reference
Fresh 🌱Essential information at a glance.
Key Resources
- API Endpoints → - All available endpoints
- Pricing → - Credit costs and examples
- Troubleshooting → - Common issues and fixes
Quick Commands
Python
bash
pip install firecrawl-pypython
from firecrawl import Firecrawl
firecrawl = Firecrawl(api_key="fc-YOUR-API-KEY")
result = firecrawl.scrape("https://example.com")Node.js
bash
npm install @mendable/firecrawl-jsjavascript
import Firecrawl from '@mendable/firecrawl-js';
const firecrawl = new Firecrawl({ apiKey: 'fc-YOUR-API-KEY' });
const result = await firecrawl.scrape('https://example.com');cURL
bash
curl -X POST 'https://api.firecrawl.dev/v2/scrape' \
-H 'Authorization: Bearer fc-YOUR-API-KEY' \
-H 'Content-Type: application/json' \
-d '{"url": "https://example.com"}'Credit Costs at a Glance
| Operation | Cost |
|---|---|
| Scrape | 1 credit |
| Search | 2 per 10 results |
| Map | 1 credit |
| Crawl | 1 per page |
| Agent | 2 credits |
| +JSON | 4 credits |
| +Enhanced Proxy | 4 credits |
Common Patterns
Extract Markdown
python
result = firecrawl.scrape(url)
content = result['markdown']Extract JSON
python
result = firecrawl.scrape(
url,
formats=[{"type": "json", "schema": MySchema.model_json_schema()}]
)
data = result['json']Crawl Website
python
result = firecrawl.crawl(url, limit=100)
for page in result.data:
print(page.metadata['title'])Search & Scrape
python
results = firecrawl.search(
"query",
scrape_options={"formats": ["markdown"]}
)Links
Need help? Use the chat widget or check Troubleshooting →