Skip to content

Scrape examples

Static page

Static or article-style page

```bash curl https://api.faircompany.ai/v1/crawl/web/scrape \ -X POST \ -H "Authorization: Bearer fc_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "url": "https://stripe.com/pricing", "format": "markdown", "only_main_content": true }' ```

JS-rendered page

Rendered page with screenshot

```bash curl https://api.faircompany.ai/v1/crawl/web/scrape \ -X POST \ -H "Authorization: Bearer fc_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "url": "https://app.linear.app/changelog", "render_js": true, "screenshot": true }' ```

PDF or DOCX

Document extraction

```bash curl https://api.faircompany.ai/v1/crawl/web/scrape \ -X POST \ -H "Authorization: Bearer fc_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "url": "https://www.ycombinator.com/companies.pdf", "pdf_mode": "fast", "max_pages": 5 }' ```

Login and query-guided extraction

When you need session-aware reads, switch to /interact. When you only need a specific answer from a public page, keep the cheaper scrape path and add query.

Terminal window
curl https://api.faircompany.ai/v1/crawl/web/scrape \
-X POST \
-H "Authorization: Bearer $FAIRCRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://stripe.com/pricing",
"query": "Return just the standard card pricing section",
"format": "markdown"
}'