Skip to main content
Retrieves a paginated list of all published content with optional filters. This is a public endpoint that does not require authentication.

Query Parameters

page
number
default:"1"
Page number for pagination
limit
number
default:"10"
Number of items per page
category
string
Filter by category ID
type
string
Filter by content type. Must be one of: pdf, video, audio
minPrice
number
Filter by minimum price
maxPrice
number
Filter by maximum price
Full-text search across title, description, and tags

Response

content
array
Array of content objects
totalPages
number
Total number of pages
currentPage
number
Current page number
totalContent
number
Total count of content items
The fileUrl and filePublicId fields are not included in the public listing response. Users must purchase content to access the file URL via the Access Content endpoint.
{
  "content": [
    {
      "_id": "507f1f77bcf86cd799439011",
      "title": "Advanced JavaScript Patterns",
      "description": "Learn advanced design patterns in JavaScript",
      "type": "pdf",
      "category": "507f1f77bcf86cd799439012",
      "price": 29.99,
      "thumbnailUrl": "https://res.cloudinary.com/example/image/upload/v1234567890/thumbnail.jpg",
      "fileSize": 5242880,
      "status": "published",
      "tags": ["javascript", "patterns", "advanced"],
      "createdBy": {
        "_id": "507f1f77bcf86cd799439013",
        "name": "John Doe"
      },
      "createdAt": "2024-03-01T12:00:00.000Z",
      "updatedAt": "2024-03-01T12:00:00.000Z"
    }
  ],
  "totalPages": 5,
  "currentPage": 1,
  "totalContent": 47
}

Build docs developers (and LLMs) love