For the complete documentation index, see llms.txt. This page is also available as Markdown.

Earnings Report Object

Earnings Report Object

The earnings report echoes the query it was built from and carries the figures under data. The shape of data depends on granularity and group_by.

Field
Type
Description

from

String

Start of the window (YYYY-MM-DD).

to

String

End of the window (YYYY-MM-DD).

channel

String | null

The channel filter applied, or null.

group_by

String | null

The grouping applied, or null.

granularity

String

total, daily, weekly, or monthly.

data

Object | Array

The earnings figures (see below).

Every earnings figure is an object of confirmed, estimated_pending, and total, in dollars.

  • granularity=total, no group_bydata is a single earnings object.

  • granularity=total with group_bydata is an array, one entry per group, ranked highest-first. Each entry carries the earnings figure plus fields naming the group. The two id-based dimensions have the same shape — the group's own uuid plus the promoted thing as an expandable:

    • recommendationrecommendation_uuid, plus recommended_publication: the promoted newsletter as a Publication Object expandable (its UUID by default, the full object with expand=recommended_publication).

    • offeroffer_recommendation_uuid, plus offer: the promoted offer as an Offer Object expandable (its UUID by default, the full object with expand=offer).

    • utm_campaign — the raw utm_campaign string.

  • granularity=daily/weekly/monthlydata is an array, one entry per time bucket, each with a date.

Example (overall total)

{
  "from": "2026-06-01",
  "to": "2026-06-30",
  "channel": null,
  "group_by": null,
  "granularity": "total",
  "data": { "confirmed": 240.0, "estimated_pending": 37.5, "total": 277.5 }
}

Example (grouped by recommendation)

By default a recommendation row identifies the promoted newsletter only by recommended_publication's UUID; the recommendation_uuid itself is an opaque partner_campaign_… id.

Example (grouped by recommendation, expand=recommended_publication)

Expanding inlines each promoted newsletter's full Publication Object — including its name — in place of the UUID.

Example (grouped by offer)

An offer row mirrors a recommendation row: the publication's OfferRecommendation uuid (addressable via /earn/offers/:uuid) plus the promoted offer as an expandable.

Example (grouped by offer, expand=offer)

Expanding inlines each promoted offer's full Offer Object in place of the UUID.

Example (monthly time series)