مرجع API · Scans & reports
Sources
get
/reports/citations| احراز هویت | توکن مشتری (Bearer) |
|---|---|
| سطح دسترسی | کاربر رایگان · کاربر حرفهای Customer token (Bearer) — free and paid users |
Cited domains classified into 7 source types (own, competitor, media, review, forum, reference, other) and citation opportunities (a source whose answer names a competitor but not the brand). Free: counts by type + 3 sample sources without page URLs (locked: true). Paid: every source with page URLs.
پارامترها
| نام | محل | نوع | توضیح |
|---|---|---|---|
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 — CitationsReport
Paid source item: {"domain":"compare-soft.example","type":"review","answers":16,"opportunity":false,"names_brand":true,"names_competitor":true,"engines":["chatgpt","claude"],"pages":[{"url":"https://compare-soft.example/review-2026","question_id":357,"engine":"chatgpt"}]}.
| فیلد | نوع | توضیح |
|---|---|---|
context* | object | The filters this report was built with (scan, AI assistant, audience). |
context.… | string | |
answers_with_sources* | integer | |
answers_total* | integer | |
total_sources* | integer | denominator: every answer (all questions, all samples) in scope |
own_sources* | integer | |
opportunities* | integer | |
by_type* | object[] | |
by_type[].type* | string | |
by_type[].count* | integer | |
sources* | object[] | any[] | |
locked* | boolean |
json
{
"context": {
"…": "ReportContext — same shape as in GET /reports/overview"
},
"answers_with_sources": 10,
"total_sources": 23,
"own_sources": 2,
"opportunities": 6,
"by_type": [
{
"type": "own",
"count": 2
},
{
"type": "competitor",
"count": 7
}
],
"sources": [
{
"domain": "hesab-review.example",
"initial": "H",
"type": "review",
"answers": 5,
"opportunity": true,
"names_brand": false,
"names_competitor": true,
"engines": [
"chatgpt"
],
"pages": []
},
{
"domain": "nikhesab.example",
"initial": "N",
"type": "competitor",
"answers": 4,
"opportunity": false,
"names_brand": true,
"names_competitor": true,
"engines": [
"chatgpt"
],
"pages": []
}
],
"locked": true
}
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 — No brand / unknown run or cell
| فیلد | نوع |
|---|---|
message* | string |
json
{
"message": ""
}
نمونهٔ curl
bash
curl -X GET 'http://127.0.0.1:8010/api/reports/citations' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $RAWI_USER_TOKEN"