The generate endpoint builds a valid JSON-LD object from a Schema.org type name and a set of field values you provide. You can call it without authentication as a guest, or as an authenticated user to apply generation against your account’s usage quota and benefit from higher rate limits. This endpoint is useful when you want to programmatically generate structured data — for example, as part of a content publishing pipeline or a custom schema tooling workflow.Documentation Index
Fetch the complete documentation index at: https://docs.schemagen.io/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Request body
The Schema.org type name to generate (e.g.,
Article, Product, LocalBusiness, FAQPage). The value must match a type supported by SchemaGen. If the type is unrecognized, the API returns 400 with a list of supported types.An object containing the field values for the schema. The accepted fields depend on the
type you specify. Required fields for the given type must be present or the API returns a validation error.Response
The generated JSON-LD object, ready to embed in a
<script type="application/ld+json"> tag. Includes @context set to https://schema.org and @type matching the requested type.Code examples
Example response
Error responses
400 — invalid type
If you pass an unsupportedtype, the API returns 400 with a message listing valid types:
400 — validation failed
If yourdata object is missing required fields or contains invalid values for the given type, the API returns 400 with a structured breakdown:
429 — rate limit exceeded
403 — usage limit reached
Authenticated users whose plan quota is exhausted receive a403 with error code limit_reached:
Guest (unauthenticated) callers are not subject to usage quotas — only IP-based rate limits. If you need to call this endpoint at high volume from a server, authenticate your requests to get a per-user rate limit and quota tracking against your plan.