Skip to main content

GET /api/collections

Returns a paginated list of public collections.

Query Parameters

ParameterDefaultDescription
page1Page number
limit20Items per page
searchSearch name/description
sortrecentrecent or popular

Response (200)

{
  "data": [
    {
      "id": "uuid",
      "name": "Tokyo Street Recipes",
      "description": "My favorite street photography settings",
      "coverImageUrl": "https://...",
      "itemCount": 12,
      "favoriteCount": 18,
      "isFavorited": false,
      "isPublic": true,
      "author": {
        "id": "uuid",
        "username": "johndoe",
        "avatarUrl": "https://..."
      },
      "createdAt": "2024-01-15T10:30:00Z"
    }
  ],
  "pagination": { ... }
}