# extract-scripts-as-json-bulk

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

Bulk-extracts all script elements from up to 20 URLs concurrently and returns results as JSON, one entry per URL with per-item error handling.

## Facts

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

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-bulk-80fda4db
```

Example prompt: Pull all the script tags from these 15 pages and give me back the results as JSON — I need to see which third-party scripts each one loads: [list of URLs].

## When to prefer this

Choose this endpoint when you have a list of 2–20 URLs and need script elements extracted from all of them in a single call with concurrent processing. It is more efficient and cheaper than calling the single-URL endpoint repeatedly, and it returns results in input order with per-item error isolation so one failing URL does not block the rest.

## Known failure modes

- Individual URL fetch failure returns an error in that item's error field rather than failing the whole batch
- Exceeding 20 URLs per call results in rejection or truncation
- Unreachable or timeout URLs increment the failure count
- Malformed URLs in the input list cause per-item errors
- Payment not made results in HTTP 402 response blocking the call

## How this service works

Bulk extract scripts as json: up to 20 urls in one call, processed concurrently, results in input order with a per-item error field and a failure count. Same answer per item as the single endpoint. Batch enrichment for agents that hold a list. $0.10 per batch.

## Output

A JSON array with one entry per input URL, each containing the extracted script elements found on that page (matching the single-URL endpoint's response format), a per-item error field if fetching or parsing failed, and a top-level failure count indicating how many URLs could not be processed.

## 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-bulk-80fda4db/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)
