Skip to main content

GET Top Audios

Overview


The following table contains important information about the GET method in regards to receiving the top audios for the platform.

GET Top Audios
MethodGET
URL or Endpoint/api/v1/projects/projectId/dashboard/topAudios
HeadersAuthorization
ParametersprojectId, startDate, endDate, items, intervalType
BodyNot Applicable

The description of the URL parameter is as follows:

projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project

The description of the query parameters is as follows:

Parameter NameMandatoryTypeDescription
intervalTypeNointeger($int32)Determines the time interval for which the top audios are calculated.
Available values: 0, 1, 2, 3, 4, 5, 6, 7, 8
startDateNostring($date-time)The start date and time from which to begin collecting audio data.
endDateNostring($date-time)The end date and time up to which to collect audio data.
itemsNointeger($int32)The number of top audios to return.
info

If no intervalType value is provided, the endpoint defaults to returning the top videos for the last 24 hours.

To manually specify startDate and endDate, the intervalType parameter must be set to 5. Otherwise, any provided dates will be ignored.

Request Body

The request does not contain a request body.

Response

{
"success": true,
"errors": [
"string"
],
"messages": [
"string"
],
"result": [
{
"id": "string",
"thumbnailUrl": "string",
"canEmbed": true,
"title": "string",
"author": "string",
"insertDate": "2025-10-29T13:35:14.117Z",
"listens": 0
}
],
"resultInfo": "string",
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns the response message from back-end.
resultarray[object]Returns the list of top audios along with their metadata and play counts.
idstringUnique identifier of the audio.
thumbnailUrlstringURL of the audio's thumbnail image.
canEmbedboolSpecifies whether the audio can be embedded on external sites.
titlestringThe title of the audio.
authorstringThe name of the audio's creator or publisher.
insertDatestring($date-time)The date and time when the audio was uploaded or recorded.
listensinteger($int32)The total number of listeners for the audio within the specified interval.
resultInfostringReturns extra information about the result.
statusCodeinteger($int32)Returns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed