Skip to main content
GET
/
royalty
/
aggregator
Get Royalties grouped by aggregator
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/royalty/aggregator \
  --header 'Authorization: Bearer <token>'
[
  {
    "aggregator": "DistroKid",
    "totalRoyalty": 3256.75,
    "totalCount": 325000,
    "percentage": "52.8%"
  },
  {
    "aggregator": "TuneCore",
    "totalRoyalty": 1856.5,
    "totalCount": 185000,
    "percentage": "30.1%"
  },
  {
    "aggregator": "CD Baby",
    "totalRoyalty": 1056.25,
    "totalCount": 105000,
    "percentage": "17.1%"
  }
]
Get Royalties grouped by aggregator This endpoint retrieves royalty data grouped by aggregator/distributor, showing revenue breakdown by distribution partner.

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Query Parameters

ParameterTypeInRequiredDescription
artistsstringqueryFilters the data by artist. Comma-separated list of artist IDs
userstringqueryFilters the data by user. Specifies a user ID
countrystringqueryFilter the data by country. Comma-separated values
dspstringqueryFilters by DSP (Digital Service Provider). Comma-separated values
startstringqueryStart date of the period (YYYY-MM-DD format)
endstringqueryEnd date of the period (YYYY-MM-DD format)
typestringqueryFilters by sale type. Comma-separated values
upcstringqueryFilters by UPC (Universal Product Code). Comma-separated values
isrcstringqueryFilters by ISRC (International Standard Recording Code). Comma-separated values
periodFilterTypestringqueryFilters by either ‘accounting’ or ‘sale’ period

Responses

✅ 200 - Successfully retrieved royalty data by aggregator

⚠️ 401 - Unauthorized

❌ 500 - Internal Server Error

Tags

Royalties

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Query Parameters

artists
string

Filters the data by artist. Comma-separated list of artist IDs

user
string<uuid>

Filters the data by user. Specifies a user ID

country
string

Filter the data by country. Comma-separated values

dsp
string

Filters by DSP (Digital Service Provider). Comma-separated values

start
string<date>

Start date of the period (YYYY-MM-DD format)

end
string<date>

End date of the period (YYYY-MM-DD format)

type
string

Filters by sale type. Comma-separated values

upc
string

Filters by UPC (Universal Product Code). Comma-separated values

isrc
string

Filters by ISRC (International Standard Recording Code). Comma-separated values

periodFilterType
enum<string>

Filters by either 'accounting' or 'sale' period

Available options:
accounting,
sale

Response

Successfully retrieved royalty data by aggregator

aggregator
string

Aggregator/distributor name

totalRoyalty
number

Total royalty from this aggregator

totalCount
integer

Total plays/sales from this aggregator

percentage
string

Percentage of total royalties

I