# CSS Meta Charset Extractor

> CSS Meta Charset Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-01).

Extracts the meta charset value from the meta[charset] element of a public webpage or raw HTML string

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/css-meta-charset?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/css-meta-charset-extractor-0ee9e74b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H19iMb32aoD7_5IbPMG7X

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 css-meta-charset-extractor-0ee9e74b -d '<json body>'
```

Example prompt: Can you extract the meta charset value from https://example.com — I need to know what character encoding that page declares in its HTML head?

## When to prefer this

Use this endpoint when you need to extract specifically the meta[charset] value from a public webpage or a raw HTML string in a safe, SSRF-protected way. Prefer the free sandbox endpoint POST /v1/sandbox/css-meta-charset first if available. Choose this over general HTML scrapers when you only need the charset metadata and want a lightweight, purpose-built extraction.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — fetch fails
- URL points to an internal or private network address — rejected by SSRF protection
- HTML does not contain a meta[charset] element — returns empty or null result
- HTML input exceeds 200,000 character limit — request rejected
- URL string shorter than 8 characters or longer than 2048 characters — validation error
- Malformed HTML that cannot be parsed — may return null or empty result
- Payment of $0.009 USDC not provided — 402 Payment Required response

## How this service works

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

## Output

Returns the value of the meta[charset] attribute found in the HTML head of the given URL or raw HTML string, such as 'UTF-8' or 'ISO-8859-1'. If no charset meta tag is found, the response will indicate absence.

## 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/css-meta-charset-extractor-0ee9e74b/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)
