# x402 Money Farm: JSON-LD Extractor

> x402 Money Farm: JSON-LD Extractor is a paid API for AI agents from x402-money-farm.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-30).

Fetches a web page URL, extracts all JSON-LD blocks, flattens @graph structures, and indexes results by schema.org type with optional type filtering and microdata fallback.

## Facts

- Endpoint: GET https://x402-money-farm.fly.dev/v1/jsonld?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-money-farm-json-ld-extractor-063960fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NKImqGZij1RryrFqTRB-x

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 x402-money-farm-json-ld-extractor-063960fe
```

Example prompt: Pull all the JSON-LD structured data from https://www.example.com/product/widget-pro and filter it to only show me Product schema nodes.

## When to prefer this

Choose this endpoint when you need structured semantic data (schema.org types like Product, Article, Event, Recipe, Organization) from a webpage in a machine-readable, pre-parsed format. It is superior to raw HTML scraping for structured-data use cases because it handles @graph flattening and type indexing automatically. Prefer it over generic text extractors when the target page uses JSON-LD markup and you need clean, typed objects rather than plain text. Use the type filter parameter when you only care about a specific schema.org type to reduce response size.

## Known failure modes

- URL is unreachable or returns non-200 status — endpoint returns an error with the HTTP status code
- Page contains no JSON-LD or microdata — returns empty result set
- Malformed JSON-LD on the page — parsing errors reported in the response
- Invalid URL format supplied — validation error before fetch
- Rate limit or payment failure — 402 response if USDC payment is not processed
- Timeout on slow-loading pages — may return partial results or timeout error

## How this service works

JSON-LD Extractor — All JSON-LD blocks on a page, parsed, @graph-flattened and indexed by schema.org type, with optional type filtering and a microdata fallback.

## Output

A JSON object containing all JSON-LD blocks found on the page, parsed and @graph-flattened, with nodes indexed by their schema.org @type. If a type filter is supplied, only matching nodes are returned. If microdata fallback is enabled, microdata annotations are also parsed and included when JSON-LD is absent or sparse.

## 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",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Absolute http(s) URL of the page to process."
      },
      "type": {
       "type": "string",
       "description": "Return only nodes whose @type matches, e.g. Product."
      },
      "fresh": {
       "type": "boolean",
       "default": false
      },
      "microdata": {
       "type": "boolean",
       "default": false
      }
     },
     "additionalProperties": false
    }
   },
   "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/x402-money-farm-json-ld-extractor-063960fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-money-farm.fly.dev](https://www.zero.xyz/host/x402-money-farm.fly.dev/llms.txt)
