{"uid":"cap_ib3sdI22dEhEG_fz40oyn","slug":"capi2-agent-commerce-web-extract-f6de4b1e","name":"CAPI2 Agent Commerce Web Extract","description":"Programmable authority checks and tamper-evident receipts for autonomous agents, sold through sustainable x402 commerce.","url":"https://capi2-agent-commerce.vandurmedries.workers.dev/v1/web-extract","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"query":{"type":"string","maxLength":300},"max_chars":{"type":"integer","maximum":12000,"minimum":500}}},"responseSchema":{"type":"json","example":{"text":"Example Domain...","final_url":"https://example.com/","truncated":false,"content_type":"text/html","content_sha256":"..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O94XQcneroJLlV88Z4TFB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and extracts text content from a given URL with a verifiable receipt, using x402 micropayment-gated web access.","exampleAgentPrompt":"Can you fetch the text content from https://example.com/article and extract up to 5000 characters, focusing on anything related to climate change?","exampleUseCases":[{"title":"Research article text extraction","prompt":"Go to https://www.bbc.com/news/science-environment-68000000 and pull out up to 8000 characters of text, focusing on the main article body about renewable energy."},{"title":"Competitor pricing page scrape","prompt":"Fetch the content of https://stripe.com/pricing and extract up to 4000 characters — I want to see their current pricing tiers and fees."},{"title":"Legal document text retrieval","prompt":"Retrieve the text from https://tosdr.org/en/service/236 up to 10000 characters so I can review the key terms of service clauses."}],"resultDescription":"Returns a JSON object with the extracted plain text from the page (up to max_chars), the final resolved URL after any redirects, a boolean indicating whether the content was truncated, the content MIME type, and a SHA-256 hash of the content for verifiable provenance.","failureModes":["URL is unreachable or returns a non-200 status — endpoint may return an error or empty text","Content exceeds max_chars and is silently truncated — check the `truncated` field","Dynamic JavaScript-heavy pages may yield little or no useful text if server-side rendering is absent","Invalid URI format in the url field triggers a validation error","Payment failure via x402 results in a 402 response before content is returned"],"whenToPreferThis":"Choose this endpoint when you need simple, fast text extraction from a URL with a verifiable content hash (SHA-256) for auditability, and you are operating in an x402 micropayment-enabled agent pipeline. It is well-suited for agents that need lightweight, per-call web access without managing browser infrastructure, and where content authenticity (via hash receipts) matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:02.866Z","isFirstParty":false}