answerCount
answerCount · Required by Google
Appears in
What is it?
answerCount is an integer that records the total number of answers a question has received. It appears on the Question entity inside QAPage markup and tells search engines how many responses exist, including answers not visible on the current page due to pagination or filtering.
Why this matters for AEO
When a user asks a question that matches a QAPage entity, an AI answer engine checks answerCount to gauge how well-answered the question is. A question with 15 answers signals a well-discussed topic, increasing the engine's confidence in citing the accepted or top-voted answer. A count of zero tells the engine the question is unanswered, which may exclude it from direct answer results.
What the specs say
Schema.org: Integer. The number of answers this question has received. schema.org/answerCount
Google: Required. "The total number of answers to the question. For example, if there are 15 answers, but only the first 10 are marked up due to pagination, this value would be 15." Google QAPage documentation
How to find your value
- Single accepted answer —
1 - Multiple answers visible — Count all answers on the page
- Paginated answers — Total across all pages, not just the current page
- No answers yet —
0(valid but may prevent rich result display)
Count every answer submitted to the question, regardless of how many are displayed on the current page. Google explicitly requires the total count, not the visible count.
Format and code
Type: Integer (whole number, no decimals)
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "How many ounces are there in a pound?",
"text": "I have taken up a new interest in baking and keep running across directions in ounces and pounds.",
"answerCount": 3,
"upvoteCount": 26,
"acceptedAnswer": {
"@type": "Answer",
"text": "1 pound (lb) is equal to 16 ounces (oz).",
"upvoteCount": 42
}
}
}
Valid values:
3— Yes0— Yes"3"— No3.0— No
Webflow implementation
Static pages
Add the QAPage JSON-LD in Page Settings > Custom Code > Footer Code:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "How many teaspoons are in a cup?",
"text": "I'm cooking, and I need to know how many teaspoons are in a cup.",
"answerCount": 1,
"acceptedAnswer": {
"@type": "Answer",
"text": "There are 48 teaspoons in 1 cup."
}
}
}
</script>
CMS template pages
Create a Number field in your CMS collection (e.g., answer-count). Reference it in the template:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "{{wf {"path":"name","type":"PlainText"} }}",
"text": "{{wf {"path":"question-text","type":"PlainText"} }}",
"answerCount": {{wf {"path":"answer-count","type":"PlainText"} }},
"acceptedAnswer": {
"@type": "Answer",
"text": "{{wf {"path":"answer-text","type":"PlainText"} }}"
}
}
}
</script>
Note that answerCount outputs without quotes since it must be an integer, not a string.
In Schema HQ
Schema pulls answerCount from CMS number field and ensures it outputs as a proper integer. For Q&A pages with multiple answers, Schema HQ counts the linked answer items automatically and sets answerCount to the correct total.
Real examples
Google Search Central (source):
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "How many ounces are there in a pound?",
"text": "I have taken up a new interest in baking...",
"answerCount": 3,
"upvoteCount": 26,
"acceptedAnswer": {
"@type": "Answer",
"text": "1 pound (lb) is equal to 16 ounces (oz).",
"upvoteCount": 42
}
}
}
SchemaApp (source):
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "What is structured data?",
"text": "Can someone explain what structured data is for SEO?",
"answerCount": 7,
"acceptedAnswer": {
"@type": "Answer",
"text": "Structured data is standardized code that helps search engines understand your page content."
}
}
}
Related fields
- text — the full body text of the question or answer
- name — the short-form title of the question
- mainEntity — connects the QAPage to its Question entity
FAQ
Should answerCount include low-quality or hidden answers?
Yes. Google requires the total number of answers, regardless of quality, visibility, or vote score. If a question has 15 answers but only 10 are shown on the current page, answerCount should be 15.
What happens if answerCount is 0?
An answerCount of 0 is valid markup, but Google may not display a rich result for unanswered questions. The markup is still useful for AI engines that track question coverage, and the field should update once answers are posted.
Must answerCount update dynamically when new answers are posted?
For static sites, update the value whenever you add or remove answers. For dynamic sites and community Q&A platforms, answerCount should reflect the current total at render time. Stale counts that diverge from visible content can trigger structured data warnings in Google Search Console.