{"uid":"cap_WlQyLm2a11Z3BwAsG5epf","slug":"preformatted-text-joined-text-extraction-5924c172","name":"Preformatted Text Joined Text Extraction","description":"Preformatted text — Joined text extraction: Joined text extraction for Preformatted text. One public HTTPS page or supplied HTML; static parsing, no JavaScript rendering, login or access bypass. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded joined text extraction result.","url":"https://market.datapackvibe.com/x402/assistant-bx-web-preformatted-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","default":"","maxLength":2048},"html":{"type":"string","default":"<!doctype html><html><head></head><body><pre id=\"sample\" data-kind=\"example\">Example product guide</pre></body></html>","maxLength":100000},"term":{"type":"string","default":"product","maxLength":100,"minLength":1},"attribute":{"type":"string","default":"id","pattern":"^[a-zA-Z][a-zA-Z0-9:_-]{0,49}$","maxLength":50},"previous_texts":{"type":"array","items":{"type":"string","default":"","maxLength":1000},"default":["Older example"],"maxItems":200,"minItems":0},"attribute_value":{"type":"string","default":"sample","maxLength":200}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qYMiihdgbvJ7osC-XLBG7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts and joins all visible text from <pre> elements on a webpage or supplied HTML, filtered by a search term and optional attribute match.","exampleAgentPrompt":"Can you extract and join all the text from the <pre> elements on https://example.com/docs/guide that have the attribute 'data-kind' set to 'example', searching for the term 'product'?","exampleUseCases":[{"title":"Extract changelog entries from docs site","prompt":"Pull all the joined text from the <pre> blocks on https://myproject.io/changelog that have the attribute 'class' set to 'entry', filtering for the term 'release'."},{"title":"Scrape code comments from tutorial page","prompt":"Grab and combine all the text inside <pre> elements on https://learn.devdocs.io/tutorial that have the id 'code-block', searching for 'import'."},{"title":"Compare new preformatted content against known text","prompt":"Extract joined text from <pre> tags with attribute 'data-section' equal to 'guide' on https://docs.example.com/api, searching for 'authentication', and compare against my previous texts: ['Old auth guide text', 'Legacy token instructions']."}],"resultDescription":"Returns a single bounded joined text string containing the combined visible text content extracted from matching <pre> elements on the page, based on the supplied URL or HTML, search term, and optional attribute filter.","failureModes":["URL is not publicly accessible or returns a non-200 status — extraction fails with an error","Page requires JavaScript rendering — static parser returns no results or incomplete content","No <pre> elements match the specified attribute and attribute_value — returns empty result","HTML payload exceeds 100,000 character limit — request rejected","Search term not found in any matching elements — returns empty joined text","Malformed URL or HTML input — parsing error returned"],"whenToPreferThis":"Use this endpoint when you need to extract and join text specifically from HTML <pre> elements (preformatted text, code blocks, terminal output) on a static public page or known HTML snippet, especially when filtering by an attribute like id or class and a search term. Prefer over generic text extractors when the target content is structured in <pre> tags and static parsing is sufficient (no JavaScript rendering needed).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:39:23.548Z","isFirstParty":false,"canonicalSlug":"preformatted-text-joined-text-extraction-5924c172"}