Skip to main content
GET
/
product
/
Get Products
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/product/ \
  --header 'Authorization: Bearer <token>'
{
  "message": "Products retrieved successfully",
  "products": [
    {
      "id": "437307ed-b268-4ee0-867d-f67816a77ffa",
      "title": "Mavins sabi girl",
      "upc": "TEMP437307ed-b26",
      "displayArtist": "arya star",
      "createdAt": "2025-06-24T10:17:43.818Z",
      "updatedAt": "2025-06-24T10:17:43.818Z",
      "type": "Audio",
      "label": null,
      "releaseDate": "2022-02-01T00:00:00.000Z",
      "format": "Single",
      "version": null,
      "takedownDate": "2026-02-01T00:00:00.000Z",
      "status": "Live",
      "distribution": "Example Distribution",
      "mainGenre": [
        "Pop"
      ],
      "subGenre": [
        "Electronic"
      ],
      "explicit": null,
      "Artists": [
        {
          "id": "cfbb1259-c087-4118-8e11-f6e72bd60f89",
          "artistName": "",
          "type": "primary"
        },
        {
          "id": "c475576c-4e3f-45d4-846b-b84205b2fac0",
          "artistName": "NameArt",
          "type": "primary"
        }
      ],
      "ProductAssets": [
        {
          "AssetId": "007c9895-14a3-40e3-86c3-56d59787649f"
        },
        {
          "AssetId": "a3c06e35-1765-4a2e-8f98-afd61949ff2c"
        }
      ]
    }
  ],
  "totalPages": 50,
  "currentPage": 1,
  "filteredItems": 10
}
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/product/', {
  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

q
string

Search query to filter products

page
integer
default:1

Page number for pagination

size
integer
default:10

Number of products per page

sort
string
default:updatedAt

Field to sort by

order
enum<string>
default:desc

Sort order ('asc' or 'desc')

Available options:
asc,
desc
artist
string

Filter by artist ID(s). Comma-separated for multiple

type
string

Filter by product type

splits
boolean
default:false

Whether to include splits information

statistics
boolean
default:false

Whether to include statistical data

asset
string

Filter by asset ID

attributes
string

Comma-separated list of attributes to include in the response

role
string

Filter by role

user
string

Filter by user ID

Response

Success

message
string
products
object[]
totalPages
integer
currentPage
integer
pageSize
integer