# AgentShelf CSS time[datetime] Extractor

> AgentShelf CSS time[datetime] Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-29).

Extracts datetime attribute values from HTML time elements (CSS selector time[datetime]) on a given public webpage or raw HTML input.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/css-time-datetime?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-css-time-datetime-extractor-5aa85520
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uMa31VgVFwrLZb6u7KUpg

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-css-time-datetime-extractor-5aa85520 -d '<json body>'
```

Example prompt: Can you extract all the datetime values from the time elements on this page: https://example.com/news/article-123 — I need the machine-readable timestamps embedded in those HTML time tags.

## When to prefer this

Use this endpoint when you need to extract structured datetime values from time elements in a webpage or HTML snippet, particularly for scraping publish dates, event times, or any semantic time data authored with the HTML5 time[datetime] pattern. Prefer the free sandbox version (/v1/sandbox/css-time-datetime) for testing; use this paid endpoint in production when the sandbox is unavailable or has limitations.

## Known failure modes

- URL is unreachable or returns a non-200 response — no content to parse
- No time[datetime] elements found in the HTML — empty result returned
- HTML input exceeds 200,000 character limit — request rejected
- URL or HTML string too short (under 8 characters) — validation error
- SSRF-protected URL (private IP range or internal host) blocked by the service
- Malformed HTML may result in incomplete or missed matches

## How this service works

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

## Output

A list of datetime attribute string values extracted from all time[datetime] elements found in the provided HTML or fetched from the given URL. Values are typically ISO 8601 formatted timestamps or date strings as authored in the page markup.

## 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-css-time-datetime-extractor-5aa85520/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)
