# extract-json-ld-as-json

> extract-json-ld-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-23).

Fetches a webpage and extracts all JSON-LD structured data elements, returning them as a JSON array with a count.

## Facts

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

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-json-ld-as-json-9cc20a1d
```

Example prompt: Can you fetch the JSON-LD structured data from https://example.com/product/widget and return all the schema.org markup as JSON?

## When to prefer this

Choose this endpoint when you need to programmatically extract only JSON-LD structured data from a webpage without a browser, at low cost ($0.01/page). It is purpose-built for schema.org/linked-data extraction in agent pipelines, unlike general-purpose scrapers that return full HTML or markdown. Prefer it over bulk sibling endpoints when processing a single URL.

## Known failure modes

- URL is unreachable or returns non-200 status — empty array or error response
- Page has no JSON-LD elements — returns array with count of 0
- Malformed JSON-LD on page — individual elements may be skipped or cause parse errors
- Rate limiting or access restrictions on target URL — fetch fails
- Invalid or missing URL query parameter — request rejected

## How this service works

Extract the page's json ld as json: fetches the URL, pulls every json ld 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 all JSON-LD script block contents found on the fetched page, plus a count of how many elements were found. Each element is the parsed JSON object from a <script type='application/ld+json'> tag.

## 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-json-ld-as-json-9cc20a1d/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)
