# Code Snippets — Duplicate Attribute Values Finder

> Code Snippets — Duplicate Attribute Values Finder 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-17).

Parses an HTML page or supplied HTML string to find duplicate values for a specified attribute within code snippet elements.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-code-attribute-duplicates?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/code-snippets-duplicate-attribute-values-finder-25c170d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yL00Az_251zZ8hzMihMAB

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-duplicate-attribute-values-finder-25c170d3 -d '<json body>'
```

Example prompt: Check this HTML page at https://docs.example.com/api-reference for any duplicate 'id' attribute values among code snippet elements where the value is 'sample' — I want to know if that attribute is reused in multiple places.

## When to prefer this

Choose this endpoint when you need to statically audit HTML — either from a live public URL or a supplied HTML string — for duplicate attribute values specifically within code snippet elements. It is well-suited for documentation QA, pre-publish HTML validation, and accessibility or uniqueness audits on code blocks. Prefer it over generic HTML scrapers when you need a focused, preset-driven analysis of attribute duplication patterns without JavaScript execution overhead.

## Known failure modes

- URL unreachable or returns non-200 status — parsing cannot proceed
- HTML payload exceeds 100,000 character limit — request rejected
- Attribute name does not match required pattern (must start with letter, alphanumeric/colon/underscore/hyphen) — validation error
- No code snippet elements found in the provided HTML — empty result
- URL requires JavaScript rendering or login — content not accessible via static parse
- Term or attribute_value not found in any code elements — empty duplicate set returned

## How this service works

Code snippets — Duplicate attribute values: Duplicate attribute values 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 duplicate attribute values result.

## Output

Returns a bounded result indicating which code snippet elements contain duplicate values for the specified attribute, including the matching attribute value and any occurrences found across the parsed HTML — based on static parsing with no JavaScript rendering.

## 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-duplicate-attribute-values-finder-25c170d3/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)
