# Code Snippets Joined Text Extraction

> Code Snippets 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-21).

Extracts and joins all text content from code snippet elements on a web page or supplied HTML, filtered by a search term and optional HTML attribute/value.

## Facts

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

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 code-snippets-joined-text-extraction-f0e938d0 -d '<json body>'
```

Example prompt: Can you extract the joined text from all code snippet elements on https://docs.example.com/api-reference that contain the term 'authentication', specifically looking at elements where the id attribute equals 'auth-sample'?

## When to prefer this

Choose this endpoint when you need to extract and join text specifically from code snippet HTML elements (<code> tags) on a static public webpage or supplied HTML, with optional filtering by a search term and attribute/value pair. Prefer this over generic text extractors when the target content is code blocks specifically. Do not use if the page requires JavaScript rendering or login.

## Known failure modes

- URL is unreachable or returns a non-200 response
- HTML exceeds the 100,000-character limit
- No matching code elements found for the given term/attribute/value combination
- Attribute name does not match the pattern (must start with a letter, alphanumeric/colon/underscore/hyphen)
- term is empty or missing (minLength:1 enforced)
- Page requires JavaScript rendering (not supported — static parsing only)
- Page requires login or access bypass (not supported)

## How this service works

Code snippets — Joined text extraction: Joined text extraction for Code snippets. 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 representing the concatenated visible text content extracted from matching code snippet elements on the page, filtered by the specified search term and attribute/value constraints. Static parsing only — no JavaScript rendering or authentication bypass.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "default": "",
   "maxLength": 2048
  },
  "html": {
   "type": "string",
   "default": "<!doctype html><html><head></head><body><code id=\"sample\" data-kind=\"example\">Example product guide</code></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/code-snippets-joined-text-extraction-f0e938d0/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)
