---
title: "Returns number of market segments."
method: GET
path: "/settings/v1/market-segments/$count"
tags: ["MarketSegment"]
---

# Returns number of market segments.

`GET /settings/v1/market-segments/$count`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/settings/v1/market-segments/$count`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `setup.read`, `setup.manage`, `admin`
- TypeScript: <https://skmtc.dev/apaleo/apis/apaleo-settings-api/docs/settings/v1/market-segments/$count/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns number of market segments.<br>You must have at least one of these scopes: 'setup.read, setup.manage'.

## Query parameters

- `propertyIds` string[]

## Response `200`

Success

- CountModel
  - `count` integer, required

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-settings-api.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-settings-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-settings-api/revisions/da1c3b71ee9a?raw)
