GET
/
royalty
/
artist
Get Royalties grouped by artist
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/royalty/artist \
  --header 'Authorization: Bearer <token>'
[
  {
    "artistId": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "artistName": "Artist One",
    "totalRoyalty": 2856.75,
    "totalCount": 285000,
    "percentage": "46.3%"
  },
  {
    "artistId": "f9e8d7c6-b5a4-3210-9876-543210fedcba",
    "artistName": "Artist Two",
    "totalRoyalty": 1956.5,
    "totalCount": 195000,
    "percentage": "31.7%"
  }
]

Authorizations

Authorization
string
header
required

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

Query Parameters

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

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

200
application/json

Successfully retrieved royalty data by artist

The response is of type object[].