Analytics

Put streams and earnings in front of your artists. The analytics endpoints return fast, pre-aggregated JSON for any track, release, video, customer or wallet, ready to draw as a chart.

At a glance

How reporting data fits together

Every number starts in one of two feeds. Trends are daily usage reports pulled from store APIs: streams, downloads and an estimate of what they earned. Statements are the monthly accounting files a store sends when it pays. Both are matched to your catalog, run through your fees and split across wallets. You can read the result in three ways.

Trends and statements feed raw reports, analytics and exports Trends daily · estimated · pulled Statements monthly · accounted · uploaded Matched & split catalog · fees · wallets Raw reports Parquet files for your warehouse Analytics JSON for charts and screens Exports CSV files on demand
Use analytics for anything a person looks at, exports for files and raw reports for a data warehouse.
TrendsStatements
GranularityOne row per day soldOne row per month reported
MoneyEstimated, field names start with estimatedAccounted, what the store actually paid
ArrivesA day or a few days after the streamWhen RecordJet accepts the month
Changes later?Yes, stores restate recent daysNo, once accepted it’s final
Use it forMomentum, charts, early signalsRoyalty views and payouts

Reading the numbers

Three rules apply to every analytics response.

Money is an integer in nano-euros

Every amount is a 64-bit integer of billionths of a euro: 5520000000 is €5.52. Add amounts as integers and divide by 1,000,000,000 only for display.

Amounts are bare integers

On the wire an amount looks like "estimatedEarningsCustomer": 3753600000: a plain integer in nano-euros, not an object.

Four levels of the same money

Each amount comes at up to four levels, one per party that takes a share on the way down. Show artists the customer or wallet level, never the client level.

…Client
What the store paid in, before any fee. This is your top-level account’s gross.
…Tenant
The client amount minus the release’s client fee (which defaults from the tenant’s settings).
…Customer
The tenant amount minus the release’s tenant fee. This is what the release’s owner earns. See How money flows.
…Wallet
The customer amount multiplied by one wallet’s share. It only appears on wallet endpoints.
The same 10 euros at four levels: client 10.00, tenant 8.50, customer 6.80, and one wallet with a 52 percent share 3.536. …Clientwhat the store paid€10.00 · 100%…Tenantafter the 15% client fee€8.50 · 85%…Customerafter the 20% tenant fee€6.80 · 68%…Walletone wallet, 52% share€3.536 · 35.36%
One €10.00 line at each level, drawn to scale, with this page’s 15% and 20% fees. The wallet level only exists on wallet endpoints, and is a share of the customer level.

The examples on this page use a 15% client fee and a 20% tenant fee, as in the worked example, so the customer level is 68% of the client level.

Two dates on every number

A stream has a sold date (soldAt), the day someone listened, and a reported date (reportedAt), the day or month the store told ReleaseAPI about it. For trends that is the day an import covers, and for statements it is the month the money is booked in. Stores keep reporting recent days, so the same soldAt can grow over several later reports. Each report adds rows and nothing is restated, so a day’s figure is the sum over every report (see Rows add up across imports).

Rows of daily trends by sold day and reported day. Later imports add rows for earlier sold days. reportedAsOf cuts the sum at a reported date. reported · reportedAt1 Mar2 Mar3 Mar4 Marsold · soldAtknown on 2 Marknown now1 Mar1,200+801,2001,2802 Mar1,150+60+101,1501,2203 Mar1,310+90—1,4004 Mar1,240—1,240reportedAsOf = 2 Marlater reports are ignored
Each import adds rows: 1 March’s streams grow from 1,200 to 1,280 when the 3 March import adds 80. A daily series sums every row, and with reportedAsOf it only sums the cells left of the line. The figures are illustrative, and the first row matches Rows add up across imports.

Daily series are keyed by the sold date, so a chart shows when people listened. Pass reportedAsOf to ignore anything reported after a given date. Use it to make a chart reproducible. A query for “streams in February, as we knew them on 5 March” returns the same answer next month, unless that day’s import is re-run, which replaces its numbers.

Daily series from trends

