# AgentShelf XPath Video Poster Extractor

> AgentShelf XPath Video Poster 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-02).

Extracts the poster attribute value from HTML video elements using the XPath expression //video/@poster, given a URL or raw HTML

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/xpath-video-poster?utm_source=zero.xyz
- Price: $0.002/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-video-poster-extractor-94fb8ce2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tudnf49KXB-dnmROMkeqa

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-video-poster-extractor-94fb8ce2 -d '<json body>'
```

Example prompt: Can you extract the poster image URL from the video element on this page: https://example.com/watch/movie-trailer — I need the value of the poster attribute from the video tag.

## When to prefer this

Use this endpoint when you need to programmatically extract the poster attribute from an HTML video element on a public web page, and you either have the URL or raw HTML available. Prefer the free sandbox endpoint POST /v1/sandbox/xpath-video-poster first; use this paid endpoint when the sandbox is unavailable or rate-limited. This is ideal for media scraping, content auditing, or building video preview features without writing custom XPath parsing code.

## Known failure modes

- No video element found on the page — returns empty or null result
- Page is behind authentication or returns non-200 status — fetch fails
- Video element exists but has no poster attribute — returns empty
- URL is unreachable or times out — network error response
- HTML input exceeds 200,000 character limit — request rejected
- URL string too short (under 8 chars) or too long (over 2048 chars) — validation error
- SSRF-protected URLs (e.g. internal IPs, localhost) are blocked

## How this service works

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

## Output

Returns the value of the poster attribute extracted from the first //video element found in the provided URL's page source or raw HTML, typically an image URL used as the video's thumbnail or preview image.

## 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-video-poster-extractor-94fb8ce2/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)
