Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man scrape-website

/scrape-website

agentutility / web-probe / scrape-website
PRICE / CALL
$0.04
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobe
CATEGORY
utilities
STATUS
● live
NAME
scrape-website — fetch a public webpage into clean markdown when an agent needs page content and metadata for a recurring watch or extraction job
SYNOPSIS
POST https://x402.agentutility.ai/scrape-website
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Fetch a public webpage into clean markdown when an agent needs page content and metadata for a recurring watch or extraction job. Send one URL and select text, HTML, or markdown; receive the final URL, status, title, meta description, canonical URL, OpenGraph and Twitter cards, headings, body content, and optional links. It follows redirects and is suited to static pages and SSR sites; use website-screenshot for JS-heavy pages. Use it as a web scraping API, webpage-to-markdown converter, website metadata extractor, or URL content fetcher.

INPUT — request schema
propertytypedescriptionreq?
urlstringPublic URL to fetch and parse. Must include scheme (http/https). Follows redirects.required
formatstringBody output format. 'text' (default, plain text), 'html' (raw HTML body), or 'markdown' (clean markdown — best for LLM ingestion).
enum: text · html · markdown
optional
include_linksbooleanIf true, also returns an array of all <a href> links found on the page. Default false.optional
user_agentstringCustom User-Agent header. Defaults to a modern desktop Chrome UA.optional
OUTPUT — response shape
fieldtypedescription
urlstringFinal URL fetched after following redirects from the requested page.
final_urlstringFinal URL after redirects.
status_codenumberHTTP status code returned by the target server for the scrape request.
titlestringPage title pulled from the <title> tag or og:title fallback.
descriptionstringMeta description from the page's description, og:description, or twitter:description tag.
canonicalstringCanonical URL declared by the page's <link rel="canonical"> tag.
langstringLanguage code from the <html lang="..."> attribute (e.g. en, es).
h1stringText content of the page's first <h1> heading.
ogobjectAll og:* meta tags.
twitterobjectAll twitter:* meta tags.
textstringBody when format=text.
htmlstringBody when format=html.
markdownstringBody when format=markdown.
formatstringBody format returned: text, html, or markdown depending on the requested format param.
linksarrayArray of {href, text} when include_links=true.
body_charsnumberCharacter count of the extracted body content in the chosen format.
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/scrape-website \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the scrape-website tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
scrapefetchhtmlextractmetadataurl
methods
POST
cluster
webprobe
price
$0.04 USDC per call
ADJACENT — other endpoints in webprobe
endpointdescriptionprice
answer-webAnswers natural-language questions with live web research, returning a synthesized answer with inline [N] citations and the source URLs.$0.04
arxiv-summarizeTurn an arXiv paper into a structured research summary without reading the PDF.$0.04
rss-from-anythingTurn any webpage into an RSS feed, even sites that never published one.$0.04
scrapeScrape any webpage.$0.04
screenshotTurn any public URL into a PNG or JPG image on demand.$0.04
webpage-diffDetects changes on a webpage: fetches a URL, strips HTML to plain text, computes a SHA-256 hash, and (when given a previous hash or text)…$0.04
website-screenshotCapture a screenshot of any live URL and get back a hosted PNG or JPG.$0.04
arxiv-searchSearch arXiv's full paper catalog by query, author, category, or a specific id-list and get back structured results instead of scraping HTML.$0.03
SEE ALSO
agentutility · webprobe · x402 · mcp · llms.txt · registry.json · bazaar.x402.org