What is web scraping?
Web scraping fetches a page and extracts usable content such as Markdown or JSON fields. How Webcrawl scrape and extract serve agents and apps.
Web scraping is fetching a specific URL and turning the response into usable data. That data might be cleaned Markdown for a language model, JSON fields for a CRM, a list of outbound links, or a content hash for change detection. Scraping assumes you already know the URL (or just found it via search or crawl).
People say “scraper” for everything from a weekend Python script to a hosted API. The shared idea is extraction: remove the noise, keep the signal. For AI agents, the signal is usually prose with headings, tables, and links intact. For automation, the signal is often a price, stock flag, or changelog entry that should land in a schema.
Scraping differs from crawling. A crawl walks many URLs. A scrape focuses on one (or a small set) with a clear output shape. It also differs from browser automation jobs that click through flows; many public pages scrape cleanly without a full interactive session. Start with a simple fetch and extract path before you spend browser minutes.
Webcrawl’s scrape surface is POST /v1/scrape, which returns LLM-friendly Markdown for a URL. When you need structured fields, POST /v1/extract accepts a prompt or schema. Related parse endpoints convert PDFs and captioned YouTube URLs into Markdown so the same downstream chunking can handle more than HTML. Free tools such as website to Markdown expose the same idea with rate limits for quick trials.
Responsible scraping respects site terms, robots.txt where you choose to honor it, and rate limits that keep both sides healthy. Prefer caching and monitors when you re-read the same URL on a schedule. Prefer map or search when you do not yet know which URL to scrape.
If you are shopping APIs for LLMs, ask whether “scrape” returns Markdown, HTML, screenshots, or structured JSON, and whether credits are published per page. Webcrawl publishes creditSchedule on /health and documents REST, CLI, MCP, and @webcrawl/client paths so agents and humans call the same engine. Scraping quality shows up in evaluation, not in marketing screenshots. Compare Markdown from two vendors on the same docs URL: Are headings intact? Did the converter swallow the code sample? Are links absolute? Small differences become retrieval failures when chunkers split on heading levels that disappeared.
Auth and targeting matter. Public marketing pages are the easy case. Logged-in app pages, paywalled articles, and personalized dashboards need explicit product support and clear policy. Webcrawl’s hosted scrape path is aimed at public URLs your API key is allowed to fetch. Keep secrets in server environments; never ship keys inside browser-side agent demos.
Structured extraction sits beside scraping. Markdown is ideal for narrative understanding. JSON fields are ideal for lead enrichment and price checks. Use extract when you would otherwise ask a model to regex the Markdown every time. Use scrape when an agent must quote or summarize. Many pipelines do both: scrape for the audit trail, extract for the database columns.
Failure modes deserve first-class handling. Timeouts, blocked fetches, and empty Markdown should surface as tool errors with status codes, not silent empty strings. Agents can then retry with a different URL from search results. Credits should only move when work actually happened, which is why publishing creditSchedule next to OpenAPI matters for builders.
Scrape one URL
curl -s -X POST https://webcrawl.app/v1/scrape \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/pricing"}'