# extract-code-as-json-bulk

> extract-code-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-22).

Bulk-fetch up to 20 URLs concurrently and extract all code elements from each page, returning structured JSON results in input order with per-item errors and a failure count.

## Facts

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

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-bulk-467e2b46
```

Example prompt: Can you extract all the code blocks from these 15 documentation URLs and give me the results as JSON — I need them processed together in one batch so I get them back in the same order I sent them?

## When to prefer this

Choose this endpoint when you need to extract code elements from multiple pages (up to 20) and want concurrent processing in a single API call rather than making individual requests. It preserves input order and reports per-item errors, making it ideal for batch enrichment pipelines, bulk documentation scraping, or any workflow where you hold a list of URLs and need code extracted from all of them efficiently at $0.10 per batch.

## Known failure modes

- URL is unreachable or returns non-200 status — per-item error field is populated
- Page contains no code elements — empty result for that item
- More than 20 URLs submitted — request may be rejected or truncated
- Network timeout on one or more URLs — affected items flagged with errors
- Malformed URL in the input list — per-item error reported for that entry

## How this service works

Bulk extract code 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

Returns a JSON array with one entry per input URL in the same order they were submitted. Each entry contains the extracted code elements from that page (matching what the single-URL endpoint returns), a per-item error field indicating any fetch or parse failures, and a top-level failure count summarizing how many items encountered errors.

## 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-bulk-467e2b46/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)