A series gives one point per day for a single object, which is what you draw as a line chart of streams or estimated earnings.

Trends series · all POST
POST/v1/analytics/trends/series/tracks/{trackId}One track
POST/v1/analytics/trends/series/releases/{releaseId}One release, per track
POST/v1/analytics/trends/series/videos/{videoId}One video
POST/v1/analytics/trends/series/customers/{customerId}Everything a customer owns
POST/v1/analytics/trends/series/wallets/{walletId}One wallet’s share
POST/v1/analytics/trends/series/releases/batchTotals for many releases
POST/v1/analytics/trends/series/releases/batch/sumOne series for many releases

Request

fromdate · YYYY-MM-DDRequired

First sold date to include, inclusive.

todate · YYYY-MM-DDRequired

Last sold date to include, inclusive.

serviceReportingService

Limit the series to one service, for example SPOTIFY or APPLE_MUSIC. Leave it out to sum all services. Services that deliver daily data are flagged hasTrendData in reference data.

reportedAsOfdate · YYYY-MM-DD

Ignore data reported after this date. Leave it out to include every later correction.

The cURL examples on this page use $BASE for https://api-sandbox.releaseapi.com/v1 and $RELEASEAPI_KEY for your key, as set up in the Quickstart.

curl "$BASE/analytics/trends/series/tracks/$TRACK_ID" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "from": "2026-02-01", "to": "2026-02-03", "service": "SPOTIFY" }'
// api() is the helper from the Quickstart setup (BASE ends in /v1)
const { points, meta } = await api("POST", `/analytics/trends/series/tracks/${trackId}`, {
  from: "2026-02-01",
  to: "2026-02-03",
  service: "SPOTIFY",
});
# api() is the helper from the Quickstart setup (BASE ends in /v1)
series = api("POST", f"/analytics/trends/series/tracks/{track_id}", {
    "from": "2026-02-01",
    "to": "2026-02-03",
    "service": "SPOTIFY",
})
{
  "points": [
    {
      "soldAt": "2026-02-01",
      "quantity": 1840,
      "estimatedEarningsClient": 5520000000,
      "estimatedEarningsTenant": 4692000000,
      "estimatedEarningsCustomer": 3753600000
    },
    {
      "soldAt": "2026-02-03",
      "quantity": 2011,
      "estimatedEarningsClient": 6033000000,
      "estimatedEarningsTenant": 5128050000,
      "estimatedEarningsCustomer": 4102440000
    }
  ],
  "meta": {
    "requestedFrom": "2026-02-01",
    "requestedTo": "2026-02-03",
    "effectiveFrom": "2026-02-01",
    "effectiveTo": "2026-02-03",
    "reportedAsOf": null,
    "retentionCutoff": "2025-01-30"
  }
}

In the Response tab, 2 February is missing because series are sparse: a day with no data has no point. Fill the gaps with zero before you draw the chart.

What each series returns

EndpointEach point contains
tracks, videos, customerssoldAt, quantity, estimatedEarningsClient, estimatedEarningsTenant, estimatedEarningsCustomer
releasessoldAt and a tracks array with the same fields per trackId. Sum the tracks for a release total.
walletsThe track fields plus estimatedEarningsWallets, the wallet’s share.
On wallet series, only the wallet field is the wallet’s

A wallet point’s quantity and its client, tenant and customer amounts are the whole figures of the tracks the wallet shares in, not the wallet’s part. Three co-writers on one track each see the full track. Show a payee estimatedEarningsWallets (or earningsWallet for statements), and never add the other fields up across wallets.

The wallet field in daily series is plural, estimatedEarningsWallets. In monthly statement series and in summaries it is singular, earningsWallet.

History and the meta block

Daily series keep 370 days. An older from is silently moved forward, so compare meta.effectiveFrom (where the data starts) and meta.retentionCutoff (oldest day available) with your request. For older history use statement series or an export.

Many releases at once

For a catalog list or label overview, send up to 500 release ids in one call instead of looping. The body is the series request plus an ids array.

