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.
- Trends are daily estimates that keep growing for a few days. Statements are monthly, accounted and final.
- Money is a bare integer in nano-euros:
5520000000is €5.52. - Every amount comes at four levels (client, tenant, customer, wallet). Show artists customer or wallet figures.
- Daily series are keyed by
soldAtand keep 370 days. They are sparse, so fill missing days with zero. - On wallet endpoints, only the wallet field is the wallet’s share. The other amounts are the whole track’s.
- Batch up to 500 release ids per call instead of looping.
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 | Statements | |
|---|---|---|
| Granularity | One row per day sold | One row per month reported |
| Money | Estimated, field names start with estimated | Accounted, what the store actually paid |
| Arrives | A day or a few days after the stream | When RecordJet accepts the month |
| Changes later? | Yes, stores restate recent days | No, once accepted it’s final |
| Use it for | Momentum, charts, early signals | Royalty 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.
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 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).
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.
POST/v1/analytics/trends/series/tracks/{trackId}One track/v1/analytics/trends/series/releases/{releaseId}One release, per track/v1/analytics/trends/series/videos/{videoId}One video/v1/analytics/trends/series/customers/{customerId}Everything a customer owns/v1/analytics/trends/series/wallets/{walletId}One wallet’s share/v1/analytics/trends/series/releases/batchTotals for many releases/v1/analytics/trends/series/releases/batch/sumOne series for many releasesRequest
First sold date to include, inclusive.
Last sold date to include, inclusive.
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.
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
| Endpoint | Each point contains |
|---|---|
| tracks, videos, customers | soldAt, quantity, estimatedEarningsClient, estimatedEarningsTenant, estimatedEarningsCustomer |
| releases | soldAt and a tracks array with the same fields per trackId. Sum the tracks for a release total. |
| wallets | The track fields plus estimatedEarningsWallets, the wallet’s share. |
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.
…/releases/batchreturns one total per release for the window:{ items: [{ releaseId, quantity, estimatedEarningsClient, … }], meta }. Releases with no data come back with zeros.…/releases/batch/sumreturns one daily series for the whole set plus atotalsobject, which suits a chart for the whole label.
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.
POST/v1/analytics/statements/series/tracks/{trackId}One track/v1/analytics/statements/series/releases/{releaseId}One release, per track/v1/analytics/statements/series/videos/{videoId}One video/v1/analytics/statements/series/customers/{customerId}A customer’s total/v1/analytics/statements/series/customers/{customerId}/countriesPer country/v1/analytics/statements/series/customers/{customerId}/tracksPer release and track/v1/analytics/statements/series/wallets/{walletId}One wallet’s sharecurl "$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"
}
}
- The body is
from,to(selectingreportedAtmonths) and optionalservice. Thecountriesandtracksbreakdowns silently ignoreservice. - A
trackspoint carriesreportedAt,releaseId,trackId,quantity,earningsClient,earningsTenantandearningsCustomer. - There is no history limit, so every accepted month is available.
reportedAsOfis accepted but has no effect, because accepted months never change. - Series refresh a few minutes after a month’s reports appear, and nothing signals when that happens. Pay from the reports, and in a dashboard, retry a series that doesn’t show the new month yet.
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:
- Estimated: sum the daily series over August.
- Paid: order a
STATEMENTS_PROCESSED_EXTERNAL_SUMMARYexport withsoldAtFromandsoldAtToset to August, andreportedAtFrom/reportedAtTofrom September (a sale is booked after its month) to the latest final 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:
- Fees. Estimates use the fees in force on the day of the stream, while statements use those of the month the money is booked in. The two drift apart around a fee change.
- Rates. Estimates apply average per-stream rates by store and country, so a single track or month can be well off either way. See How estimates work.
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.
POST/v1/analytics/trends/summaries/customers/{customerId}Customer overview/v1/analytics/trends/summaries/customers/{customerId}/tracksRanked tracks/v1/analytics/trends/summaries/customers/{customerId}/tracks/{trackId}One track/v1/analytics/trends/summaries/customers/{customerId}/releasesRanked releases/v1/analytics/trends/summaries/customers/{customerId}/releases/{releaseId}One release/v1/analytics/trends/summaries/customers/{customerId}/artistsRanked artists/v1/analytics/trends/summaries/customers/{customerId}/artists/{artistName}One artist/v1/analytics/trends/summaries/customers/{customerId}/videosRanked videos/v1/analytics/trends/summaries/customers/{customerId}/videos/{videoId}One video/v1/analytics/trends/summaries/wallets/{walletId}/tracksRanked tracks for a wallet/v1/analytics/trends/summaries/wallets/{walletId}/tracks/{trackId}One track for a walletThe 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.
- The window covers the 30 or 90 sold days before
asOf, which is about two days before today (UTC) because stores report late.asOfitself isn’t included. - Spotify skips and saves are grouped by the day Spotify reported them, not the sold day.
- Summaries are rebuilt daily around 01:00 UTC. A release that went live yesterday shows zeros until its first full days arrive.
- An object with no data still returns the full document, not a
404: totals are0, every breakdown value isnull,countriesis[],playlistsandlocalHoursare{}, andelementIdisnull.
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:
The summary window.
{ "field": …, "direction": "asc" | "desc" }. The default is quantity descending.
quantityearningsCustomerearningsWalletspotifyStreamsspotifySkipsspotifySavesspotifySkipRatespotifyDiscoveryRateOnly rank these objects. On the artists list the filter is called names and takes artist names.
Items per page, 50 by default. Values outside 1–500 are clamped to the nearest limit, not rejected.
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:
Headline numbers
Request the customer’s summary with
window: "30d". Showtotals.quantityandtotals.earningsCustomer, with the top countries and playlists beside them.The line chart
Request the customer’s daily trends series from 90 days ago to
asOf. Fill missing days with zero.Top tracks
Request the summary track list sorted by
quantity, withpageSize: 10. Each row links to the per-track summary.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:
- Streams and estimated earnings: call
…/trends/series/releases/batch/sumover the label’s release ids in chunks of 500, and add the results together. Get the ids by pagingGET /v1/distribution/catalog/full-releases?status=RELEASED. - What’s working across the label (A&R): rank each customer’s catalog with the ranked lists and merge them. For a true label-wide ranking, load
TRENDS_PLAYS_PER_TRACKreports into your warehouse and rank there. - What each artist earned: follow Show each artist their monthly earnings, which is the recommended method.
- Accounted money and what the label keeps: use the month’s statement reports for the tenant.
STATEMENTS_PLAYS_PER_CUSTOMERsummed gives the tenant’s revenue, andtotal_revenue_tenant − total_revenue_customeris what the label kept in fees. For a quarter, add the three months.
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.
| Status | Code | What to do |
|---|---|---|
| 400 | RELEASE_IDS_REQUIREDRELEASE_BATCH_LIMITRELEASE_NOT_FOUND | Fix the batch: 1–500 ids, all your own. |
| 400 | DECODING_FAILED | An unknown summary window or sort field. Use 30d or 90d and a listed sort field. |
| 404 | not found | The object doesn’t exist or isn’t in your key’s tenant. |
| 4xx | HELIX_QUERY_FAILED | The analytics query failed for another reason. Check the request; don’t retry it unchanged. |
| 503 | NOT_READYHELIX_UNAVAILABLEHELIX_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 →