Web scraping API

Web scraping API for developers and LLM apps

Send a URL to POST /v2/scrape and get the rendered page back as markdown, HTML, links or structured JSON. No browsers, proxies or retries to run. You only pay for pages that succeed.

https://
  • ✓ JavaScript pages rendered
  • ✓ From $0.001 per page
  • ✓ No credit card to try
  • ✓ Failed pages are free
POST /v2/scrape

Response

waiting

The page is rendered in a real browser, then converted to markdown.

one request → rendered page → clean data

Trusted by 1,000+ developers building AI products and data pipelines

  • AIFlowChat
  • ControlHippo
  • UnicapAI
  • UsefulAI
  • WorkMatteAI
  • GrugNotes
  • Gambly

Quickstart

How to use the web scraping API in 3 steps

  1. 1. Get an API key

    Sign up and copy the key from the dashboard. No credit card needed to try it.
  2. 2. Send a URL

    POST /v2/scrape with a url and the output_formats you want. Example below.
  3. 3. Read the result

    The response has markdown, links, page_title and page_status_code. No job to poll.

cURL

curl --request POST \
  --url https://api.webcrawlerapi.com/v2/scrape \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "url": "https://quotes.toscrape.com/js/",
    "output_formats": ["markdown", "links"]
  }'

The problem

Why scraping pages yourself keeps breaking

A plain request gets an empty shell

Single-page apps draw their content with JavaScript. An HTTP client returns a <div id="root"> and nothing else.

Headless browsers are a second job

Browser versions, memory leaks, crashed pages and heavy Docker images. The scraper works on Monday and breaks by Friday.

Sites block bots

Rate limits, captchas and blocked IPs mean proxies and retries. That work never ends.

Weighing it up? Read should you build a crawler or use a crawling API. Want to build it yourself first? Follow the guide to web scraping with Python or the Node.js version.

The difference

A plain request vs the scraping API

Same URL, a page that draws its content with JavaScript. We ran both from a terminal. The plain request finds no quotes. The API finds all 10.

Terminal output: a plain curl request finds 0 quotes in quotes.toscrape.com/js, the scrape API finds 10 in the markdown
Real run against quotes.toscrape.com/js/, October 2026.

How it works

How the web scraping API works: one call, one page

Illustration: a tangle of web pages and scripts goes through one pipe and comes out as tidy markdown, JSON and lists
  1. 1. Send a URL

    Call POST /v2/scrape with a url and the output_formats you want.
  2. 2. We render it

    The page loads in a real browser. Retries, proxies and anti-bot handling run on our side.
  3. 3. Get the content back

    Markdown, HTML, links or structured data, in the same response. Need async? Read about async requests.
ParameterWhat it does
urlThe page to scrape. Required.
output_formatsAny of markdown, cleaned, html, links. Default markdown.
main_content_onlyKeep the main article content, drop menus, sidebars and ads.
clean_selectorsCSS selectors to remove from the output.
promptAsk for specific fields. Returns structured_data. Billed per token.
response_schemaJSON Schema for the structured output. Use with prompt.
respect_robots_txtReturn an error if robots.txt disallows the URL. Default false.
asyncQuery parameter. Return an id right away and read the result later.

Full reference in the POST /scrape docs.

Code

Web scraping API examples: cURL, Python and Node.js

curl --request POST \
  --url https://api.webcrawlerapi.com/v2/scrape \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "url": "https://quotes.toscrape.com/js/",
    "output_formats": ["markdown", "links"]
  }'

What the response looks like

{
  "success": true,
  "status": "done",
  "page_status_code": 200,
  "page_title": "Quotes to Scrape",
  "markdown": "# Quotes to Scrape\n\n...",
  "links": [
    "https://quotes.toscrape.com/",
    "https://quotes.toscrape.com/js/page/2/"
  ]
}

// On failure the status is still 200:
{
  "success": false,
  "error_code": "...",
  "error_message": "..."
}
Terminal output of the cURL example: success true, status done, page title Quotes to Scrape, markdown and links
The cURL example above, run for real and trimmed with jq.

SDKs: Python, JavaScript, PHP, Go, Java and Ruby. Language pages: Python scraper and JavaScript scraper.

Formats

Output formats for every scraped page

markdown

Default. Headings, links and lists kept. Best for LLM context and search indexes.

cleaned

Page content with the noise removed, ready to read or embed.

html

The final HTML after JavaScript ran. Feed it to your own parser.

links

Every link found on the page, for building URL lists.

structured_data

Add a prompt and a JSON Schema. Get typed fields back, not text.

/markdown

A separate endpoint that returns LLM-cleaned main content only.

Get fields, not text

Describe what you want in a prompt and add a JSON Schema. The API returns typed data, so you write no selectors that break on the next redesign.

Terminal output of a structured scrape: title A Light in the Attic, price 51.77, in_stock true
The structured data example above, run for real.

Read structured outputs for schemas and limits.

Use cases

What developers build with the scraping API

Knowledge bases and AI agents

Before: your agent gets menus and cookie banners instead of the answer.

After: feed it clean markdown of exactly the page it asked for.

output_formats=["markdown"]

Price and product monitoring

Before: prices load after the page does, so a plain request sees nothing.

After: ask for name and price fields and get typed JSON.

prompt + response_schema

SEO and competitor checks

Before: a headless browser farm just to read titles and links.

