# Makes

The brands in the catalogue, each with its model count and logo.

## List makes

`GET /v1/makes`

Alphabetical by default.

**Request**

```bash
curl "https://autospec.launchit.ro/v1/makes?q=volks" \
  -H "X-API-Key: as_live_your_key"
```

**Response**

```json
{
  "items": [
    {
      "id": 1,
      "path": "volkswagen",
      "slug": "volkswagen",
      "name": "Volkswagen",
      "country": "Germany",
      "website": null,
      "logo_url": "/v1/makes/volkswagen/logo",
      "logo_dark_url": "/v1/makes/volkswagen/logo/dark",
      "popular_for": ["car"],
      "tier": "mainstream",
      "markets": ["europe", "cis", "north_america", "latin_america", "china", "japan", "south_korea", "india", "southeast_asia", "oceania", "middle_east", "africa"],
      "model_count": 86,
      "notes": null,
      "updated_at": "2026-09-17T05:10:53.673095"
    }
  ],
  "next_cursor": null,
  "limit": 50
}
```

## Filters

| Filter | Type | Operators | Meaning |
|---|---|---|---|
| `q` | custom | `=` | Matches the name or the slug. |
| `country` | text | `=` | Matches the country. |
| `popular` | custom | `=` | true: only the makes that sell in numbers in Europe, for the kind of vehicle asked for. false: the rest. |
| `tier` | one of `make_tier` | `=` `.not` | Only makes of this kind: mainstream, luxury, exotic or specialist. A comma means any of several. `.not` leaves those kinds out instead. |
| `market` | one of `market` | `=` | Only makes sold in this market, now or in the past, such as europe. A comma means any of several. |
| `powertrain_kind` | one of `powertrain_kind` | `=` | Only makes with a published version of this powertrain: combustion, hybrid, electric, fuel_cell. A comma means any of several. The counts on the page then count only what matches. |
| `vehicle_type` | one of `vehicle_type` | `=` | Which kind of makes: car or motorcycle. A comma means either. Left out, it is car. |

