# Page Titles — HTML Fragment Extraction

> Page Titles — HTML Fragment 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-16).

Extracts the page title HTML fragment from a public URL or supplied HTML using static parsing with attribute-based targeting.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-title-html?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/page-titles-html-fragment-extraction-59a28b25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FSAuAOmyIYPA238zGe5Ub

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 page-titles-html-fragment-extraction-59a28b25 -d '<json body>'
```

Example prompt: Can you extract the page title HTML fragment from https://example.com/product-guide — look for the element with id 'main-title' and skip anything matching 'Old Title'?

## When to prefer this

Choose this endpoint when you need fast, lightweight static extraction of a page title HTML fragment from a public URL or raw HTML string, without JavaScript rendering. It is ideal for SEO audits, metadata collection, or content monitoring on publicly accessible static pages. Prefer it over full browser-based scraping tools when the page title is rendered server-side and no authentication is needed.

## Known failure modes

- URL is unreachable or returns a non-200 status — extraction fails with no result
- Page requires JavaScript rendering to display content — static parser returns empty or incomplete fragment
- Attribute or attribute_value does not match any element in the HTML — returns empty result
- Supplied HTML exceeds 100,000 character limit — request rejected
- URL exceeds 2,048 character limit — request rejected
- Login-protected or access-restricted pages cannot be accessed — no bypass is attempted

## How this service works

Page titles — HTML fragment extraction: HTML fragment extraction for Page titles. 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 html fragment extraction result.

## Output

Returns a bounded HTML fragment containing the matched title element found by static parsing of the supplied URL or HTML. The result includes the extracted text of the element matching the given attribute and value, suitable for further processing or display.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "default": "",
   "maxLength": 2048
  },
  "html": {
   "type": "string",
   "default": "<!doctype html><html><head></head><body><title id=\"sample\">Example product guide</title></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/page-titles-html-fragment-extraction-59a28b25/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)