After: get HTML and links for any page from a cron job.

output_formats=["html", "links"]

Data pipelines

Before: Playwright installed in every notebook and CI job.

After: one HTTP call and an API key. Works wherever you can send a request.

POST /v2/scrape

Building an agent? Use the LangChain loader or the MCP server. Prefer no code? Use n8n, Make or Zapier.

By the numbers

Reliable infrastructure, proven in production.

Tracking usage, crawl success rates, average response times, uptime percentages, quality scores, cost metrics, API performance, reliability data, and live trends for all your requests.

Active builders

100+

Teams building in production

Extraction quality

98%

Success rate

Fast turnaround

2.5s

Average crawling time

Platform stability

99.98%

Uptime

Which one

Which scraping API: WebCrawlerAPI, proxy-style APIs or DIY

Many scraping APIs sell proxies and unblocking and hand you raw HTML. WebCrawlerAPI returns the page in the format your app needs, so there is less parsing on your side. Results differ by target site, so test on your own URLs.

WebCrawlerAPIProxy-style scraping APIsBuild it yourself
Renders JavaScriptYesYesYou run a browser
SetupOne API keyOne API keyInstall, patch and scale browsers
Default outputMarkdown, plus HTML, links and JSONUsually raw HTMLWhatever you extract
Structured fieldsprompt + JSON Schema, no selectorsSelectors or a separate extraction productSelectors you maintain
Proxies, retries, anti-botHandled for youHandled for youYou build and run them
Whole-site crawlingSame account, /v1/crawlVaries by providerYou write the crawler
Cost modelPer successful pageCredits per request, variesServers and your time

Comparing providers? Read the best web scraping APIs, best web scraping tools, Firecrawl alternatives, or ScrapingBee alternatives.

Built for sites that block bots

Handled automatically
Residential proxies
Automatic retries
Rate limit handling
Real headless browsers
JavaScript rendering
CAPTCHA solving
Anti-bot bypass
Fastest path selection

Browser upkeep is on our side. Limits are listed in the rate limits docs.

Pricing

Simple, transparent pricing

Start with pay-per-request, or save with a monthly subscription. Top-up credits are always available when your included allowance runs out.

Pay as you go

No monthly commitment — pay only for what you use

$0/month

Professional

Best for growing teams

Save 25%

$99/month

Business

For high-volume crawling

Save 50%

$499/month

Need a custom quota or special pricing? Contact us and we'll set up a plan that fits your needs.

See full pricing, limits and examples →

Web scraping API FAQ

Common questions about using a web scraping API

What is a web scraping API?

A web scraping API fetches a web page for you and returns its content over HTTP. You send a URL, it loads the page in a real browser, runs the JavaScript, and sends back markdown, HTML, links or structured data. With WebCrawlerAPI that is one POST /v2/scrape request.

How does a web scraping API work?

Your request goes to the API with a URL and the output formats you want. The page is rendered in a browser on our side, with retries, proxies and anti-bot handling, then converted and returned in the same response. You never run a browser yourself.

Is API scraping legal?

Scraping public pages is legal in many places, but it depends on the data, the site terms and your country. Personal data, copyrighted content and logins raise the risk. WebCrawlerAPI can respect robots.txt if you set respect_robots_txt to true. For the details, read our guide on whether web scraping is legal. Read the web scraping ethics guide.

Is there a free web scraping API?

You can try WebCrawlerAPI without a credit card in the playground or by creating an account in the dashboard. Paid usage is per successful page, from $0.001 to $0.002 depending on your plan.

Can it scrape JavaScript-rendered pages?

Yes. Pages load in a real browser and the JavaScript runs before the content is extracted. A plain HTTP request to a client-rendered page returns an empty shell; the API returns what a visitor sees.

Which output formats can I get?

Set output_formats to any of markdown, cleaned, html and links. Add a prompt, and optionally a response_schema, to get structured JSON in structured_data instead.

How do I scrape a website with the API in Python or Node.js?

Install webcrawlerapi for Python or webcrawlerapi-js for Node.js, create a client with your API key and call scrape() with a URL. You can also call POST /v2/scrape directly with requests or fetch(). No SDK is required.

Is the scrape synchronous?

Yes. POST /v2/scrape waits and returns the result in the same response. For long-running work add ?async=true to get an id right away, then read the result with GET /v2/scrape/{id}, or use a webhook.

What is the difference between a scraping API and a crawling API?

A scraping API fetches the one URL you name. A crawling API starts from a seed URL, discovers pages by following links and returns many of them. Use /v2/scrape for known pages and /v1/crawl for whole sites.

How much does the web scraping API cost?

You pay per successful page: $0.002 on Pay as you go, $0.0015 on Professional and $0.001 on Business. Failed requests are not charged. Requests with a prompt also pay for the LLM tokens used. Some sites are priced separately, see the pricing docs.

Does it work with LLMs and AI agents?

Yes, that is the main use. Markdown keeps headings, lists and links, which is what you want for a knowledge base, a support bot or an agent. There are a LangChain loader and an MCP server, and the API works from n8n, Make and Zapier.

What are the rate limits?

Each account runs up to 5 parallel threads, and each target website has a shared limit of 10 parallel threads across all accounts. See the rate limits docs.

Scrape your first page in five minutes

Get a key, run the cURL snippet above, and read the rendered page as markdown. Or try it in the playground.

Get your API key