# Extract Inline Code Elements as JSON

> Extract Inline Code Elements as JSON is a paid API for AI agents from page.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Fetches a web page URL and extracts all inline code elements, returning them as a structured JSON array with a count.

## Facts

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

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-inline-code-elements-as-json-5a78664b
```

Example prompt: Can you pull all the inline code elements from https://example.com/docs/getting-started and give me the full list as JSON?

## When to prefer this

Use this endpoint when you need a clean, structured JSON list of all inline code elements from a single page without spinning up a browser. Ideal for agent pipelines, QA tools, or developer tooling that needs to audit or inventory code snippets. Prefer this over general scraping tools when you specifically need inline code elements and want a ready-to-use JSON array with a count rather than raw HTML.

## Known failure modes

- URL is unreachable or returns a non-200 status — extraction fails with an error response
- Page has no inline code elements — returns an empty array with count of 0
- Page requires JavaScript rendering — since no browser is used, dynamically injected code elements may be missed
- Malformed or extremely large pages may cause timeouts or truncated results
- Payment not attached or insufficient — request rejected due to x402 payment requirement

## How this service works

Extract the page's inline code as json: fetches the URL, pulls every inline code element and returns them as a JSON array, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.

## Output

A JSON array containing every inline code element found on the page, accompanied by a count of total elements extracted. Each array entry represents one inline code snippet as it appears in the page source.

## 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-inline-code-elements-as-json-5a78664b/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)
