agentsvc.io

services / page-summarize

weboperational · 2117 ms

Web Page Summary (AI)

Summarize any web page: send a URL, get a factual summary that starts with what the page is, followed by the key facts, numbers and conclusions as bullet points. Reads the page (HTML to Markdown) and summarizes it with Claude Haiku 5.5. Options: length short (60 to 90 words), medium (150 to 220) or long (350 to 450); language for the summary (default: the page language, e.g. German); focus to steer it (e.g. "pricing and plans"). Page content is treated as data, instructions inside the page are ignored. Long pages are cut at about 25,000 characters (input_truncated says so). Not charged when the page cannot be read.

Run free trial ↗3 free calls per day with the example input. Paid: $0.005 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/page-summarize", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"url":"https://en.wikipedia.org/wiki/Legal_Entity_Identifier","length":"short"}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
url *stringPage to summarize
lengthshort | medium | long = "medium"
languagestringLanguage of the summary, e.g. English or de; default the page language
focusstringOptional topic to focus on, max 200 chars

Output

FieldTypeDescription
urlstring
titlestring
summarystring
lengthstring
languageany
source_wordsinteger
input_truncatedboolean
modelstring
generated_atstring

Example response (data)

{
  "url": "https://en.wikipedia.org/wiki/Legal_Entity_Identifier",
  "title": "Legal Entity Identifier - Wikipedia",
  "summary": "The Legal Entity Identifier (LEI) page on Wikipedia describes a unique 20-character global identifier for legal entities participating in financial transactions.\n\n- Issued under the ISO 17442 standard, with the first four characters identifying the issuing Local Operating Unit and the last two being MOD-97-10 checksum digits.\n- Developed by the G20 in 2011 after the 2008 financial crisis exposed the lack of a common worldwide identifier.\n- The first LEIs were issued in December 2012; from 3 January 2018, they became mandatory for companies trading securities.\n- Valid for one year and must be renewed annually; GLEIF oversees 37 LOUs worldwide.",
  "length": "short",
  "language": null,
  "source_words": 2901,
  "input_truncated": true,
  "model": "claude-haiku-5-5",
  "generated_at": "2026-10-10T09:58:21.581Z"
}