# extract-code-as-json-watch

> extract-code-as-json-watch is a paid API for AI agents from page.intel.rallylive.ca, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-20).

Monitors a web page for changes in extracted code blocks (as JSON), returning current values, a changed flag, field-level before/after diffs, and last-seen timestamp.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/watch/page/code/json?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-code-as-json-watch-cc80cdad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MpI_zLxIcOdfKGUmraUid

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-code-as-json-watch-cc80cdad
```

Example prompt: Keep an eye on https://docs.example.com/api-reference for any changes to the code snippets on that page and let me know if anything is different from last time you checked.

## When to prefer this

Use this endpoint when you need to detect changes specifically in code blocks on a web page over time, with automatic diffing against a stored prior result. Prefer this over a generic page-change monitor when the target content is structured code (e.g. API examples, SDK snippets, documentation samples) and you need field-level before/after diffs rather than raw text diffing. The 90-day history window and $0.02/check pricing make it suitable for scheduled polling without building your own state management.

## Known failure modes

- URL is unreachable or returns non-200 status — extraction fails and no comparison is made
- First call for a URL returns no prior result — 'changed' may default to false or null with no before/after diff
- Page has no code blocks — returns empty extraction with no change data
- 90-day history expired — previous result unavailable, comparison resets
- Dynamic JavaScript-rendered code not captured if page requires JS execution

## How this service works

Change watch for extract code as json: runs the check, compares it with the result from your previous call for the same url (kept 90 days) and returns the current answer, changed true/false, the fields that changed with before/after values, and when it was last seen. Schedule it to be alerted when this changes. $0.02 per check.

## Output

Returns the current extracted code blocks as a JSON structure, a boolean 'changed' flag indicating whether the content differs from the previous check (stored up to 90 days), a list of fields that changed with their before and after values, and a timestamp of when the content was last seen.

## 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-code-as-json-watch-cc80cdad/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)
