Insights
GET /api/v1/{organisation}/knowledge-bases/{knowledgeBase}/insights
Auth: API key with insights.read. A key limited to some sources must cover every source in the knowledge base.
Returns what visitors searched for and asked in a knowledge base's widgets, compared with the period before. Use it to find questions your content doesn't answer.
{knowledgeBase} is the knowledge base id from /me or its slug.
#Query
| Field | Type | Notes |
|---|---|---|
period |
string | 7d (default), 14d, or 30d. Ends today. |
#Response
{
"data": {
"knowledge_base": { "id": "0194b…", "name": "Installatie.nl" },
"period": { "from": "2026-11-26", "to": "2026-12-02", "days": 7 },
"searches": { "current": 146, "previous": 110, "change_percent": 33 },
"chats": { "current": 48, "previous": 34, "change_percent": 41 },
"click_rate_percent": { "current": 41, "previous": 46 },
"no_results": { "current": 36, "previous": 0, "change_percent": null },
"top_queries": [
{ "query": "warmtepomp subsidie", "count": 31, "previous": 0, "trend": "new" }
],
"unanswered": [
{ "text": "warmtepomp subsidie", "count": 31, "kind": "search" },
{ "text": "Wie installeert een hybride warmtepomp?", "count": 2, "kind": "chat" }
],
"widgets": [
{ "name": "Site search", "type": "search", "searches": 146, "chats": 0, "click_rate_percent": 41, "positive_feedback_percent": null }
]
}
}
unansweredlists searches with no results (search) and chat questions that got a thumbs down (chat).trendisnew,rising, ornull.change_percentisnullwhen the previous period was zero.widgetsis only filled when the knowledge base has more than one widget.- Widgets with Store query text off add to the counts but not to
top_queriesorunanswered.