# Extract Data Attributes as JSON

> Extract Data Attributes as JSON is a paid API for AI agents from page.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Fetches a web page and extracts all HTML data-* attributes, returning them as a structured JSON array with a count.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/data-attributes/json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-data-attributes-as-json-7d415907
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ch11-2mAIaD0Er_HlppzI

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 extract-data-attributes-as-json-7d415907
```

Example prompt: Can you fetch https://example.com/products and pull out all the HTML data-* attributes as a JSON array so I can see what metadata is embedded in the page elements?

## When to prefer this

Choose this endpoint when you specifically need to extract HTML data-* attributes from a page in structured JSON format, without needing a browser or JavaScript rendering. It is ideal for agent pipelines that need to programmatically inspect embedded metadata, analytics tags, or CMS-injected data attributes on a page. Prefer this over general-purpose scrapers when you need only data attributes in a clean, countable JSON array at low cost ($0.01/call).

## Known failure modes

- URL is unreachable or returns non-200 status — extraction fails with an error
- Page has no data-* attributes — returns empty array with count of 0
- URL points to a non-HTML resource (PDF, image, etc.) — parsing may fail or return empty results
- Rate limiting or network timeout from the target server — request fails
- Malformed URL input — returns validation error

## How this service works

Extract the page's data attributes as json: fetches the URL, pulls every data attributes element and returns them as a JSON array, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.

## Output

A JSON array of all data-* HTML attributes found on the page, with each element's attribute name and value, along with a total count of extracted attributes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/extract-data-attributes-as-json-7d415907/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from page.intel.rallylive.ca](https://www.zero.xyz/host/page.intel.rallylive.ca/llms.txt)
