# extract-scripts-as-json-watch

> extract-scripts-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-13).

Monitors a web page's script tags (as JSON) for changes and returns what changed, before/after values, and when it was last seen.

## Facts

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

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-scripts-as-json-watch-713f21ae
```

Example prompt: Keep an eye on https://example.com and let me know whenever its script tags change — I want to see exactly which scripts were added or removed compared to the last check.

## When to prefer this

Choose this endpoint when you need to detect changes to script tags on a specific web page over time, particularly for security monitoring (unauthorized script injection), competitive intelligence (new analytics or ad tools), or compliance checks. It is purpose-built for change detection with before/after diffing and 90-day history, making it superior to a plain script extraction endpoint when temporal comparison matters.

## Known failure modes

- URL is unreachable or returns non-200 status — check returns error or no data
- No previous call exists for the URL — first call has no baseline to compare against, changed may be null or false
- Page requires authentication or JavaScript rendering — scripts may be incomplete or missing
- URL redirects — may cause comparison drift if redirect destination changes
- 90-day history window exceeded — baseline lost, comparison resets

## How this service works

Change watch for extract scripts 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 script tags as a JSON object, a boolean 'changed' flag indicating whether scripts differ from the previous call, a list of fields that changed with before and after values, and the timestamp of when the page was last seen. Previous results are retained for 90 days for comparison.

## 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-scripts-as-json-watch-713f21ae/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)
