Rawi

مرجع API · Scans & reports

Question detail

get/reports/questions/{id}
احراز هویتتوکن مشتری (Bearer)
سطح دسترسیکاربر رایگان · کاربر حرفه‌ای

Customer token (Bearer) — free and paid users

Full answer text of each engine, named brands and cited sources, with prev/next navigation. Free: answers of the selected (latest) run only; paid: every run.

  • highlights: where the own brand (key: own) and the named competitors (c<id>) appear in text, as code-point offsets (end exclusive, sorted, non-overlapping). Found with every name variant and the analysis tolerances (Arabic/Persian letter forms, diacritics, ZWNJ, case); only brands recorded as mentions of that answer are marked. The UI marks them in the answer text.
  • sources[].url: exact citation pages follow the the app rule. On the free plan (citations_full: false) url is null and only the domain is returned.

پارامترها

ناممحلنوعتوضیح
id*pathintegerPostman variable {{questionId}}
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

پاسخ‌ها

200 — QuestionDetail Free plan source item: {"domain":"hesab-review.example","url":null,"initial":"H","type":"review"}.

فیلدنوعتوضیح
context*objectThe filters this report was built with (scan, AI assistant, audience).
context.…string
question*object
question.id*integerUnique ID.
question.stage*stringBuying stage of the question.
question.type*string
question.text*string
question.language*stringThe question's (and its answers') language, for lang/dir on data text in the UI (fa answers in the en UI).
question.cell_id*integer | null
question.position*integer
question.edited*boolean
answers*object[]
answers[].engine*stringAI assistant key, e.g. chatgpt, gemini or claude.
answers[].sample*integer
answers[].run_id*integer0-based ask number within the run (AI route repeats)
answers[].run_date*string | null
answers[].status*stringCurrent status.
answers[].text*string | null
answers[].named*any[]
answers[].brand_named*boolean
answers[].highlights*object[]
answers[].highlights[].startinteger
answers[].highlights[].endinteger
answers[].highlights[].keystring
answers[].highlights[].is_ownbooleanTrue for your own brand.
answers[].sources*object[]
answers[].sources[].domain*stringSite domain.
answers[].sources[].url*string | nullFull address (URL).
answers[].sources[].initial*string
answers[].sources[].type*string
next_question_id*integer | nullID of the next question in the list (null on the last one).
prev_question_id*integer | nullID of the previous question in the list (null on the first one).
json
{
  "context": {
    "…": "ReportContext — same shape as in GET /reports/overview"
  },
  "question": {
    "id": 350,
    "stage": "selection",
    "type": "unbranded",
    "text": "بهترین نرم‌افزارهای حسابداری ابری در ایران کدام‌اند؟",
    "cell_id": 9,
    "position": 6,
    "edited": false
  },
  "answers": [
    {
      "engine": "chatgpt",
      "run_id": 38,
      "run_date": "2026-11-25T10:30:00Z",
      "status": "ok",
      "text": "برای شرکت‌های خرد و کوچک در ایران، چند نرم‌افزار حسابداری ابری بیشتر از بقیه پیشنهاد می‌شوند. نیک‌حساب برای شرکت‌هایی مناسب است که انبار و فروش را هم می‌خواهند. ترازنو قیمت پایین‌تری دارد و برای شروع …",
      "named": [
        {
          "key": "c163",
          "name": "نیک‌حساب",
          "initial": "ن",
          "is_own": false
        },
        {
          "key": "c164",
          "name": "ترازنو",
          "initial": "ت",
          "is_own": false
        }
      ],
      "brand_named": false,
      "highlights": [
        {
          "start": 101,
          "end": 109,
          "key": "c163",
          "is_own": false
        },
        {
          "start": 164,
          "end": 170,
          "key": "c164",
          "is_own": false
        }
      ],
      "sources": [
        {
          "domain": "hesab-review.example",
          "url": "https://hesab-review.example/best-cloud-accounting-1405",
          "initial": "H",
          "type": "review"
        },
        {
          "domain": "nikhesab.example",
          "url": "https://nikhesab.example/",
          "initial": "N",
          "type": "competitor"
        }
      ]
    }
  ],
  "next_question_id": 351,
  "prev_question_id": 349
}

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
codestring
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 — Unknown id (or not owned by the caller); the UI shows «این پرسش پیدا نشد.»

فیلدنوع
message*string
json
{
  "message": ""
}

نمونهٔ curl

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

امتحان در کنسول