# agentshelf.syntexa.ch CSS Script Type Extractor

> agentshelf.syntexa.ch CSS Script Type 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-09-29).

Extracts script[type] attribute values from HTML script tags on a given public page URL or raw HTML string, in an SSRF-safe manner.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/css-script-type?utm_source=zero.xyz
- Price: $0.008/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-css-script-type-extractor-7651cf4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_28wt6urpuoGu6wkw4LqLw

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-script-type-extractor-7651cf4f -d '<json body>'
```

Example prompt: Can you fetch this page at https://example.com and pull out all the script[type] attribute values from its HTML script tags?

## When to prefer this

Choose this endpoint when you need to specifically extract script[type] attribute values from a public URL or raw HTML in a reliable, SSRF-safe environment. It is ideal when you have a URL you cannot fetch yourself or need a sandboxed extraction. Prefer the free unpaid POST /v1/sandbox/css-script-type first if available; use this paid endpoint when that is unavailable or rate-limited.

## Known failure modes

- URL is unreachable or returns a non-200 response
- URL resolves to an internal/private IP (SSRF blocked)
- HTML input exceeds 200,000 character limit
- No script tags with a type attribute found (empty result)
- Malformed HTML prevents parsing
- URL parameter too short (under 8 chars) or too long (over 2048 chars)
- Payment not completed or insufficient USDC balance

## How this service works

Call when an agent needs script type values via script[type] from a public page or HTML (SSRF-safe). Exact $0.008 USDC. Prefer unpaid POST /v1/sandbox/css-script-type first.

## Output

Returns the list of script[type] attribute values found across all <script> elements in the provided page URL or raw HTML, enabling the agent to understand what kinds of scripts are embedded (e.g. text/javascript, module, application/json, text/template, application/ld+json).

## 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-script-type-extractor-7651cf4f/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)
