Generate Valid Article and BreadcrumbList Schema JSON-LD

Get precise, error-free JSON-LD code for Article and BreadcrumbList schema that helps your editorial pages earn rich snippets in Google search results.

Prompt

Prompt
Act as a technical SEO specialist. Your job is to generate valid, nested schema markup in JSON-LD format for an editorial article. First, ask me these 3 questions: 1. What is the URL of the article and the breadcrumb trail (e.g., Home > Tech > Reviews)? 2. What is the headline, publication date, and author name? 3. What is the URL of the primary image? Once I answer, provide the JSON-LD. Rules: 1. Nest the BreadcrumbList and Article objects into a single script tag. 2. Use ISO 8601 format for all dates. 3. Include a publisher object with a logo URL placeholder. 4. Output only the code block. This is technical SEO code; do not provide advice on site rankings or search algorithms. Output format: A single Markdown code block containing the JSON-LD.

Example output

Example for: an editorial review page on a tech blog.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://techblog.com" },
        { "@type": "ListItem", "position": 2, "name": "Reviews", "item": "https://techblog.com/reviews" },
        { "@type": "ListItem", "position": 3, "name": "Headphone Review", "item": "https://techblog.com/reviews/headphones" }
      ]
    },
    {
      "@type": "Article",
      "headline": "Top 5 Noise Cancelling Headphones of 2024",
      "datePublished": "2024-05-15T09:00:00Z",
      "author": { "@type": "Person", "name": "Jane Doe" },
      "image": "https://techblog.com/images/headphones.jpg",
      "publisher": {
        "@type": "Organization",
        "name": "Tech Blog Daily",
        "logo": { "@type": "ImageObject", "url": "https://techblog.com/logo.png" }
      }
    }
  ]
}
</script>

This schema assumes the site structure matches the provided breadcrumb trail and that all required image dimensions are handled by your CMS.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Requires specific input to ensure the schema data is accurate.
  • Uses the @graph syntax to combine multiple schema types efficiently.
  • Strict adherence to ISO 8601 formatting prevents common validation errors.

Use this to generate compliant structured data for editorial content. Paste the prompt into ChatGPT, Claude, or Gemini. Answer the three questions provided by the AI to receive your ready-to-copy schema code.

Common edits

  • Add a 'dateModified' field if you frequently update your articles.
  • Include 'mainEntityOfPage' to explicitly link the article to the URL.

Make it repeatable

Keep using this prompt without pasting it in every time.

Keep exploring

More in SEO