Skip to main content
GET
/
royalty
/
tables
Get Royalties grouped by table source
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/royalty/tables \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "Table_Name": "africori_202411",
      "Royalty": 2450.75,
      "Count": 12500
    },
    {
      "Table_Name": "symphonic_202304",
      "Royalty": 1876.32,
      "Count": 9850
    },
    {
      "Table_Name": "distrokid_202401",
      "Royalty": 1234.56,
      "Count": 7890
    }
  ]
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/royalty/tables', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

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

aggregator
string

Filters by aggregator. Comma-separated values

table_name
string

Filters by data source table name. Comma-separated values for multiple tables

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
page
integer

Page number for pagination

Required range: x >= 1
size
integer

Number of items per page

Required range: 1 <= x <= 100

Response

Successfully retrieved table-grouped royalty data

results
object[]
totalPages
integer

Total number of pages (when paginated)

currentPage
integer

Current page number (when paginated)

totalItems
integer

Total number of items (when paginated)