# AgentShelf XPath Source @src Extractor

> AgentShelf XPath Source @src Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-02).

Extracts all `src` attribute values from `//source` elements in a public webpage or raw HTML using XPath, with SSRF protection.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/xpath-source-src?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-xpath-source-src-extractor-30b708f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H2i-t5b55EBbgsRBE43GB

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-source-src-extractor-30b708f8 -d '<json body>'
```

Example prompt: Can you fetch the page at https://example.com/video and extract all the src attributes from its source elements for me?

## When to prefer this

Use this endpoint when you need to extract `src` attributes specifically from `//source` HTML elements on a public page or from a known HTML string, without writing your own XPath or web-fetching logic. Prefer the free `/v1/sandbox/xpath-source-src` variant first for testing. Choose this over generic scraping tools when you only need source-element src values and want a lightweight, SSRF-safe, paid API call at a fixed $0.008 USDC cost.

## Known failure modes

- URL is unreachable or returns a non-200 status — extraction fails with an error
- SSRF protection blocks the URL if it resolves to a private/internal IP range
- HTML is malformed or contains no source elements — returns an empty list
- HTML string exceeds the 200,000 character limit — request rejected
- URL or HTML not provided — schema validation error
- Page requires authentication or JavaScript rendering — content may be incomplete

## How this service works

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

## Output

Returns a list of `src` attribute values extracted from all `//source` elements found via XPath in the given webpage or HTML. Each value is a URL string pointing to a media resource referenced in a source tag.

## 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-source-src-extractor-30b708f8/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)
