# AgentShelf XPath A-Title Extractor

> AgentShelf XPath A-Title Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-24).

Extracts all title attributes from anchor elements (//a/@title) in a given public URL or raw HTML using XPath, with SSRF protection.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/xpath-a-title?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-xpath-a-title-extractor-e209c3c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y1RiSmOdsPj8ZQ6HZHctj

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 agentshelf-xpath-a-title-extractor-e209c3c2 -d '<json body>'
```

Example prompt: Can you extract all the title attributes from the anchor tags on https://example.com/articles and give me a list of them?

## When to prefer this

Use this endpoint when you specifically need to extract title attributes from anchor tags (//a/@title) via XPath from a public URL or raw HTML, and you want SSRF-safe fetching built in. Prefer this over generic scraping tools when you only need anchor title metadata rather than full page content. If a free sandbox endpoint (POST /v1/sandbox/xpath-a-title) is available, try that first to avoid the $0.009 USDC charge.

## Known failure modes

- URL is unreachable or returns a non-200 response — extraction fails with an error
- SSRF protection blocks private/internal IP ranges or localhost URLs — request rejected
- HTML input exceeds 200,000 character limit — request rejected
- No anchor elements with title attributes found — returns empty list
- Malformed HTML may cause incomplete or unexpected XPath results
- URL input exceeds 2,048 character limit — request rejected

## How this service works

Call when an agent needs title attributes of //a via //a/@title from a public page or HTML (SSRF-safe). Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/xpath-a-title first.

## Output

Returns a list of title attribute values found on all anchor elements (//a/@title) within the specified URL or HTML input. The response contains the extracted string values in order of appearance in the document.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 8,
   "description": "Public page to fetch. The selector or profile is fixed by the SKU. Provide url or html."
  },
  "html": {
   "type": "string",
   "examples": [
    "<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta name=\"description\" content=\"Desc\"><meta property=\"og:title\" content=\"OG\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"
   ],
   "maxLength": 200000,
   "minLength": 1,
   "description": "HTML to extract from locally. Provide html or url. When both are set, html is used."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-xpath-a-title-extractor-e209c3c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
