# Page Weight & Resource Inventory

> Page Weight & Resource Inventory is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches an HTML page and returns a breakdown of its weight and resource counts (document bytes, script/stylesheet/image/iframe/font counts, inline script bytes, external hosts) plus a heaviness verdict.

## Facts

- Endpoint: GET https://intel.rallylive.ca/site/weight
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/page-weight-resource-inventory-dd1dd48d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nqbW6iz_cjer6gEtv_Nok

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 page-weight-resource-inventory-dd1dd48d
```

Example prompt: Can you check how heavy the page at https://example.com is — how many scripts, stylesheets, images, and external hosts it loads, and whether it's considered bloated?

## When to prefer this

Use this endpoint when you need a fast, lightweight check on a page's resource footprint without spinning up a headless browser. It's ideal for quick performance audits, detecting resource bloat, or inventorying external host dependencies from raw HTML. Prefer this over full browser-based tools when speed and cost matter and dynamic JS rendering is not required.

## Known failure modes

- URL is unreachable or returns a non-200 status — endpoint may return an error or empty resource counts
- Page requires JavaScript rendering to load resources — static HTML fetch will miss dynamically injected assets
- Page blocks non-browser user agents — request may be rejected or return minimal HTML
- Redirect chains may not be fully followed — final destination resource inventory may differ from expected
- Very large HTML documents may result in incomplete parsing or timeouts

## How this service works

Page weight and resource inventory from the HTML: document bytes, script/stylesheet/image/iframe/font counts, inline script bytes, external hosts contacted, and a simple heaviness verdict. A quick performance smell test without a browser. $0.01 per page.

## Output

Returns document byte size, counts of scripts, stylesheets, images, iframes, and fonts loaded by the page, the volume of inline script bytes, a list of external hosts contacted, and a simple 'heaviness' verdict indicating whether the page is considered too heavy for good performance.

## 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/page-weight-resource-inventory-dd1dd48d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
