Rawi

API reference · Scans & reports

Questions & answers (list)

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

Customer token (Bearer) — free and paid users

Questions grouped by stage plus the separate groups alternative (competitor/comparison: «حضور به‌عنوان جایگزین») and branded («وقتی نام شما را می‌پرسند»), each with whether the brand was named per engine.

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 — QuestionsReport

FieldTypeDescription
context*objectThe filters this report was built with (scan, AI assistant, audience).
context.…string
asked*integer
answers_with_brand*integer
answered*integer
questions_count*integerSame numbers under explicit names: questions asked, answers (all questions, engines, samples) naming you.
answers_named*integer
answers_total*integer
coverage*object[]The same coverage breakdown as R1 (same groups as the list below, same counting rule).
coverage[].stage*stringBuying stage of the question.
coverage[].parent*string | null ("selection", null)
coverage[].asked*integer
coverage[].total*any
groups*object[]
groups[].key*string
groups[].parent*string | null ("selection", null)«alternative» (names a competitor) is shown as part of vendor selection.
groups[].present*integerpresent / total: question × engine pairs where the brand is named (kept for older clients).
groups[].total*integer
groups[].questions_count*integerExplicit denominators: questions in the group, and answers (every engine and sample) naming the brand.
groups[].answers_named*integer
groups[].answers_total*integer
groups[].questions*object[]
json
{
  "context": {
    "…": "ReportContext — same shape as in GET /reports/overview"
  },
  "asked": 10,
  "answers_with_brand": 4,
  "answered": 10,
  "coverage": [
    {
      "stage": "problem",
      "asked": 1,
      "total": 3
    },
    {
      "stage": "solution",
      "asked": 2,
      "total": 4
    }
  ],
  "groups": [
    {
      "key": "problem",
      "present": 0,
      "total": 1,
      "questions": [
        {
          "id": 345,
          "stage": "problem",
          "type": "unbranded",
          "text": "نشانه‌های اینکه یک شرکت کوچک به نرم‌افزار حسابداری ابری نیاز دارد چیست؟",
          "brand_named": false,
          "engines_named": {
            "chatgpt": false
          },
          "status": "ok"
        }
      ]
    },
    {
      "key": "solution",
      "present": 1,
      "total": 2,
      "questions": [
        {
          "id": 346,
          "stage": "solution",
          "type": "unbranded",
          "text": "انواع نرم‌افزار حسابداری ابری چیست و هر کدام برای چه شرکتی مناسب است؟",
          "brand_named": false,
          "engines_named": {
            "chatgpt": false
          },
          "status": "ok"
        },
        {
          "id": 347,
          "stage": "solution",
          "type": "unbranded",
          "text": "برای یک شرکت کوچک، نرم‌افزار حسابداری ابری بهتر است یا برون‌سپاری به دفتر حسابداری؟",
          "brand_named": true,
          "engines_named": {
            "chatgpt": true
          },
          "status": "ok"
        }
      ]
    }
  ]
}

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/questions' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $RAWI_USER_TOKEN"

Try it in the console