Sort by `name`, `id`, with `-` in front to reverse. `limit` and `cursor` page the list, as [everywhere](https://autospec.launchit.ro/docs/conventions).

## Only makes with a given powertrain

`powertrain_kind=combustion` keeps the makes with at least one published version of that kind, so a brand that only builds electric cars is not listed at all. A comma means any of several: `powertrain_kind=combustion,hybrid`.

The counts follow the filter. With it, `model_count` counts only the models that have such a version, so a picker never offers a model the next request would show as empty.

## Popular makes

`popular=true` returns only the makes that sell in numbers in Europe, which is the short list a picker shows before the full one:

```
/v1/makes?popular=true                            popular car makes
/v1/makes?popular=true&vehicle_type=motorcycle    popular motorcycle makes
```

Popularity is per kind of vehicle. Honda is popular for both, Ducati for motorcycles only, so the answer follows `vehicle_type` like everything else on this list. The list is curated by hand and is not a sales ranking: it comes back in the order you sort by, alphabetical unless you say otherwise. `popular=false` returns the rest.

## Kind of maker and market

Two facts about a make let a list leave out the ones an application has no use for. A fuel price site does not need Bugatti or Caterham in its picker, and one for European drivers does not need a make sold only in China.

`tier` says what kind of maker it is:

| Tier | What it covers |
|---|---|
| `mainstream` | Series production sold through ordinary dealers, from budget to premium: Dacia, Toyota, BMW, Porsche. Makes that no longer exist but sold in volume, such as Saab and Rover, are here too. |
| `luxury` | Series-production luxury and supercar makers: Ferrari, Bentley, Rolls-Royce, Aston Martin. |
| `exotic` | Hypercar and boutique makers building a few hundred vehicles a year at most: Bugatti, Pagani, Koenigsegg. |
| `specialist` | The rest of the low-volume makers: kit and track-day cars, hand-built cars, tuners sold as makes, coachbuilders. Caterham, Morgan, Alpina. |

`markets` lists where the make sells, or sold, new vehicles through its own dealers in ordinary numbers: `europe`, `cis`, `north_america`, `latin_america`, `china`, `japan`, `south_korea`, `india`, `southeast_asia`, `oceania`, `middle_east`, `africa`. A make that no longer exists keeps the markets it had, because its cars are still on the road there.

```
/v1/makes?market=europe                              sold in Europe
/v1/makes?tier=mainstream,luxury                     only these kinds
/v1/makes?tier.not=exotic,specialist                 everything except these kinds
/v1/makes?market=europe&tier.not=exotic,specialist   a European picker without the rarities
```

A comma means any of several. Both filters work the same way on [models](https://autospec.launchit.ro/docs/models), [generations](https://autospec.launchit.ro/docs/generations) and [versions](https://autospec.launchit.ro/docs/versions), where they are about the make each record belongs to.

Both are judgements about the make as a whole, curated by hand. They do not say that every model was sold everywhere the make was: a Toyota built only for Japan still belongs to a make sold in Europe. A make nobody has classified has a `null` tier and no markets, so `tier=` and `market=` leave it out, while `tier.not=` keeps it.

## Cars and motorcycles

Every list answers with cars unless it is told otherwise, so `/v1/makes` leaves out a brand that builds only motorcycles. `vehicle_type=motorcycle` lists the makes with at least one motorcycle, and `vehicle_type=car,motorcycle` lists both. A make such as Honda appears under either.

`model_count` follows: it counts the models of the kind the request is about.

## One make

`GET /v1/makes/{id-or-slug}`

Takes the numeric id or the slug: `/v1/makes/1` and `/v1/makes/volkswagen` are the same make. A make that does not exist, or is not published, is a `404`.

## Fields

| Field | Type | Description |
|---|---|---|
| `id` | integer | Never changes. |
| `path`, `slug` | string | The make's slug. For a make the two are the same. |
| `name` | string | As the brand writes it. |
| `country` | string or null | Where the brand is from. |
| `website` | string or null | The brand's own site. |
| `logo_url` | string or null | Where this API serves the logo for a light background, relative to the API root. `null` when there is none. |
| `logo_dark_url` | string or null | The same for the logo drawn for a dark background. `null` when there is none. |
| `popular_for` | list | The kinds of vehicle the make is popular for in Europe: `car`, `motorcycle`, both, or empty. |
| `tier` | string or null | What kind of maker it is: `mainstream`, `luxury`, `exotic` or `specialist`. `null` where nobody has said. |
| `markets` | list | Where the make sells, or sold, new vehicles. Empty where nobody has said. |
| `model_count` | integer | Published models of the kind asked for (cars, unless `vehicle_type` says otherwise), narrowed further under a `powertrain_kind` filter. One make fetched by id counts every kind. |
| `updated_at` | instant | When the record last changed. |

## The logos

`GET /v1/makes/{id-or-slug}/logo`

`GET /v1/makes/{id-or-slug}/logo/dark`

A make can carry two logos: one drawn to sit on a light background, at `/logo`, and one for a dark background, at `/logo/dark`. Use `logo_url` in a light theme and `logo_dark_url` in a dark one. Either can be missing, and then its field is `null` and its endpoint is a `404`, so fall back to the other one.

Each returns the image itself, as PNG, JPEG or WebP. It needs a key and costs a credit like any other request, so a public website should fetch it once and serve its own copy rather than pointing browsers at the API.

## Every logo in one image

A list of makes with a logo beside each would cost a request per logo. Instead, take them all as one image, a sprite, with its index: two requests for the whole list.

`GET /v1/makes/logos`

**Request**

```bash
curl "https://autospec.launchit.ro/v1/makes/logos?theme=light&size=64" \
  -H "X-API-Key: as_live_your_key"
```

**Response**

```json
{
  "sprite_url": "/v1/makes/logos/sprite.png?theme=light&size=64&v=48213",
  "theme": "light",
  "size": 64,
  "width": 1024,
  "height": 512,
  "logos": [
    { "id": 2, "slug": "abarth", "name": "Abarth", "x": 0, "y": 0, "fallback": false },
    { "id": 4, "slug": "acura", "name": "Acura", "x": 64, "y": 0, "fallback": false }
  ]
}
```

`GET /v1/makes/logos/sprite.png?theme=light&size=64&v=48213`

The sprite is a grid of square cells, `size` pixels each, with every logo fitted and centred in its own cell on a transparent background. `x` and `y` are the top-left corner of a make's cell. Every published make with a logo is in it, ordered by slug, whether it builds cars or motorcycles.

| Parameter | Values | Meaning |
|---|---|---|
| `theme` | `light` (default), `dark` | Logos for a light or a dark background. In `dark`, a make with no dark logo shows its ordinary one, and its `fallback` is `true`. |
| `size` | `32`, `64` (default), `128` | Cell size in pixels. For a sharp image on a high-density screen, ask for twice the size you display. |

Fetch `sprite_url` as it is given. Its `v` changes whenever any logo changes, so the image at one URL never changes and can be cached for as long as you like. The index tells you when there is a new one.

In a web page, show a cell as a background:

**CSS**

```css
.make-logo {
  width: 32px; height: 32px;            /* displayed size */
  background-image: url("sprite.png");  /* your copy of sprite_url, size=64 */
  background-size: 512px 256px;         /* width and height, halved */
  background-position: -32px 0;         /* x and y, halved and negated */
}
```

Halving matches a `size=64` sprite shown at 32 pixels. Shown at full size, use `width`, `height`, `x` and `y` as they are. Each request costs a credit like any other, so a public site should keep its own copy of the image rather than sending browsers to the API.
