Schema Visualizer

Generate Schema

Create a new schema markup using our Schema Generator API. This endpoint supports various schema types and returns validated JSON-LD schema markup.

POST /api/v1/schema/generate

Parameters

Parameter Type Description
type required string The type of schema to generate (e.g., Article, Product)
data required object The data to include in the schema markup
cURL
Node.js
Python
Example Request
curl --request POST \
  --url https://api.schemavisualizer.com/v1/schema/generate \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "type": "Article",
    "data": {
      "headline": "Example Article",
      "author": {
        "name": "John Doe"
      }
    }
  }'

Response

200: Success
{
  "success": true,
  "schema": {
    "@context": "https://schema.org",
    "@type": "Article",
    "headline": "Example Article",
    "author": {
      "@type": "Person",
      "name": "John Doe"
    }
  }
}