# List categories

> The categories of a marketplace, with their units.


`GET https://dev.siteswap.pro/api/v1/catalog/categories`

The categories of a marketplace, with their units.

Needs the `listings:read` scope.

## Parameters

- `marketplace` (query, string): A marketplace key, as `GET /marketplaces` lists them, for example `materials`

## Responses

- 200: OK
- 400: bad_request, key_in_url or invalid_json: the request could not be read
- 401: missing_key or invalid_key: no key, or a key that is not valid or was revoked
- 403: key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
- 404: not_found: nothing here that you may see
- 413: too_large: the body is over 256 KB
- 429: rate_limited or daily_quota: wait for Retry-After seconds

## Response fields

- `id` (string)
- `slug` (string)
- `name` (string)
- `units` (string[]): The units a listing may use
- `soil_statement` (boolean): Offered soil or fill needs the soil statement
- `live_listings` (integer)

```json
{
  "data": [
    {
      "id": "string",
      "slug": "string",
      "name": "string",
      "units": [
        "string"
      ],
      "soil_statement": false,
      "live_listings": 0
    }
  ],
  "meta": {
    "request_id": "3f9a1c0b7d2e",
    "api_version": "v1"
  }
}
```

## Example

```bash
curl "https://dev.siteswap.pro/api/v1/catalog/categories" \
  -H "Authorization: Bearer ssk_YOUR_KEY"
```