{"uid":"cap_SyPfeRX8b4lmPYIGKCh6s","slug":"schema-org-json-ld-generator-api-webbersites-com-e6a0fdcf","name":"Schema.org JSON-LD Generator (api.webbersites.com)","description":"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).","url":"https://api.webbersites.com/api/schema/generate","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["type","fields"],"properties":{"type":{"type":"string","description":"Product, Review, Article, Recipe, VideoObject, LocalBusiness, Organization, or BreadcrumbList"},"fields":{"type":"object","description":"Plain fields for the type, e.g. {name, price, brand} for Product"}}},"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","properties":{"type":{"type":"string"},"jsonld":{"type":"object"},"script_tag":{"type":"string"},"self_audit":{"type":"object"},"generation_notes":{"type":"array"}}}}}}},"responseSchema":{"type":"json","example":{"type":"Product","jsonld":{"name":"Widget Pro","@type":"Product","offers":{"@type":"Offer","price":"19.99","priceCurrency":"USD"},"@context":"https://schema.org"},"script_tag":"<script type=\"application/ld+json\">…</script>","self_audit":{"required_missing":[],"rich_result_status":"active"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_D5nMbQpVBh_SBw2__JsCV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates valid, current-spec schema.org JSON-LD markup from plain input fields, returning nested JSON-LD, a ready-to-embed script tag, and a self-audit report.","exampleAgentPrompt":"Generate a schema.org Product JSON-LD for my item called 'Ergonomic Mesh Chair', priced at $249.99, brand 'ComfortPro', with a 4.5 star aggregate rating from 128 reviews — give me the ready-to-embed script tag too.","exampleUseCases":[{"title":"Recipe structured data for food blog","prompt":"Create a schema.org Recipe JSON-LD for my banana bread recipe — it takes 15 minutes to prep, 60 minutes to bake, serves 8, has a 4.8 star rating from 312 reviews, and the main ingredients are bananas, flour, sugar, eggs, and butter. Give me the embed-ready script tag."},{"title":"LocalBusiness schema for new café","prompt":"Build a LocalBusiness schema.org JSON-LD for my coffee shop called 'Morning Grounds', located at 42 Elm Street, Austin TX 78701, open Monday–Saturday 7am–6pm, phone number 512-555-0198, and we specialize in specialty espresso drinks. I need the full script tag ready to drop into my website's head section."},{"title":"VideoObject markup with Key Moments","prompt":"Generate a VideoObject JSON-LD for my YouTube tutorial called 'How to Set Up a Standing Desk', uploaded on March 10 2025, 18 minutes long, with Key Moments at 0:30 for 'Unboxing', 3:45 for 'Assembly', and 12:00 for 'Final Adjustments'. Include the embed-ready script tag and flag any issues in the audit."}],"resultDescription":"Returns a correctly nested JSON-LD object conforming to current 2026 Google guidance, a ready-to-embed <script type='application/ld+json'> HTML tag, and a self-audit report flagging any issues with the generated markup for the requested schema type.","failureModes":["Unsupported schema type provided — endpoint only handles Product, Review, Article, Recipe, VideoObject, LocalBusiness, Organization, BreadcrumbList","Missing required fields for the chosen type — audit report may flag required properties as absent","Malformed fields object — returns error if fields cannot be mapped to the schema type","Network/payment failure — x402 payment not processed, request rejected"],"whenToPreferThis":"Use this endpoint when you need to programmatically generate valid, up-to-date schema.org JSON-LD for SEO purposes and want both the structured output and an instant self-audit in one call. Prefer this over manual markup when working with Google's 2026 guidance requirements (interactionStatistic, Key Moments, etc.) or when you need a ready-to-embed script tag without post-processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:47:22.870Z","isFirstParty":false}