# agentshelf.syntexa.ch XPath hreflang Extractor

> agentshelf.syntexa.ch XPath hreflang Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-29).

Extracts hreflang attribute values from all anchor tags on a given public webpage or raw HTML using XPath (//a/@hreflang), in an SSRF-safe manner.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/xpath-a-hreflang?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-syntexa-ch-xpath-hreflang-extractor-8802a407
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ri2v9h8QD1NjSuYHRKtkh

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-xpath-hreflang-extractor-8802a407 -d '<json body>'
```

Example prompt: Can you pull all the hreflang attribute values from the anchor tags on https://example.com — I want to see what language and region alternates that page declares?

## When to prefer this

Use this endpoint when you need a fast, paid, SSRF-safe extraction of hreflang attributes from anchor tags on a public URL or raw HTML. Prefer the free sandbox POST /v1/sandbox/xpath-a-hreflang first if available. Choose this over general-purpose scrapers when you specifically want XPath-targeted extraction of hreflang annotations without building your own parser.

## Known failure modes

- URL is unreachable or returns a non-200 response — extraction fails with a fetch error
- HTML is malformed and XPath cannot parse any anchor elements — returns empty result
- No anchor tags with hreflang attributes exist on the page — returns an empty list
- URL exceeds 2048 characters or HTML exceeds 200,000 characters — rejected with validation error
- SSRF-blocked URL (private IP ranges, localhost) — rejected for security reasons
- Payment of $0.01 USDC not provided — request rejected with 402 Payment Required

## How this service works

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

## Output

Returns a list of hreflang attribute values found across all anchor elements (//a/@hreflang) in the provided webpage or HTML, indicating the language and regional targeting of linked pages.

## 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-syntexa-ch-xpath-hreflang-extractor-8802a407/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)
