Web scrape vs crawl vs map: which endpoint to call
When to use web.scrape, web.crawl or web.map: what each returns, what it costs per call and how they combine.
Three web endpoints read public sites with the same robots.txt-aware fetcher. They differ in how much of the site they touch and how they are billed.
| Endpoint | What it does | Price | Output fields |
|---|---|---|---|
| web.scrape | Fetch one public web page and return its title, meta data, visible text and links. | $0.0007 per request ($0.70 per 1,000) | final_url, status, title, description, text, links, html |
| web.crawl | Crawl up to 25 same-site pages from a start URL (robots.txt honoured); pay per page fetched. | $0.0125 per page ($12.50 per 1,000) | pages, count, skipped_by_robots |
| web.map | List a site's URLs from its robots.txt-declared XML sitemaps, or from homepage links. | $0.001 per request ($1.00 per 1,000) | urls, method, sitemaps |
Which one to call
| If | Call |
|---|---|
| You have one URL and need its text, title, meta data or links | web.scrape |
| You need every URL of a site, without fetching each page | web.map |
| You need the text of several pages under one start URL (up to 25) | web.crawl |
| You need text from many specific pages | web.map, then web.scrape per URL |
web.scrape
curl -s -X POST https://getallapis.com/v1/run/web.scrape \
-H "Authorization: Bearer $GETALLAPIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'
Get an API key. New API keys come with $0.10 of free credit, no card required (limited to 2 keys per network every 30 days). That covers about 142 requests of web.scrape. Then add credits (packs from $10). No subscription; failed calls are refunded.