Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Auth is ‘Authorization: Bearer <key>’. Without a key only /scrape answers; every other route returns 402.
- Pricing is credits: $1 buys 10,000 credits; bandwidth and compute time are billed separately.
- Spider also has /unlimited/* routes, /transform, /unblocker (deprecated) and /ai/* routes, not in this entry.
- Large crawls can return many pages; set limit and prefer return_format markdown.
Endpoints
Scrape one page
- A read over POST: it fetches a page and changes nothing in your account.
- This is the only route that also works without a key (rate limited).
Crawl a site
- A read over POST: it fetches pages and changes nothing in your account.
- Always set limit: with no limit it crawls every page found, bounded only by your credits.
- Billing is by credits (bandwidth plus compute time).
Collect a site’s links
- A read over POST: it fetches pages and changes nothing in your account.
Search the web
- A read over POST: it runs a search and changes nothing in your account.
- The body is flat: search fields sit beside the usual crawl parameters.
Take a screenshot
- A read over POST: it renders a page and changes nothing in your account.
Get the remaining credits
- There is no GET /credits; the path is /data/credits.