Skip to content
Schema Generator
Menu

Q&A Page schema generator (JSON-LD)

A page with one question and the answers users posted to it, as on a forum or support community.

Rich result available: Q&A. Schema.org type QAPage.

1 of 3
Question (required)

QAPage rich results in Google

Google can show the question with its top answers. Only for pages where users ask and answer one question; a page of questions the site wrote itself is an FAQ page instead.

Google's q&a documentation

QAPage properties Google requires and recommends

PropertyStatusIn the form
questionRequiredQuestion
acceptedAnswerRecommendedAccepted answer
suggestedAnswerRecommendedOther answers

Q&A Page JSON-LD example

This is what the builder produces from the example data. Paste it into the page's HTML, in the <head> or the body.

{
  "@context": "https://schema.org",
  "@type": "QAPage",
  "mainEntity": {
    "@type": "Question",
    "name": "How do I add a line break in a chat message?",
    "text": "Enter sends the message. How do I start a new line instead?",
    "datePublished": "2026-03-01T09:30",
    "author": {
      "@type": "Person",
      "name": "Alex"
    },
    "answerCount": 2,
    "acceptedAnswer": {
      "@type": "Answer",
      "text": "Press Shift + Enter.",
      "url": "https://forum.example/q/42#answer-1",
      "upvoteCount": 12,
      "datePublished": "2026-03-01T09:42",
      "author": {
        "@type": "Person",
        "name": "Sam"
      }
    },
    "suggestedAnswer": [
      {
        "@type": "Answer",
        "text": "On mobile, the return key adds a new line; tap the arrow to send.",
        "url": "https://forum.example/q/42#answer-2",
        "upvoteCount": 3,
        "author": {
          "@type": "Person",
          "name": "Kim"
        }
      }
    ]
  }
}