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.

POST/v1/run/web.scrape
Uptime
93.95%
30d · 7,504 calls
Requests
7,530
30d · weekly, last 12 wks
Response
2.6s
median · 30d

Try it

Make your first 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.
Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "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…"
  }
}
Response interface
interface WebScrapeResponse {
  data: {
    description: string;
    html?: string;
    markdown?: string;
    rawHtml?: string;
    title: string;
    url: string;
  } | null;
  found: boolean;
}

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

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/web.scrape
curl -X POST https://api.getanyapi.com/v1/run/web.scrape \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.example.com/blog/launch"}'
FieldTypeExample value
Request body
urlstring"https://www.example.com/blog/launch"The URL of the page to scrape.
blockAdsbooleanWhen true (upstream default), strip ad and cookie-consent elements before capture. Set false to keep them.
excludeTagsarrayCSS selectors to drop before capture (for example ["nav", "footer", ".ads"]). Applied after includeTags.
formatsarrayWhich 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.
includeTagsarrayCSS selectors to keep. When set, only content matching these selectors is captured (for example ["article", "main"] or ["#content"]).
mobilebooleanWhen true, render the page with a mobile viewport and user agent instead of desktop. Some sites serve materially different content to mobile.
onlyMainContentbooleanWhen true, return only the main article content, stripping navigation, headers, footers, and other boilerplate. Defaults to false to capture the full page.
waitForintegerMilliseconds 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.
Response
foundbooleantrue
dataobject
data.urlstring"https://www.example.com/blog/launch"
data.titlestring"Introducing Example 2.0"
data.descriptionstring"Everything new in the biggest Example release yet."
data.markdownstring"# Introducing Example 2.0\n\nToday we are shipping the biggest release in our history…"
Price
Price per requestUSD$0.0007
Price /1k reqUSD$0.70

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 4 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, 93.9% of Web Scraping scrape page calls through AnyAPI succeeded, with a median response time of 2.6 seconds across 7,504 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, each call draws it down, and a failed request costs $0.

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, 93.9% of Web Scraping scrape page calls through AnyAPI succeeded, with a median response time of 2.6 seconds across 7,504 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.