Skip to content

Get All Brands

Get a paginated list of all product brands. Public endpoint.

Endpoint

GET /v1/products/brand/

Authentication

Not required (public endpoint)

Query Parameters

Parameter Type Required Description
page integer Yes Page number (starts at 1)
count integer Yes Items per page (max 100)
search string No Search by brand name (case-insensitive)

Response

Success (200 OK)

{
  "count": 15,
  "data": [
    {
      "id": 1,
      "name": "Brand Name",
      "image": "https://...",
      "created": "2025-01-15T10:30:00Z"
    }
  ]
}

Error Responses

Pagination Error (400)

{
  "error": "page cannot be zero or minus"
}

Example Request

curl -X GET "https://api.luxmart.site/v1/products/brand/?page=1&count=20&search=nike"

Notes

  • Only returns non-deleted brands
  • Search matches against brand name
  • Results are ordered by ID descending (newest first)
  • This is a public endpoint, no authentication required