# Extract Internal Links as JSON

> Extract Internal Links 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-20).

Fetches a given URL and returns all internal links found on the page as a structured JSON array with a count.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/internal-links/json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-internal-links-as-json-3c60da82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BVe1kfm1W3yB2ZtwGdxa9

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-internal-links-as-json-3c60da82
```

Example prompt: Can you extract all the internal links from https://example.com/blog as a JSON array so I can see where the page links within the same site?

## When to prefer this

Choose this endpoint when you need a structured, machine-readable JSON list of internal links from a single page without spinning up a browser or full crawl. Ideal for pipelines, agents, and automation tasks that need to process or audit internal site navigation, build sitemaps, or feed link data into downstream steps. Prefer it over full-site crawlers when you only need one page's internal links and want minimal cost ($0.01/call).

## Known failure modes

- URL is unreachable or returns a non-200 status — likely returns an error or empty result
- Page blocks server-side fetching (bot protection, Cloudflare) — may return empty array or error
- Page has no internal links — returns an empty array with count 0
- Invalid or malformed URL input — may return an error response
- JavaScript-rendered links not captured — endpoint does not execute JS, so dynamically inserted links may be missed

## How this service works

Extract the page's internal links as json: fetches the URL, pulls every internal links 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 of all internal links (same-domain hrefs) found on the fetched page, along with a count of how many were found. No browser rendering required — pure server-side fetch and parse.

## 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-internal-links-as-json-3c60da82/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)
