# Toll402 JSON-LD Extractor

> Toll402 JSON-LD Extractor is a paid API for AI agents from toll402.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Fetches a public web page and extracts all JSON-LD structured data embedded in it, returning the parsed schema.org objects

## Facts

- Endpoint: POST https://toll402.dev/v1/t/jsonld_extract
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-json-ld-extractor-cd51e6ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U5kueY0jzVdpCKDy86XmW

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 toll402-json-ld-extractor-cd51e6ef -d '<json body>'
```

Example prompt: Can you extract the JSON-LD structured data from https://www.eventbrite.com/e/some-event-page and show me what schema.org types are embedded there?

## When to prefer this

Choose this endpoint when you need to extract machine-readable schema.org structured data that a page author has explicitly embedded, rather than scraping raw HTML or inferring metadata. Ideal for SEO analysis, product data enrichment, event aggregation, or any workflow where you trust the site's declared JSON-LD over inferred content. Prefer this over general web scrapers when the target is structured semantic markup specifically.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — extraction fails
- Page contains no JSON-LD script tags — returns empty or null structured data
- Malformed JSON-LD on the target page — parsing may fail or return partial results
- URL is behind a login wall or CAPTCHA — page content cannot be fetched
- Invalid URI format supplied — request rejected at schema validation

## How this service works

The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.

## Output

A JSON object with an 'ok' field and the extracted JSON-LD data parsed from the target page — typically an array of schema.org typed objects (e.g. Product, Event, Article, Organization, BreadcrumbList) found in the page's <script type='application/ld+json'> tags.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Public URL of the page to extract JSON-LD from"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-json-ld-extractor-cd51e6ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
