Get revenue for publisher

GET /v2/publishers/revenue

Generates a daily aggregated report of the publisher'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

      Additional properties are allowed.

      Hide data attributes Show data attributes object
      • date_range object Required

        Additional properties are allowed.

        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
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
        }
      }
    ]
  }
}