---
title: "Generate valid, current-spec schema.org JSON-LD from plain fields — the complement to /api/schema/audit"
method: POST
path: "/api/schema/generate"
tags: ["SEO & Publishing"]
---

# Generate valid, current-spec schema.org JSON-LD from plain fields — the complement to /api/schema/audit

`POST /api/schema/generate`

## Request

- Base URL: `https://api.webbersites.com`
- URL: `https://api.webbersites.com/api/schema/generate`
- Auth: API key in header `X-PAYMENT`

Generate valid, current-spec schema.org JSON-LD from plain fields — the complement to /api/schema/audit. POST {type, fields}; returns correctly nested JSON-LD, a ready-to-embed <script> tag, and a self-audit. Types: Product, Review, Article, Recipe, VideoObject, LocalBusiness, Organization, BreadcrumbList. Current to 2026 Google guidance (interactionStatistic, Key Moments clips, etc).

Price: $0.005 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

## Request body

- object
  - `type` string, required: Product, Review, Article, Recipe, VideoObject, LocalBusiness, Organization, or BreadcrumbList
  - `fields` object, required: Plain fields for the type, e.g. {name, price, brand} for Product

## Response `200`

Success

- object
  - `type` string
  - `jsonld` object
  - `script_tag` string
  - `generation_notes` unknown[]
    - unknown
  - `self_audit` object

## Other responses

- `402`: Payment required — the response body lists accepted payment methods (amount, asset, network, pay-to address). Retry the request with a signed X-PAYMENT header.

---

[API](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api.md) · [All operations](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/webbersites/apis/webbersites-x402-data-api/revisions/c14a76c67a94?raw)