curl "$BASE/analytics/trends/series/releases/batch" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "8a0d3f52-1c7e-4e19-b6a4-2f9d5c0e7b13",
      "c47e91b0-5a2d-4f86-9e3c-71b8d2a6f054"
    ],
    "from": "2026-01-01",
    "to": "2026-01-31"
  }'
{
  "items": [
    {
      "releaseId": "8a0d3f52-1c7e-4e19-b6a4-2f9d5c0e7b13",
      "quantity": 48211,
      "estimatedEarningsClient": 144633000000,
      "estimatedEarningsTenant": 122938050000,
      "estimatedEarningsCustomer": 98350440000
    },
    {
      "releaseId": "c47e91b0-5a2d-4f86-9e3c-71b8d2a6f054",
      "quantity": 0,
      "estimatedEarningsClient": 0,
      "estimatedEarningsTenant": 0,
      "estimatedEarningsCustomer": 0
    }
  ],
  "meta": {
    "requestedFrom": "2026-01-01",
    "requestedTo": "2026-01-31",
    "effectiveFrom": "2026-01-01",
    "effectiveTo": "2026-01-31",
    "retentionCutoff": "2025-01-30"
  }
}

A batch is all-or-nothing. If one id isn’t yours, the whole call fails with RELEASE_NOT_FOUND. More than 500 ids fails with RELEASE_BATCH_LIMIT, so split large catalogs into chunks of 500 and add the results together. The limit counts distinct ids, and a repeated id is used once.

Monthly series from statements

Statement series answer what a track actually earned. They mirror the daily endpoints, but dates are months (YYYY-MM), points are keyed by reportedAt (the month the money is booked in, not the month of the streams), and amounts have no estimated prefix.

Statements series · all POST
POST/v1/analytics/statements/series/tracks/{trackId}One track
POST/v1/analytics/statements/series/releases/{releaseId}One release, per track
POST/v1/analytics/statements/series/videos/{videoId}One video
POST/v1/analytics/statements/series/customers/{customerId}A customer’s total
POST/v1/analytics/statements/series/customers/{customerId}/countriesPer country
POST/v1/analytics/statements/series/customers/{customerId}/tracksPer release and track
POST/v1/analytics/statements/series/wallets/{walletId}One wallet’s share
curl "$BASE/analytics/statements/series/customers/$CUSTOMER_ID/countries" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "from": "2025-10", "to": "2025-12" }'
{
  "points": [
    {
      "reportedAt": "2025-10",
      "country": "DE",
      "quantity": 21480,
      "earningsClient": 64440000000,
      "earningsTenant": 54774000000,
      "earningsCustomer": 43819200000
    },
    {
      "reportedAt": "2025-10",
      "country": "US",
      "quantity": 15022,
      "earningsClient": 52577000000,
      "earningsTenant": 44690450000,
      "earningsCustomer": 35752360000
    }
  ],
  "meta": {
    "requestedFrom": "2025-10",
    "requestedTo": "2025-12",
    "effectiveFrom": "2025-10",
    "effectiveTo": "2025-12"
  }
}

A wallet’s royalties

For a payee’s royalty view, read the wallet’s statement series. It has one point per reported month, with the wallet’s own money in earningsWallet (see only the wallet field is the wallet’s).

curl "$BASE/analytics/statements/series/wallets/$WALLET_ID" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "from": "2026-07", "to": "2026-09" }'
{
  "points": [
    {
      "reportedAt": "2026-09",
      "quantity": 2400,
      "earningsClient": 10000000000,
      "earningsTenant": 8500000000,
      "earningsCustomer": 6800000000,
      "earningsWallet": 2040000000
    }
  ],
  "meta": {
    "requestedFrom": "2026-07",
    "requestedTo": "2026-09",
    "effectiveFrom": "2026-07",
    "effectiveTo": "2026-09"
  }
}

This is the producer from the worked example, and €2.04 is theirs. The other amounts are the whole track’s. Wallet series have no per-track or per-country breakdown. For a producer’s statement itemized by track, use STATEMENTS_SPLIT or a split export filtered to the wallet.

