مرجع API

التقارير

انقل النقرات والتثبيتات والإيرادات إلى أنظمتك.

جلب تقرير

GET/reportsreports:read

يعيد الإجماليات والأرقام اليومية والمنصات والروابط والحملات والأحداث ونتائج الإرسال.

الحقلالنوعالوصف
days integer فترة 7 أو 30 أو 90 يومًا، والافتراضي 30.
app_id integer التطبيق التابع له، من GET /apps.
limit integer عدد النتائج، من 1 إلى 100 للروابط وحتى 5000 لترتيب التقارير.
curl -X GET "https://baiocodesolutions.com/api/v1/reports?days=30" \
  -H "Authorization: Bearer $DEEPBERTH_TOKEN"

200 OK

{
    "data": {
        "totals": {
            "people": 18400,
            "bots": 210,
            "installs": 3120,
            "attributed": 2710
        },
        "days": [
            {
                "date": "2026-11-08",
                "label": "Nov 8",
                "people": 640,
                "bots": 8,
                "installs": 104
            }
        ],
        "platforms": [
            {
                "label": "ios",
                "value": 10200
            }
        ],
        "matches": [
            {
                "label": "install_referrer",
                "value": 1400
            }
        ],
        "links": [
            {
                "url": "link.yourbrand.com/summer",
                "title": "Summer sale",
                "deleted": false,
                "people": 1840,
                "installs": 312
            }
        ],
        "campaigns": [
            {
                "name": "summer-2026",
                "people": 1840,
                "installs": 312
            }
        ],
        "events": [
            {
                "name": "purchase",
                "total": 420,
                "revenue": 8390.5
            }
        ],
        "deliveries": [
            {
                "label": "delivered",
                "value": 980
            }
        ]
    }
}

جلب الأتراب

GET/reports/cohortsreports:read

يعيد الأجهزة والأحداث والإيرادات بالدولار حسب يوم التثبيت وعدد الأيام بعده. متاح في الخطط التي تشمل API الأتراب.

الحقلالنوعالوصف
days integer فترة 7 أو 30 أو 90 يومًا، والافتراضي 30.
app_id integer التطبيق التابع له، من GET /apps.
event string إرجاع هذا الحدث فقط.
curl -X GET "https://baiocodesolutions.com/api/v1/reports/cohorts?days=30&event=purchase" \
  -H "Authorization: Bearer $DEEPBERTH_TOKEN"

200 OK

{
    "data": [
        {
            "install_date": "2026-11-01",
            "day": 3,
            "event_name": "purchase",
            "devices": 118,
            "event_count": 143,
            "revenue_usd": 2841.5
        }
    ]
}