Brands

Overview of the Brands resource and associated endpoints.

Brands in Marketplacer represent the brands for adverts.

Listing brands

This endpoint returns all brands.

Request

GET /api/v2/brands

Response

Status: 200 OK
{
  "data": [
    {
      "id": 1,
      "type": "brands",
      "attributes": {
        "name": "Giant",
        "slug": "giant"
      }
    }
  ]
}

Search for brands

This endpoint allows you to search for a brand by its name or by a substring of its name.

Request

If you wish to search for the “Giant” brand, make a query like this:

GET /api/v2/brands/search?name=Giant

If you wish to search by a substring, add the autocomplete parameter, like this:

GET /api/v2/brands/search?name=Gia&autocomplete=1

Response

Status: 200 OK
{
  "data": [
    {
      "id": 1,
      "type": "brands",
      "attributes": {
        "name": "Giant",
        "slug": "giant"
      }
    }
  ]
}