# AgentShelf H4 Text Extractor

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

Extracts all H4 heading text from a public webpage or provided HTML content in an SSRF-safe manner.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/profile-h4?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-h4-text-extractor-dc0708b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gWemcNsOWIy11628XeCrD

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-h4-text-extractor-dc0708b8 -d '<json body>'
```

Example prompt: Can you pull out all the H4 headings from this page: https://example.com/docs/api-reference? I need just the H4 text, nothing else.

## When to prefer this

Use this endpoint when you need specifically H4-level headings extracted from a page or HTML blob, and you want SSRF-safe fetching without running your own scraper. Prefer this over generic scraping tools when you only need H4 content and want a lightweight, cost-efficient ($0.001 USDC) extraction. Use the free sandbox endpoint /v1/sandbox/profile-h4 first for testing before paying.

## Known failure modes

- URL is unreachable or returns non-200 status — extraction fails with an error
- HTML input exceeds 200,000 character limit — request rejected
- URL is blocked by SSRF safety rules (e.g. internal/private IP ranges) — request rejected
- Page contains no H4 elements — returns empty list
- Malformed HTML may result in incomplete or unexpected extraction

## How this service works

Call when an agent needs h4 text extracted from a public page or HTML (SSRF-safe). Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/profile-h4 first.

## Output

A list of H4 heading text strings extracted from the given URL or HTML input, returned in document order. Each entry contains the plain text content of an H4 element found 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 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-h4-text-extractor-dc0708b8/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)
