FAQ's
A list of frequently asked questions
Fetch a given faq list
fetch('https://api.placeholderjson.dev/faq/5')
.then(response => response.json())
.then(json => console.log(json))
// Return
[
{
"name":"Integer non tellus lobortis, pharetra mi in, feugiat est?",
"answer":"ac sodales tortor dui eget dolor. Sed at leo iaculis odio rutrum feugiat ut posuere orci. In bibendum pharetra ligula, vitae ornare quam porta in."
},
{
"name":"Curabitur nec ipsum hendrerit, pulvinar magna at, efficitur nunc?",
"answer":"Fusce cursus dignissim ultricies. Sed quis hendrerit mi. Curabitur sit amet dui auctor, vehicula ex et, pulvinar metus."
}
]
List all faq lists
fetch('https://api.placeholderjson.dev/faq')
.then(response => response.json())
.then(json => console.log(json))
// Return
[[{"name": "lorem", "answer": "ipsum" }, /* ... */]]
Information
Data
Name | Type |
---|---|
name | string |
answer | string |
Example
Ideas
- Mark up your FAQ's for Google