PeumeAPI

Search & SEO

Web Scrape

Scrape any web page and get its content back as clean Markdown (or HTML, or raw HTML) plus title and metadata.

$0.0014 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/web-scrape \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "formats": [
      "markdown",
      "html"
    ],
    "onlyMainContent": false,
    "url": "https://example.com"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: web-scrape.

Parameters

fieldsstring

Comma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.

max_itemsinteger

Caps the result rows returned; `_truncated` says how many were withheld. Not the charge.

summaryboolean

`true` returns only an outline: keys, item counts, per-field sizes.

jqstring

jq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.

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

Example: ["markdown","html"]

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.

Example: false

urlRequiredstring

The URL of the page to scrape.

Example: https://example.com

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 lon

Other ways to do it

Same job, other sources, cheapest first.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.