Skip to main content
GET
/
royalty
/
dsp
Get Royalties grouped by DSP (Providers)
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/royalty/dsp \
  --header 'Authorization: Bearer <token>'
[
  {
    "dsp": "Spotify",
    "totalRoyalty": 2456.75,
    "totalCount": 245000,
    "percentage": "45.2%"
  },
  {
    "dsp": "Apple Music",
    "totalRoyalty": 1876.5,
    "totalCount": 156000,
    "percentage": "34.5%"
  },
  {
    "dsp": "YouTube Music",
    "totalRoyalty": 1102.25,
    "totalCount": 98000,
    "percentage": "20.3%"
  }
]
Get Royalties grouped by DSP (Providers) This endpoint retrieves royalty data grouped by Digital Service Providers (DSPs), showing revenue breakdown by platform.

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
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
aggregatorstringqueryFilters by aggregator. 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 DSP

⚠️ 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

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

aggregator
string

Filters by aggregator. 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 DSP

dsp
string

Digital Service Provider name

totalRoyalty
number

Total royalty from this DSP

totalCount
integer

Total plays/sales from this DSP

percentage
string

Percentage of total royalties

I