Skip to content

Crawl examples

Docs subtree crawl

Crawl a docs portal

```bash curl https://api.faircompany.ai/v1/crawl/web/crawl \ -X POST \ -H "Authorization: Bearer fc_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "url": "https://docs.stripe.com", "limit": 20, "render": false }' ```

Regex-constrained crawl

Terminal window
curl https://api.faircompany.ai/v1/crawl/web/crawl \
-X POST \
-H "Authorization: Bearer $FAIRCRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://docs.stripe.com",
"limit": 30,
"regexOnFullURL": "^https://docs\\.stripe\\.com/payments/.*"
}'

Render-aware crawl

If the site exposes content only after client-side rendering, set render: true and keep the limit low while you validate the output.