{"uid":"cap_VWzlgkp3csNTmQcQKCEeY","slug":"vendsdk-fetch-text-web-page-to-plain-text-02f30486","name":"VendSDK Fetch Text — Web Page to Plain Text","description":"Fetch a public page and return plain text (HTML stripped) for research, RAG, and summarization agents","url":"https://vendsdk.com/api/v/fetch-text","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Public https:// page URL"},"max_chars":{"type":"string","description":"Max text chars default 12000"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"text":{"type":"string"},"chars":{"type":"number"},"title":{"type":"string"},"service":{"type":"string"},"truncated":{"type":"boolean"}}}}}}},"responseSchema":null,"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_MjErsEwxXivHU8KDmf-wJ","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 a public URL and returns its content as stripped plain text, with title and truncation metadata, for use in research, RAG pipelines, and summarization agents","exampleAgentPrompt":"Can you fetch the plain text from https://en.wikipedia.org/wiki/Large_language_model and give me the readable content, up to about 8000 characters?","exampleUseCases":[{"title":"RAG pipeline document ingestion","prompt":"Pull the plain text from https://docs.openai.com/guides/embeddings — I need the stripped readable content to feed into my embedding pipeline, limit it to 10000 characters."},{"title":"Research article summarization","prompt":"Grab the text from this article at https://www.technologyreview.com/2024/05/01/ai-agents-overview/ and strip out all the HTML so I can summarize what it says."},{"title":"Competitive intelligence monitoring","prompt":"Fetch the plain text content from https://competitor.com/pricing so I can see what their current pricing page says — just the readable text, no markup."}],"resultDescription":"A JSON object containing: ok (boolean success flag), text (plain text content with HTML stripped), chars (character count of returned text), title (page title extracted from HTML), service (identifier string), and truncated (boolean indicating whether the text was cut off at max_chars limit).","failureModes":["Non-HTTPS or private URLs will be rejected — only public https:// URLs are accepted","URL is unreachable or returns non-200 status — ok will be false","Page uses heavy JavaScript rendering and content may not be fully visible to a plain HTTP fetch","max_chars parameter passed as non-string may cause schema validation errors","Very large pages may be truncated (truncated: true) if content exceeds max_chars limit","Paywalled or bot-blocked pages may return minimal or no useful text content"],"whenToPreferThis":"Choose this endpoint when you need clean, readable plain text from a public webpage for downstream NLP tasks like summarization, RAG ingestion, or research — especially when you want HTML stripped automatically without running a headless browser. It is the right choice over raw HTTP fetch endpoints when you specifically need text extraction rather than headers, status codes, or structured data. Prefer it over general web crawlers when you need a single-page, per-call, pay-per-use model with predictable cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:34:29.808Z","isFirstParty":false}