Skip to content

JSON-LD output

Fill URL, question, and accepted answer to generate QA schema.

This tool checks one thing. Our audit checks 190+.

DarnItSEO Audit scans your entire site and writes the fix instructions for every issue it finds. Included in every yearly plan.

Markup for one question and the answers people gave it

This tool builds QAPage structured data in JSON-LD, the markup for a page built around a single question that users answer: a forum thread, a community help post, or a question page on a Q&A site. You enter the question, the accepted (best) answer, any other answers, and optional authors, date and upvote count, and the generator returns a ready-to-paste script block with the correct nesting: a QAPage holding one Question, which holds an acceptedAnswer and a suggestedAnswer list.

The defining feature of QAPage is that the answers come from users, not from the site. It is not for a list of questions your team wrote and answered; that is FAQPage, which the FAQ Schema Generator builds. Choosing the right type matters because Google applies different rules to each and ignores markup that does not fit the page.

QAPage or FAQPage? A two-question test

Ask two things. Who wrote the answers? If your own staff did, it is FAQPage. And how many questions is the page about? QAPage covers exactly one question per page, with possibly many answers; FAQPage covers several questions, each with exactly one official answer. A product help page with ten questions your team answered is FAQPage. A thread where a customer asked one question and three other customers replied is QAPage.

If your forum threads are open discussions rather than questions looking for an answer, neither type fits well. Schema.org's DiscussionForumPosting, which Google also documents, is meant for that kind of conversation.

Fields this generator fills and the ones it leaves to you

Always included: the page url, the Question with its name (the question title) and text (the full question, or the title again if you left the detail field empty), an answerCount that counts the accepted answer plus any suggested ones, and an acceptedAnswer with its text and upvoteCount.

Included when you fill them in: the question author, the answer author (defaults to the question author if left blank), and a single date that is applied to both the question and the accepted answer.

Worth adding by hand: suggested answers come out with their text and an upvoteCount of 0, because the form has no per-answer author or vote fields. If the real thread shows authors, dates and votes for those replies, edit the output to add them so the markup reflects the page. Google's QAPage documentation also recommends a url for each answer pointing to its anchor on the page, which you can add the same way.

A complete QAPage example

A forum question with an accepted answer and one other reply. Every value here must match what visitors see in the thread, including the vote counts.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "QAPage",
  "url": "https://forum.example.com/q/4182",
  "mainEntity": {
    "@type": "Question",
    "name": "Why does my sourdough starter smell like nail polish?",
    "text": "My starter is 10 days old and smells sharp, like acetone. Is it ruined?",
    "answerCount": 2,
    "author": { "@type": "Person", "name": "Priya K." },
    "datePublished": "2026-09-02",
    "acceptedAnswer": {
      "@type": "Answer",
      "text": "It's hungry, not ruined. An acetone smell means the yeast has run out of food. Feed it twice a day at a 1:1:1 ratio and the smell fades within a few days.",
      "upvoteCount": 41,
      "author": { "@type": "Person", "name": "Tom B." },
      "datePublished": "2026-09-02"
    },
    "suggestedAnswer": [
      {
        "@type": "Answer",
        "text": "Try a warmer spot too. Mine smelled the same at 18°C and was fine once I moved it near the oven.",
        "upvoteCount": 6
      }
    ]
  }
}
</script>

Why authors and votes carry so much weight

People and answer engines value community answers because they come from real experience. The author name, the vote count and the date are how that context travels with the answer when it is read by a machine. An accepted answer with a named author and dozens of votes tells a parser which reply the community trusted; a bare block of text does not. Our E-E-A-T guide explains why first-hand experience matters to Google in general.

That only works if the signals are honest. Invented upvote counts or authors are fabricated engagement, and Google's structured data policies treat markup that misrepresents the page as spam. Copy the real numbers from the thread and update them when they change.

Adding QAPage markup to a forum or help site

WordPress (bbPress, forum plugins, custom post types)

For a handful of key threads, paste the generated block with a header code plugin such as WPCode, limited to that thread's URL. For a whole forum, generate the markup in the thread template from the stored question, replies, authors and votes, so every thread gets accurate markup automatically and it updates as replies arrive.

Custom templates and headless setups

Render the JSON-LD on the server from the same data that renders the thread. That keeps answerCount, votes and the accepted answer in sync and puts the markup in the initial HTML, where every crawler can read it.

Google Tag Manager

A Custom HTML tag works for a one-off page, but thread data changes constantly, so GTM is a poor long-term home. Prefer the template approach for anything that receives new answers.

Mistakes that get QAPage markup ignored

The most common mistake is using QAPage for content the site wrote itself. The mirror image is squeezing several separate questions into one QAPage; each question needs its own page. Others include marking up answers that are not shown on the page, adding QAPage to a question with no real answers yet, and dressing up a sales page as a community question. Because the whole premise is genuine user discussion, anything that fakes it undermines the markup.

Testing the block before and after it goes live

Paste the block into the thread page, then run the URL through Google's Rich Results Test, which supports Q&A markup, and check our JSON-LD Validator for syntax. Confirm there is one Question, that the acceptedAnswer is the reply actually marked as best, and that answerCount matches the number of answers visible. Our schema markup guide covers how QAPage sits alongside other types on the same site.

How it works

  1. Add the Question

    URL, question text, and the accepted answer. Optionally add author and upvote count.

  2. Add Suggested Answers

    If multiple answers exist (forum-style), add each as a suggested answer.

  3. Copy JSON-LD

    Get the complete QAPage schema block ready to paste into your page.

Frequently asked

What's the difference between QAPage and FAQPage?

›

FAQPage is a list of questions and answers your site writes, used on FAQ and help pages. QAPage is for one question with answers submitted by users, used on forums, community help and Q&A sites.

Can I use QAPage for FAQ content?

›

No. Google distinguishes the two and expects QAPage only on pages where users can answer a question. If your team wrote the answers, use FAQPage.

Should I include suggested answers?

›

Yes, when the thread has other replies. QAPage supports one acceptedAnswer plus a list of suggestedAnswer entries. The generator adds each one with its text; add authors and real vote counts by hand if the page shows them.

What does answerCount mean?

›

The total number of answers to the question. The generator counts the accepted answer plus every suggested answer you add. It should match the number of answers visible on the page.

Do I need an accepted answer?

›

Google's documentation asks for at least one answer, either an acceptedAnswer or a suggestedAnswer. This generator asks for an accepted answer, so if no reply has been marked as best yet, edit the output to list your answers as suggestedAnswer instead.

Where do the author and date fields go?

›

The question author goes on the Question; the answer author goes on the accepted answer, and defaults to the question author if left blank. The date you enter is applied to both the question and the accepted answer. Adjust the output if they were posted on different days.

Can I invent upvote counts to look more credible?

›

No. Vote counts, authors and answers must match what visitors see in the thread. Markup that misrepresents the page breaks Google's structured data guidelines and can be ignored or penalised.

What should I use for forum threads that aren't questions?

›

Schema.org's DiscussionForumPosting fits open discussions without a single question and answer. Use QAPage only when the page is built around one question looking for answers.

Related tools

More Schema Markup tools

See all Schema Markup tools · All free SEO tools

Related guides

↳ full site audit190+ checks · AI fix instructions · yearly plans