Skip to main content

GET Podcasts with pagination

Overview


The following table contains information about the GET method for managing the process of retrieving all podcasts in a list.

GET Podcasts with pagination
MethodGET
URL or Endpoint/api/projects/projectId/podcasts
HeadersAuthorization
ParameterscategoryName, search, order, insertedDate, page, take, projectId
BodyNot Applicable

The description of the URL parameter is as follows:

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

The description of the parameters is as follows:

Parameter NameMandatoryTypeDescription
categoryNameNostringName of category.
searchNostringText that is used for filtering.
orderNostringSpecifies the sorting order.
insertedDateNostring($date-time)Date when the podcast was inserted.
pageNointeger($int32)A specific page with podcasts.
takeNointeger($int32)Number of podcasts to take.

Request Body

This method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"currentPage": 1,
"totalPages": 2,
"pageSize": 10,
"totalCount": 16,
"items": [
{
"title": "{title}",
"publicId": "{podcastId}",
"author": "{author}",
"publishDate": "2024-04-05T11:42:26.7826159",
"categoryName": "Arts",
"thumbnailUrl": "https://cdn.vpplayer.tech/{projectId}/podcasts/thumbnails/87818853-8739-4d20-a041-7971b5ac206a.png",
"canEmbed": true
},
{
"title": "{title}",
"publicId": "{podcastId}",
"author": "{author}",
"publishDate": "2024-04-08T08:29:44.4508549",
"categoryName": "Arts",
"thumbnailUrl": "",
"canEmbed": true
},
{
"title": "{title}",
"publicId": "{podcastId}",
"author": "{author}",
"publishDate": "2024-04-19T12:26:06.0866873",
"categoryName": "Arts",
"thumbnailUrl": "https://cdn.vpplayer.tech/{projectId}/podcasts/thumbnails/0ca0c734-125e-48c3-aeac-138a6ea6ddec.jpg",
"canEmbed": true
}

]
},
"resultInfo": null,
"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, it will return false
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from back-end
resultObjectReturns the response object
currentPageinteger($int32)Number of the current page
totalPagesinteger($int32)Number of the total pages
pageSizeinteger($int32)The size of the page
totalCountinteger($int32)Number of the total records
itemsarray[Object]Array with records
titlestringTitle of the podcast
publicIdstringPublic Id of podcast
authorstringAuthor of the podcast
publishDateDateDate when podcast is published
categoryNamestringCategory of the podcast
thumbnailUrlstringURL of the podcast's thumbnail
canEmbedboolIndicates if the podcast can be embedded
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