# Preformatted Text Joined Text Extraction

> Preformatted Text Joined Text Extraction is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Extracts and joins all visible text from <pre> elements on a webpage or supplied HTML, filtered by a search term and optional attribute match.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-preformatted-text?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/preformatted-text-joined-text-extraction-5924c172
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WlQyLm2a11Z3BwAsG5epf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability preformatted-text-joined-text-extraction-5924c172 -d '<json body>'
```

Example prompt: 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'?

## When to prefer this

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).

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/preformatted-text-joined-text-extraction-5924c172/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
