Rawi

API reference · Scans & reports

Market overview

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

Customer token (Bearer) — free and paid users

Share of voice table (brand + competitors, per engine, delta vs previous run), own rank/visibility/sources, leader, discovered brands, stage coverage. state: building (first run in progress, partial numbers «در حال کامل شدن»), queued (free queue), ready, empty_market (nobody named — cited_sources_when_empty filled), no_brand (own SoV 0 → suggest the app), failed. Fires first_report_viewed once.

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 — OverviewReport Paid: 3 engines in shares[].by_engine, all discovered brands, and by_cell (SoV per target customer), e.g. [{"cell_id":10,"label":"شرکت‌های خرد و کوچک در ایران","share":9.1,"questions":4}]. An engine that failed in the run has available:false («در این اجرا در دسترس نبود») and is left out of the numbers. Queued (state: "queued"): "queue": {"position":3,"eta_days":2,"boost_per_invite":10,"invite_max":5}, same object as in GET /me. The R1 queue card reads «با هر کسی که با لینک دعوت شما ثبت‌نام کند، {boost_per_invite} پله در صف جلو می‌روید. تا {invite_max} دعوت شمرده می‌شود.» The ETA counts to the end of the current Persian (Jalali) month when the free cap is full.

json
{
  "context": {
    "run": {
      "id": 38,
      "kind": "scheduled",
      "status": "complete",
      "engines": [
        "chatgpt"
      ],
      "started_at": "2026-11-25T10:16:00Z",
      "finished_at": "2026-11-25T10:30:00Z",
      "done": 10,
      "total": 10
    },
    "previous_run": {
      "id": 37,
      "kind": "scheduled",
      "status": "complete",
      "engines": [
        "chatgpt"
      ],
      "started_at": "2026-10-25T10:16:00Z",
      "finished_at": "2026-10-25T10:30:00Z",
      "done": 10,
      "total": 10
    },
    "latest_run": {
      "id": 38,
      "kind": "scheduled",
      "status": "complete",
      "engines": [
        "chatgpt"
      ],
      "started_at": "2026-11-25T10:16:00Z",
      "finished_at": "2026-11-25T10:30:00Z",
      "done": 10,
      "total": 10
    },
    "runs": [
      {
        "id": 38,
        "kind": "scheduled",
        "status": "complete",
        "engines": [
          "chatgpt"
        ],
        "started_at": "2026-11-25T10:16:00Z",
        "finished_at": "2026-11-25T10:30:00Z",
        "done": 10,
        "total": 10
      }
    ],
    "engines": [
      {
        "engine": "chatgpt",
        "available": true,
        "locked": false
      },
      {
        "engine": "gemini",
        "available": false,
        "locked": true
      }
    ],
    "cells": [
      {
        "id": 9,
        "product_id": 39,
        "target_customer_id": 41,
        "label": "نرم‌افزار حسابداری ابری، برای شرکت‌های خرد و کوچک در ایران",
        "short_label": "شرکت‌های خرد و کوچک در ایران",
        "active": true,
        "position": 1
      }
    ],
    "filters": {
      "run_id": 38,
      "engine": "all",
      "cell_id": 0
    },
    "building": false,
    "small_sample": false,
    "engines_offline": false
  },
  "state": "ready",
  "progress": null,
  "own": {
    "share": 18.8,
    "rank": 3,
    "brands_count": 6,
    "delta": 2.6,
    "visibility": 37.5,
    "visible_answers": 3,
    "total_answers": 8,
    "sources_count": 23,
    "tied_with": 0
  },
  "leader": {
    "name": "نیک‌حساب",
    "share": 34.4
  },
  "shares": [
    {
      "key": "c163",
      "name": "نیک‌حساب",
      "initial": "ن",
      "is_own": false,
      "is_competitor": true,
      "share": 34.4,
      "mentions": 11,
      "delta": -0.7,
      "by_engine": {
        "chatgpt": 34.4
      }
    },
    {
      "key": "c164",
      "name": "ترازنو",
      "initial": "ت",
      "is_own": false,
      "is_competitor": true,
      "share": 25,
      "mentions": 8,
      "delta": -2,
      "by_engine": {
        "chatgpt": 25
      }
    }
  ],
  "selection_questions": 3,
  "gaps_count": 2,
  "discovered": [
    {
      "key": "d:حسابیار",
      "name": "حساب‌یار",
      "initial": "ح",
      "answers": 2
    },
    {
      "key": "d:پارسدفتر",
      "name": "پارس‌دفتر",
      "initial": "پ",
      "answers": 1
    }
  ],
  "discovered_total": 2,
  "coverage": [
    {
      "stage": "problem",
      "parent": null,
      "asked": 1,
      "total": 3
    },
    {
      "stage": "selection",
      "parent": null,
      "asked": 3,
      "total": 8
    },
    {
      "stage": "alternative",
      "parent": "selection",
      "asked": 1,
      "total": 2
    }
  ],
  "cited_sources_when_empty": [],
  "queue": null,
  "by_cell": [],
  "samples": 1,
  "sov_range": null,
  "basis": {
    "mentions": 32,
    "answers": 3,
    "questions": 3,
    "scans": 1
  },
  "changes": {
    "previous_run_id": 37,
    "previous_date": "2026-10-25T10:30:00Z",
    "won_back": 1,
    "lost": 1,
    "still": 1
  }
}

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 — older run or locked engine on the free plan

FieldType
message*string
code*string ("plan_limit", "forbidden")
json
{
  "message": "این امکان در طرح راوی حرفه‌ای است.",
  "code": "plan_limit"
}

404 — No brand / unknown run_id or cell_id

FieldType
message*string
json
{
  "message": ""
}

422 — Validation failed (run_id, engine, cell_id)

FieldType
message*string
errors*object
json
{
  "message": "",
  "errors": {
    "email": [
      "ایمیل معتبر نیست."
    ]
  }
}

curl example

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

Try it in the console