Page Summarizer API
GET /api/summarize $0.015 per call
USDC on Base · x402
Quick extractive summary of any web page: fetch the URL, extract the main article, and return the key sentences (TextRank) instead of the full text. For agents that want the gist of a page, not a full scrape. No AI — fast and deterministic.
Parameters
| Name | In | Description | |
|---|---|---|---|
url | query | required | Public http(s) URL of the page to summarize |
sentences | query | How many key sentences to return (1-10, default 3) |
Example request
curl "https://api.webbersites.com/api/summarize?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FWeb_scraping&sentences=3"
# first call returns 402 + payment requirements; an x402 client pays and retries automaticallyExample response
{
"url": "https://example.com/article",
"title": "Example Article",
"summary": "The most important sentence. The second key sentence. A third.",
"key_sentences": [
"The most important sentence.",
"The second key sentence.",
"A third."
],
"original_word_count": 1200,
"summary_word_count": 42,
"method": "extractive (textrank)"
}MCP tool: get_summarize — via npx -y webbersites-x402-mcp (local, key stays on your machine) or the remote endpoint https://api.webbersites.com/mcp.
How payment works
There is no signup and no API key. Call the endpoint; it replies 402 Payment Required with machine-readable payment requirements. Your client signs a USDC transfer authorization (EIP-3009, gasless) and retries with the X-PAYMENT header — @x402/fetch does this automatically. See the overview for a working snippet.