Web Scraping API

Web Scraping Scrape page API

Scrape any web page and get its main content back as clean Markdown plus title and metadata.

$0.70/1k req, pay per request, no subscription.

What the API returned
{
"url": "https://www.example.com/blog/launch",
"title": "Introducing Example 2.0",
"description": "Everything new in the biggest Example release yet.",
"markdown": "# Introducing Example 2.0\n\nToday we are shipping the biggest release in our history…",
"html": string,
"language": string,
"rawHtml": string,
"statusCode": integer
}
Uptime
99.01%
30d · 344,950 calls
Requests
401,067
30d · weekly, last 12 wks
Response
2.8s
median · 30d

Scrape router

We send every page to the cheapest scraper that can actually scrape it.

  1. Cheapest scraperEvery page starts here
  2. Next scraperOnly if the page blocks it
  3. Full browserOnly for the hardest pages

Price per 1,000 pages

  1. AnyAPI98/100$1.05
  2. Firecrawl90/100$3.97Hobby plan
  3. Bright Data81/100$1.50
  4. Jina Reader55/100$0.73
  5. Cloudflare Browser Rendering48/100at most $0.10+ $5/mo plan

100 pages, one try each, measured Oct 1, 2026See every page →

Pricing and providers

Web Scraping Scrape page API pricing: one API, 5 interchangeable providers

The cheapest provider serves first. If it fails, the next one takes over in the same call.

Blocked is the share of calls where the website itself refused the page. It is not counted against uptime. Each provider after the first only sees the pages the ones before it failed on, which are the harder sites, so these figures are not a head-to-head comparison.

You pay
$7.00
$0.70/1k req, only for what you use. No monthly plan.
Your first 142 requests are free with the $0.10 starting balance.

Try it

Get Web Scraping scrape page in one request

formatsarray
Which representations of the page to return. Any combination of: markdown (page content as Markdown), html (the page HTML exactly as the browser received it, including head and script tags). Each requested format is returned under the matching output field. Defaults to both. rawHtml is a deprecated alias of html, returned under a rawHtml field for callers that predate the rename; send html instead.
requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `statusCode`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. A source that reports a field only in some cases, such as only when the website answered with an error, does not count as returning it.
Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 6 of 11 fields. See every field

{
  "found": true,
  "data": {
    "url": "https://www.example.com/blog/launch",
    "title": "Introducing Example 2.0",
    "description": "Everything new in the biggest Example release yet.",
    "markdown": "# Introducing Example 2.0\n\nToday we are shipping the biggest release in our history…"
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • urlstring

    https://www.example.com/blog/launch

    The full web address of the page to scrape, including its domain, for example https://example.com. The https:// prefix is optional.

  • blockAdsboolean

    When true (upstream default), strip ad and cookie-consent elements before capture. Set false to keep them.

  • excludeTagsarray

    CSS selectors to drop before capture (for example ["nav", "footer", ".ads"]). Applied after includeTags.

  • formatsarray

    Which representations of the page to return. Any combination of: markdown (page content as Markdown), html (the page HTML exactly as the browser received it, including head and script tags). Each requested format is returned under the matching output field. Defaults to both. rawHtml is a deprecated alias of html, returned under a rawHtml field for callers that predate the rename; send html instead.

  • includeTagsarray

    CSS selectors to keep. When set, only content matching these selectors is captured (for example ["article", "main"] or ["#content"]).

  • mobileboolean

    When true, render the page with a mobile viewport and user agent instead of desktop. Some sites serve materially different content to mobile.

  • onlyMainContentboolean

    When true, return only the main article content, stripping navigation, headers, footers, and other boilerplate. Defaults to false to capture the full page.

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `statusCode`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. A source that reports a field only in some cases, such as only when the website answered with an error, does not count as returning it.

  • waitForinteger

    Milliseconds to wait for the page to finish rendering before capture. Use this for JavaScript-heavy pages or single-page apps whose content loads after the initial paint. Capped at 15000 to stay within the request timeout. This wait is time you asked us to spend, so your response takes this much longer, and it is excluded from the latency published for this endpoint. If every provider that can wait fails, the page may still be returned, captured without the wait.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

datadata
  • descriptionstring

    Everything new in the biggest Example release yet.

    The page meta description.

  • htmlstring

    The page HTML exactly as the browser received it, head and script tags included. Present when 'html' is among the requested formats (the default).

  • languagestring

    Two-letter language code the page declares (its html lang attribute or the equivalent metadata).

  • markdownstring

    # Introducing Example 2.0 Today we are shipping the biggest release in our history…

    The page content as clean Markdown. Present when 'markdown' is among the requested formats (the default). Populated whenever the provider has data for the entity.

  • rawHtmlstring

    The same bytes as 'html'. Deprecated alias returned only when 'rawHtml' is among the requested formats; use 'html'.

  • statusCodeintegercan require

    HTTP status code the website answered with, such as 200, 404 or 500. Absent when it could not be determined. Some sources report it only when the website answered with an error; name `statusCode` in requireFields to be served only by a source that always reports it.

  • titlestring

    Introducing Example 2.0

    The page title from its metadata.

  • urlstring

    https://www.example.com/blog/launch

    The canonical source URL of the scraped page. Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the Web Scraping Scrape page API

The AnyAPI Web Scraping Scrape page API returns Web Scraping scrape page data as normalized JSON from one POST call to /v1/run/web.scrape. Scrape any web page and get its main content back as clean Markdown plus title and metadata. AnyAPI routes each request across 5 sources and falls back automatically when one fails. It costs from $0.70 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.0% of Web Scraping scrape page calls through AnyAPI succeeded, with a median response time of 2.8 seconds across 344,950 measured calls.

It costs from $0.70 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Scrape any web page and get its main content back as clean Markdown plus title and metadata. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 99.0% of Web Scraping scrape page calls through AnyAPI succeeded, with a median response time of 2.8 seconds across 344,950 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 142 Web Scraping Scrape page calls at $0.0007 each.

AnyAPI asks the next of its 5 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/web.scrape with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.