# Code Snippets Literal Term Matches

> Code Snippets Literal Term Matches 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).

Searches a web page or supplied HTML for literal term matches within code snippet elements, returning matched text content.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-code-term?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-literal-term-matches-d17cdb8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r_Qp9qdiiv7OHcBtFHi6t

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-literal-term-matches-d17cdb8c -d '<json body>'
```

Example prompt: Search the page at https://docs.example.com/api-reference for code snippets that literally contain the term 'authentication', filtering to elements with the id attribute set to 'main-example'.

## When to prefer this

Choose this endpoint when you need to find literal string matches specifically inside code snippet HTML elements on a static, publicly accessible web page. It is purpose-built for developer documentation, tutorial pages, and code reference sites where you want to locate exact term occurrences in code blocks. Prefer this over general-purpose web scrapers when the target is code elements specifically, and over full-text search when you need element-scoped extraction rather than page-wide text search.

## Known failure modes

- URL is unreachable or returns a non-200 status, resulting in no content to parse
- HTML exceeds 100,000 character limit, causing rejection
- Search term is empty or missing (minLength 1 required)
- Page requires JavaScript rendering, login, or dynamic loading — not supported by static parser
- No code snippet elements match the specified attribute/attribute_value combination
- Attribute name doesn't match required pattern, causing validation error

## How this service works

Code snippets — Literal term matches: Literal term matches 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 literal term matches result.

## Output

Returns bounded literal term match results from code snippet elements found in the parsed HTML of the given URL or supplied HTML content — specifically the text of matched code elements that contain the specified search term, limited to one result set per call.

## 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-literal-term-matches-d17cdb8c/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)
