# agentshelf.syntexa.ch CSS Anchor Text Extractor

> agentshelf.syntexa.ch CSS Anchor Text Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Extracts anchor text from <a> elements on a public web page or raw HTML using CSS selector targeting, with SSRF protection

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/css-a-text?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-syntexa-ch-css-anchor-text-extractor-91984502
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xzNakVFH_1ShZvouha_Mp

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-syntexa-ch-css-anchor-text-extractor-91984502 -d '<json body>'
```

Example prompt: Can you grab all the anchor text from the links on https://example.com/blog — I want to see what the hyperlinks say on that page?

## When to prefer this

Use this endpoint when you need to extract anchor text specifically from <a> elements on a public webpage or raw HTML, and the unpaid sandbox POST /v1/sandbox/css-a-text is unavailable or rate-limited. Prefer the sandbox endpoint for free usage first. Choose this over general text extraction endpoints when you specifically need hyperlink/anchor text rather than body text or other element content.

## Known failure modes

- URL is private/internal or resolves to a metadata address (SSRF blocked)
- URL is unreachable or returns non-200 status
- HTML is malformed or contains no anchor elements, returning empty results
- Input exceeds maximum length (URL > 2048 chars, HTML > 200000 chars)
- Payment not provided or insufficient (x402 payment required for paid tier)
- URL scheme is unsupported (e.g. file://, ftp://)

## How this service works

Call when an agent needs anchor text via a from a public page or HTML (SSRF-safe). Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/css-a-text first.

## Output

Returns an array or list of text strings extracted from <a> anchor elements found within the provided URL or HTML content, using CSS selector targeting. The response reflects the visible hyperlink text on the page.

## 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 charset=\"utf-8\"><meta name=\"description\" content=\"Desc\">\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-syntexa-ch-css-anchor-text-extractor-91984502/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)
