# code-block-extract-bulk

> code-block-extract-bulk is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Extracts code blocks from up to 20 URLs concurrently in a single call, returning results in input order with per-item error reporting.

## Facts

- Endpoint: GET https://intel.rallylive.ca/bulk/page/codeblocks
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/code-block-extract-bulk-36c606c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EOyT0TNkizZcUdNUEoj7_

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 code-block-extract-bulk-36c606c4
```

Example prompt: Can you extract all the code blocks from these 15 documentation pages for me at once? Here are the URLs: [list of URLs]. I need the code snippets from each page returned in the same order.

## When to prefer this

Choose this endpoint when you have a list of 2–20 URLs from which you need code blocks extracted and want to avoid making multiple sequential single-URL calls. It processes all URLs concurrently and returns results in input order, making it ideal for batch enrichment pipelines, documentation scrapers, and agent workflows that accumulate a list of pages before processing. For a single URL, prefer the /page/codeblocks endpoint directly.

## Known failure modes

- URL unreachable or returns non-200 status — per-item error field populated, result skipped
- Page contains no code blocks — empty result returned for that item
- Invalid or malformed URL in input list — per-item error reported
- Batch exceeds 20 URL limit — request rejected or truncated
- Rate limiting or network timeout on concurrent fetches — partial failures with error fields
- Non-HTML content at URL — parsing failure reported per item

## How this service works

Bulk code block extract: up to 20 urls in one call, processed concurrently, results returned in input order with a per-item error field and a count of failures. Same answer per item as the single /page/codeblocks endpoint (Code block extraction from a page). Batch enrichment for agents that hold a list. $0.01 per batch.

## Output

An ordered array of per-URL results matching the input order, where each item contains the extracted code blocks found on that page (same structure as the single /page/codeblocks endpoint), a per-item error field indicating any fetch or parse failure, and an overall count of failures across the batch.

## 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/code-block-extract-bulk-36c606c4/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)
