Skip to content

Quickstart with curl

curl is the fastest way to validate auth, response shape, and billing metadata before you commit to an SDK integration.

1. Export your API key

Terminal window
export FAIRCRAWL_API_KEY=fc_live_xxx

2. Scrape one page

Scrape one URL

```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 }' ```

3. Discover URLs before crawling

Map a docs site

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

4. Run a multi-source research query

Research with synthesis

```bash curl https://api.faircompany.ai/v1/crawl/research \ -X POST \ -H "Authorization: Bearer fc_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "query": "Claude Code vs Cursor for large codebases", "sources": ["web", "reddit", "hackernews", "github"], "depth": "default", "synthesize": true }' ```

Production notes

  • send JSON bodies with Content-Type: application/json
  • keep the Authorization: Bearer ... header on every request
  • inspect _meta.cost, _meta.method, and response-time fields before you benchmark throughput
  • keep curl examples around for incident response and regression repros even if your app uses an SDK