Estimates against actuals

Statement series are keyed by the month the money was booked, daily series by the day people listened, so the two don’t line up month by month. To compare “August, estimated” with “August, paid”, group both by sale month:

Statements for one sale month can keep arriving over several booked months, so the comparison becomes more accurate over time. To see how late each store reports for you, group STATEMENTS_PROCESSED by service, sold_at and reported_at.

Two differences are by design:

Summaries for 30 and 90 days

A summary is a ready-made dashboard for one window: totals, Spotify engagement, top countries and playlists, listening hours, devices and demographics. Summaries are rebuilt daily, so each request is a single fast read.

Trends summaries · all POST
POST/v1/analytics/trends/summaries/customers/{customerId}Customer overview
POST/v1/analytics/trends/summaries/customers/{customerId}/tracksRanked tracks
POST/v1/analytics/trends/summaries/customers/{customerId}/tracks/{trackId}One track
POST/v1/analytics/trends/summaries/customers/{customerId}/releasesRanked releases
POST/v1/analytics/trends/summaries/customers/{customerId}/releases/{releaseId}One release
POST/v1/analytics/trends/summaries/customers/{customerId}/artistsRanked artists
POST/v1/analytics/trends/summaries/customers/{customerId}/artists/{artistName}One artist
POST/v1/analytics/trends/summaries/customers/{customerId}/videosRanked videos
POST/v1/analytics/trends/summaries/customers/{customerId}/videos/{videoId}One video
POST/v1/analytics/trends/summaries/wallets/{walletId}/tracksRanked tracks for a wallet
POST/v1/analytics/trends/summaries/wallets/{walletId}/tracks/{trackId}One track for a wallet

The window

Summaries are built from daily trends, so every amount in them is an estimate, even though the fields are named earningsCustomer and earningsWallet without the estimated prefix. Label them as estimates, and don’t show them next to statement figures as if they were the same thing.

One summary

For a single object, the body is only the window: { "window": "30d" } or "90d".

curl "$BASE/analytics/trends/summaries/customers/$CUSTOMER_ID/tracks/$TRACK_ID" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "window": "30d" }'
{
  "asOf": "2026-03-10",
  "elementId": "3f6c2a91-8d4e-4b7a-9c51-0e2f7a1d6b38",
  "window": "30d",
  "metrics": {
    "totals": {
      "quantity": 48211,
      "earningsCustomer": 96422000000,
      "earningsWallet": null
    },
    "spotify": {
      "streams": 30117,
      "skips": 7130,
      "saves": 912,
      "skipRate": 0.2367,
      "discoveryRate": 0.41
    },
    "countries": [
      { "country": "DE", "quantity": 12004 },
      { "country": "US", "quantity": 9220 }
    ],
    "playlists": { "spotify:playlist:37i9dQZF1DXcBWIGoYBM5M": 5120 },
    "localHours": { "0": 310, "1": 120, "22": 1240, "23": 980 },
    "transactions": {
      "adSupported": 9100,
      "subscription": 35210,
      "family": 2100,
      "trial": 300,
      "education": 400,
      "discounted": 801,
      "generic": 299
    },
    "devices": {
      "ecosystem": {
        "android": 20110,
        "apple": 17004,
        "microsoft": 800,
        "linux": 12,
        "web": 3900,
        "other": 385
      },
      "deviceType": {
        "mobile": 36011,
        "pc": 6230,
        "tablet": 900,
        "smartTv": 1500,
        "console": 40,
        "automotive": 2210,
        "wearable": 30,
        "device": 1100,
        "other": 170
      }
    },
    "demographics": {
      "gender": { "male": 21000, "female": 19870, "other": 540 },
      "spotifyAge": {
        "age0to17": 1200,
        "age18to22": 8700,
        "age23to27": 9100,
        "age28to34": 7800,
        "age35to44": 5100,
        "age45to59": 2400,
        "age60to150": 400,
        "unknown": 1100
      }
    }
  }
}

