FAQ (FAQPage, Question, Answer) structured data in json
Mark
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What are the business hours?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Our business hours are from 9:00am to 5:00pm, Monday to Friday."
}
},
{
"@type": "Question",
"name": "What payment methods do you accept?",
"acceptedAnswer": {
"@type": "Answer",
"text": "We accept Visa, Mastercard, American Express, and Discover."
}
},
{
"@type": "Question",
"name": "Do you offer refunds?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes, we offer refunds within 30 days of purchase if you are not satisfied with our product."
}
}
]
}
</script>
In this example, we have an FAQ page that contains three frequently asked questions (FAQs) along with their corresponding answers. The @type
property of the top-level object is set to FAQPage
. The mainEntity
property is an array of Question
objects, each of which has a name
property (the question itself) and an acceptedAnswer
property containing an Answer
object with a text
property (the answer to the question).