Contents
Get Feedback Statistics - Plugixa FAQ
GET /plugixa-faq/v1/feedback/stats
Read the vote totals, the ten FAQs with the most votes and the ten latest votes.
Any signed-in user with the plugixa_faq_manage capability or WordPress’s edit_posts (Contributors and up, by default). Needs Plugixa FAQ Pro: the free build does not register this route, so it answers 404 there.
Request
GET https://your-site.example/wp-json/plugixa-faq/v1/feedback/stats
Responses
200 OK.
{
"success": true,
"message": "",
"data": {
"total": 57,
"helpful": 44,
"not_helpful": 13,
"with_text": 9,
"most_feedback": [
{
"id": "42",
"question": "How long does shipping take?",
"helpful_count": "14",
"not_helpful_count": "2",
"total_feedback": "16"
}
],
"recent": [
{
"id": "311",
"faq_id": "42",
"is_helpful": "0",
"feedback_text": "The delivery times for islands are missing.",
"user_id": null,
"user_ip": "203.0.113.24",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
"session_id": "6f1c2a7e-8b3d-4e2f-9a61-0c5d7e3b9f42",
"created_at": "2026-11-12 09:30:00",
"question": "How long does shipping take?"
}
]
}
}
| Field | Type | Meaning |
|---|---|---|
data.total |
integer |
All votes |
data.helpful |
integer |
Helpful votes |
data.not_helpful |
integer |
Not-helpful votes |
data.with_text |
integer |
Votes with a comment |
data.most_feedback |
array |
Up to 10 FAQs by total votes, from the counters on each FAQ |
data.recent |
array |
The 10 latest votes, same shape as List Feedback rows without user_name |
Errors
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-faq/v1/feedback/stats" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-faq/v1/feedback/stats');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-faq/v1/feedback/stats', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share