# extract-ids-as-json

> extract-ids-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 URL and extracts all HTML element IDs, returning them as a structured JSON array with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/ids/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-ids-as-json-0460142b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I-RxYK17hVqb_8-IeXYZ7

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-ids-as-json-0460142b
```

Example prompt: Can you fetch https://example.com and give me a JSON list of all the HTML element IDs on that page?

## When to prefer this

Choose this endpoint when you need a clean, structured JSON list of HTML element IDs from a single page without spinning up a headless browser. It is ideal for lightweight pipeline steps, UI audits, anchor-link verification, and automated test-selector discovery where only the id attributes matter and you don't need other page content.

## Known failure modes

- URL is unreachable or returns non-200 status — empty result or error response
- Page has no ID attributes — returns empty array with count 0
- URL is malformed or missing — request fails with validation error
- Page requires JavaScript rendering — IDs injected by JS may not be captured since no browser is used
- Rate limiting or payment failure for the $0.01 USDC x402 charge — request blocked

## How this service works

Extract the page's ids as json: fetches the URL, pulls every ids 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 HTML element ID attribute values found on the fetched page, accompanied by a count of how many IDs were discovered. The response is structured and machine-readable, suitable for direct use in pipelines or agent workflows.

## 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-ids-as-json-0460142b/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)
