مرجع API · Scans & reports
Missed questions
get
/reports/gaps| احراز هویت | توکن مشتری (Bearer) |
|---|---|
| سطح دسترسی | کاربر رایگان · کاربر حرفهای Customer token (Bearer) — free and paid users |
Unbranded selection questions where ≥1 competitor is named and the brand is not (gaps), where the brand is named (present), and where nobody from the list is named (neither), with per-engine status and the competitor with most gaps.
پارامترها
| نام | محل | نوع | توضیح |
|---|---|---|---|
run_id | query | integer | run to show; 0/absent = default run. Free: only the default run |
engine | query | string | all (default) | chatgpt | gemini | claude (must be in the plan) |
cell_id | query | integer | matrix cell; 0/absent = all cells |
پاسخها
200 — GapsReport
| فیلد | نوع | توضیح |
|---|---|---|
context* | object | The filters this report was built with (scan, AI assistant, audience). |
context.… | string | |
total_selection* | integer | |
limits* | object | Plan sizes for the footer («Free plan: 10 questions, N of them about choosing a vendor»), from PlanLimits. |
limits.questions* | integer | |
limits.paid_questions* | integer | |
limits.free_questions* | integer | |
gaps* | object[] | Missed questions: AI named a competitor and not you. |
gaps[].question_id | integer | ID of the question. |
gaps[].text | string | |
gaps[].engine | string | AI assistant key, e.g. chatgpt, gemini or claude. |
gaps[].named | object[] | |
gaps[].named[].key | string | |
gaps[].named[].name | string | |
gaps[].named[].initial | string | |
gaps[].named[].is_own | boolean | True for your own brand. |
gaps[].brand_named | boolean | |
gaps[].competitors_named | integer | |
gaps[].engines_status | object | Result per AI assistant, keyed by the assistant. |
gaps[].engines_status.chatgpt | string | |
gaps[].gap_engines | integer | |
gaps[].change | object | |
gaps[].change.status | string | Current status. |
gaps[].change.since | string | |
gaps[].change.scans | integer | |
present* | object[] | Questions where you were named. |
present[].question_id | integer | ID of the question. |
present[].text | string | |
present[].engine | string | AI assistant key, e.g. chatgpt, gemini or claude. |
present[].named | object[] | |
present[].named[].key | string | |
present[].named[].name | string | |
present[].named[].initial | string | |
present[].named[].is_own | boolean | True for your own brand. |
present[].brand_named | boolean | |
present[].competitors_named | integer | |
present[].engines_status | object | Result per AI assistant, keyed by the assistant. |
present[].engines_status.chatgpt | string | |
present[].gap_engines | integer | |
present[].change | object | |
present[].change.status | string | Current status. |
present[].change.since | string | |
present[].change.scans | integer | |
neither* | any[] | |
top_competitor* | object | null | |
top_competitor.name* | string | |
top_competitor.gaps* | integer | Missed questions: AI named a competitor and not you. |
changes* | object | string | null | Compared with the previous finished scan: {previous_run_id, previous_date, won_back, lost, still}; null without one. |
suggestions* | object | |
suggestions.used | integer | |
suggestions.limit | integer | |
suggestions.remaining | integer | |
suggestions.resets_at | string |
json
{
"context": {
"…": "ReportContext — same shape as in GET /reports/overview"
},
"total_selection": 3,
"gaps": [
{
"question_id": 350,
"text": "بهترین نرمافزارهای حسابداری ابری در ایران کداماند؟",
"engine": "chatgpt",
"named": [
{
"key": "c163",
"name": "نیکحساب",
"initial": "ن",
"is_own": false
},
{
"key": "c164",
"name": "ترازنو",
"initial": "ت",
"is_own": false
}
],
"brand_named": false,
"competitors_named": 4,
"engines_status": {
"chatgpt": "not_named"
},
"gap_engines": 1,
"change": {
"status": "new",
"since": "2026-10-25T10:30:00Z",
"scans": 1
}
},
{
"question_id": 351,
"text": "بهترین نرمافزارهای حسابداری ابری برای شرکتهای کوچک کداماند؟",
"engine": "chatgpt",
"named": [
{
"key": "c163",
"name": "نیکحساب",
"initial": "ن",
"is_own": false
},
{
"key": "c164",
"name": "ترازنو",
"initial": "ت",
"is_own": false
}
],
"brand_named": false,
"competitors_named": 3,
"engines_status": {
"chatgpt": "not_named"
},
"gap_engines": 1,
"change": {
"status": "still",
"since": null,
"scans": 3
}
}
],
"present": [
{
"question_id": 352,
"text": "بهترین نرمافزارهای حسابداری ابری با اتصال به سامانه مودیان کداماند؟",
"engine": "chatgpt",
"named": [
{
"key": "own",
"name": "آوند",
"initial": "آ",
"is_own": true
},
{
"key": "c163",
"name": "نیکحساب",
"initial": "ن",
"is_own": false
}
],
"brand_named": true,
"competitors_named": 2,
"engines_status": {
"chatgpt": "named"
},
"gap_engines": 0,
"change": {
"status": "won_back",
"since": "2026-10-25T10:30:00Z",
"scans": 0
}
}
],
"neither": [],
"top_competitor": {
"name": "نیکحساب",
"gaps": 2
},
"changes": {
"previous_run_id": 37,
"previous_date": "2026-10-25T10:30:00Z",
"won_back": 1,
"lost": 1,
"still": 1
},
"suggestions": {
"used": 1,
"limit": 3,
"remaining": 2,
"resets_at": "2026-12-21T20:30:00Z"
}
}
401 — Missing/invalid token, or a token of the wrong owner (admin token on a user route or vice versa): {"message":"…","code":"unauthenticated"} (message in the request language)
| فیلد | نوع |
|---|---|
message* | string |
code | string |
json
{
"message": "Please sign in to continue; your session has ended or is not valid.",
"code": "unauthenticated"
}
403 — plan_limit
| فیلد | نوع |
|---|---|
message* | string |
code* | string ("plan_limit", "forbidden") |
json
{
"message": "این امکان در طرح راوی حرفهای است.",
"code": "plan_limit"
}
404 — No brand / unknown run or cell
| فیلد | نوع |
|---|---|
message* | string |
json
{
"message": ""
}
نمونهٔ curl
bash
curl -X GET 'http://127.0.0.1:8010/api/reports/gaps' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"