Get revenue for an app

GET /v2/publishers/revenue

Generates a daily aggregated report of the app's revenue. Each entry includes the date and the revenue earned from various streams such as surveys, offers, magic receipts, and more.

Query parameters

  • startDate string(date)

    start date of the revenue report

  • endDate string(date)

    end date of the revenue report

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • date_range object Required
        Hide date_range attributes Show date_range attributes object
        • from string(date-time) Required
        • to string(date-time) Required
      • reports array[object]
        Hide reports attributes Show reports attributes object
        • date string(date-time) Required
        • survey object Required
          Hide survey attributes Show survey attributes object
          • revenue_usd number(float) Required
          • reconciliation_usd number(float) Required
        • offer object Required
          Hide offer attributes Show offer attributes object
          • revenue_usd number(float) Required
          • reconciliation_usd number(float) Required
        • receipt object Required
          Hide receipt attribute Show receipt attribute object
          • revenue_usd number(float) Required
        • total object Required
          Hide total attributes Show total attributes object
          • revenue_usd number(float) Required
          • reconciliation_usd number(float) Required
GET /v2/publishers/revenue
curl \
 --request GET 'https://api.bitlabs.ai/v2/publishers/revenue' \
 --header "X-S2S-Token: $API_KEY"
Response examples (200)
{
  "data": {
    "date_range": {
      "from": "2022-01-01T00:00:00Z",
      "to": "2022-01-01T00:00:00Z"
    },
    "reports": [
      {
        "date": "2022-01-01T00:00:00Z",
        "survey": {
          "revenue_usd": 42.0,
          "reconciliation_usd": 42.0
        },
        "offer": {
          "revenue_usd": 42.0,
          "reconciliation_usd": 42.0
        },
        "receipt": {
          "revenue_usd": 42.0
        },
        "total": {
          "revenue_usd": 42.0,
          "reconciliation_usd": 42.0
        }
      }
    ]
  }
}