Rawi

API reference · Scans & reports

Missed questions

get/reports/gaps
AuthenticationCustomer token (Bearer)
AccessFree user · Pro user

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.

Parameters

NameInTypeDescription
run_idqueryintegerrun to show; 0/absent = default run. Free: only the default run
enginequerystringall (default) | chatgpt | gemini | claude (must be in the plan)
cell_idqueryintegermatrix cell; 0/absent = all cells

Responses

200 — GapsReport

FieldTypeDescription
context*objectThe filters this report was built with (scan, AI assistant, audience).
context.…string
total_selection*integer
limits*objectPlan 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_idintegerID of the question.
gaps[].textstring
gaps[].enginestringAI assistant key, e.g. chatgpt, gemini or claude.
gaps[].namedobject[]
gaps[].named[].keystring
gaps[].named[].namestring
gaps[].named[].initialstring
gaps[].named[].is_ownbooleanTrue for your own brand.
gaps[].brand_namedboolean
gaps[].competitors_namedinteger
gaps[].engines_statusobjectResult per AI assistant, keyed by the assistant.
gaps[].engines_status.chatgptstring
gaps[].gap_enginesinteger
gaps[].changeobject
gaps[].change.statusstringCurrent status.
gaps[].change.sincestring
gaps[].change.scansinteger
present*object[]Questions where you were named.
present[].question_idintegerID of the question.
present[].textstring
present[].enginestringAI assistant key, e.g. chatgpt, gemini or claude.
present[].namedobject[]
present[].named[].keystring
present[].named[].namestring
present[].named[].initialstring
present[].named[].is_ownbooleanTrue for your own brand.
present[].brand_namedboolean
present[].competitors_namedinteger
present[].engines_statusobjectResult per AI assistant, keyed by the assistant.
present[].engines_status.chatgptstring
present[].gap_enginesinteger
present[].changeobject
present[].change.statusstringCurrent status.
present[].change.sincestring
present[].change.scansinteger
neither*any[]
top_competitor*object | null
top_competitor.name*string
top_competitor.gaps*integerMissed questions: AI named a competitor and not you.
changes*object | string | nullCompared with the previous finished scan: {previous_run_id, previous_date, won_back, lost, still}; null without one.
suggestions*object
suggestions.usedinteger
suggestions.limitinteger
suggestions.remaininginteger
suggestions.resets_atstring
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)

FieldType
message*string
codestring
json
{
  "message": "Please sign in to continue; your session has ended or is not valid.",
  "code": "unauthenticated"
}

403 — plan_limit

FieldType
message*string
code*string ("plan_limit", "forbidden")
json
{
  "message": "این امکان در طرح راوی حرفه‌ای است.",
  "code": "plan_limit"
}

404 — No brand / unknown run or cell

FieldType
message*string
json
{
  "message": ""
}

curl example

bash
curl -X GET 'http://127.0.0.1:8010/api/reports/gaps' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $RAWI_USER_TOKEN"

Try it in the console