مرجع 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 intext, as code-point offsets (endexclusive, 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)urlisnulland only the domain is returned.
پارامترها
| نام | محل | نوع | توضیح |
|---|---|---|---|
id* | path | integer | Postman variable {{questionId}} |
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 — QuestionDetail
Free plan source item: {"domain":"hesab-review.example","url":null,"initial":"H","type":"review"}.
| فیلد | نوع | توضیح |
|---|---|---|
context* | object | The filters this report was built with (scan, AI assistant, audience). |
context.… | string | |
question* | object | |
question.id* | integer | Unique ID. |
question.stage* | string | Buying stage of the question. |
question.type* | string | |
question.text* | string | |
question.language* | string | The 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* | string | AI assistant key, e.g. chatgpt, gemini or claude. |
answers[].sample* | integer | |
answers[].run_id* | integer | 0-based ask number within the run (AI route repeats) |
answers[].run_date* | string | null | |
answers[].status* | string | Current status. |
answers[].text* | string | null | |
answers[].named* | any[] | |
answers[].brand_named* | boolean | |
answers[].highlights* | object[] | |
answers[].highlights[].start | integer | |
answers[].highlights[].end | integer | |
answers[].highlights[].key | string | |
answers[].highlights[].is_own | boolean | True for your own brand. |
answers[].sources* | object[] | |
answers[].sources[].domain* | string | Site domain. |
answers[].sources[].url* | string | null | Full address (URL). |
answers[].sources[].initial* | string | |
answers[].sources[].type* | string | |
next_question_id* | integer | null | ID of the next question in the list (null on the last one). |
prev_question_id* | integer | null | ID 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 |
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 — 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"