Breakdowns are only as rich as the stores’ reports, and spotify, playlists, devices and age groups mostly come from Spotify. Without Spotify data those blocks are present with null values, and playlists and localHours are empty objects. Treat every breakdown value as optional.

Ranked lists

The list endpoints (…/tracks, …/releases, …/artists, …/videos) rank the customer’s or wallet’s catalog for the window. They take:

window"30d" | "90d"Required

The summary window.

sortobject

{ "field": …, "direction": "asc" | "desc" }. The default is quantity descending.

quantityearningsCustomerearningsWalletspotifyStreamsspotifySkipsspotifySavesspotifySkipRatespotifyDiscoveryRate
idsstring[]

Only rank these objects. On the artists list the filter is called names and takes artist names.

pageSizeinteger · 1–500

Items per page, 50 by default. Values outside 1–500 are clamped to the nearest limit, not rejected.

cursorstring

The nextCursor from the previous page. nextCursor is null on the last page.

curl "$BASE/analytics/trends/summaries/customers/$CUSTOMER_ID/tracks" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "window": "30d",
    "sort": { "field": "spotifySaves", "direction": "desc" },
    "pageSize": 10
  }'
{
  "asOf": "2026-03-10",
  "window": "30d",
  "items": [
    {
      "elementId": "3f6c2a91-8d4e-4b7a-9c51-0e2f7a1d6b38",
      "totals": {
        "quantity": 48211,
        "earningsCustomer": 96422000000,
        "earningsWallet": null
      },
      "spotify": {
        "streams": 30117,
        "skips": 7130,
        "saves": 912,
        "skipRate": 0.2367,
        "discoveryRate": 0.41
      }
    }
  ],
  "nextCursor": "MTA="
}

An artist name in a path must be URL-encoded: …/artists/Nova%20Reyes.

Build an artist dashboard

A typical artist screen needs four calls, all for the artist’s customer id:

  1. Headline numbers

    Request the customer’s summary with window: "30d". Show totals.quantity and totals.earningsCustomer, with the top countries and playlists beside them.

  2. The line chart

    Request the customer’s daily trends series from 90 days ago to asOf. Fill missing days with zero.

  3. Top tracks

    Request the summary track list sorted by quantity, with pageSize: 10. Each row links to the per-track summary.

  4. Royalties

    Request the statement series for the artist’s wallet by month, and show earningsWallet. For an artist with several wallets, request one series per wallet and add them up. For the whole roster at once, use the monthly report. This is the money they can expect to be paid, as opposed to the estimate above. A customer series shows what the releases they own earned before splits, which only equals their pay when they hold the whole share.

A label dashboard

There is no tenant-level series and no tenant-wide ranked list, because summaries rank one customer’s or wallet’s catalog. For a label’s own view:

Daily numbers are estimates. They keep changing for a few days after the streams happen. Label them as estimates in your UI, and use statement figures anywhere you talk about payouts.

Access and errors

Analytics needs the REPORTING_READ permission and works with a client key or a tenant key. A tenant key can only read objects in its own tenant. Anything else returns 404, exactly as if it didn’t exist. Codes that start with HELIX_ come from Helix, the analytics service behind these endpoints.

StatusCodeWhat to do
400RELEASE_IDS_REQUIRED
RELEASE_BATCH_LIMIT
RELEASE_NOT_FOUND
Fix the batch: 1–500 ids, all your own.
400DECODING_FAILEDAn unknown summary window or sort field. Use 30d or 90d and a listed sort field.
404not foundThe object doesn’t exist or isn’t in your key’s tenant.
4xxHELIX_QUERY_FAILEDThe analytics query failed for another reason. Check the request; don’t retry it unchanged.
503NOT_READY
HELIX_UNAVAILABLE
HELIX_NOT_CONFIGURED
The analytics service is starting up or briefly unavailable. Retry with backoff.

Next steps

Reports and exports

When daily store data arrives, which raw reports you can download, and how to order CSV exports for finance.

Read the guide →

How money flows

Where the four money levels and wallet shares come from.

Read the guide →

Artist profiles

Link each contributor to their artist page on Spotify and Apple Music.

Read the guide →