Docs/Models

Stats

object

A feed’s or item’s download and payment statistics.

The stats projection returned by the feed and item stats endpoints. rows is one StatsRow per grouping (a single ungrouped row when group_by is omitted). meta.buckets lists every bucket boundary in range so empty buckets can be rendered, and is present only when a bucket was requested.

Fields

rowsStatsRow[]required

One row per group.

metaobjectrequired

Response metadata.

bucketsstring[]optional

All bucket boundaries in range (ISO-8601); present only when a bucket was requested.

Example
{
  "rows": [
    {
      "group": {},
      "total": {
        "downloads": 1240,
        "revenue_usd": 32.5,
        "revenue_satoshis": 48210,
        "supporters": 18
      },
      "previous": {
        "downloads": 980,
        "revenue_usd": 24,
        "revenue_satoshis": 35600,
        "supporters": 14
      }
    }
  ],
  "meta": {}
}