API reference · Scans & reports
Questions & answers (list)
get
/reports/questions| Authentication | Customer token (Bearer) |
|---|---|
| Access | Free 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
| Name | In | Type | Description |
|---|---|---|---|
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 |
Responses
200 — QuestionsReport
| Field | Type | Description |
|---|---|---|
context* | object | The filters this report was built with (scan, AI assistant, audience). |
context.… | string | |
asked* | integer | |
answers_with_brand* | integer | |
answered* | integer | |
questions_count* | integer | Same 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* | string | Buying 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* | integer | present / total: question × engine pairs where the brand is named (kept for older clients). |
groups[].total* | integer | |
groups[].questions_count* | integer | Explicit 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)
| Field | Type |
|---|---|
message* | string |
code | string |
json
{
"message": "Please sign in to continue; your session has ended or is not valid.",
"code": "unauthenticated"
}
403 — plan_limit
| Field | Type |
|---|---|
message* | string |
code* | string ("plan_limit", "forbidden") |
json
{
"message": "این امکان در طرح راوی حرفهای است.",
"code": "plan_limit"
}
404 — No brand / unknown run or cell
| Field | Type |
|---|---|
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"