---
title: "Person Segment Preview"
method: GET
path: "/person/segment-preview"
tags: ["Audience Segments"]
---

# Person Segment Preview

`GET /person/segment-preview`

## Request

- Base URL: `https://api.mixrank.com/v2/json/YOUR_API_KEY`
- URL: `https://api.mixrank.com/v2/json/YOUR_API_KEY/person/segment-preview`
- Auth: none declared

Retrieve MixRank person IDs matching a combination of features, such as industry or country. Obtain filter IDs from <a href="#tag/audience-segments/GET/segment-features/{segment}">feature lookup</a>; feature IDs are filter values, not person IDs. Use comma for AND, | for OR, ~ for NOT and parentheses for grouping. ~(123,456)|789 matches records lacking at least one of 123 and 456, or possessing 789. Queries accept at most 530 features.

is_truncated indicates additional matches.

Required permissions for your API key's user: `persons.segment`.

## Query parameters

- `query` string, required
- `limit` integer

## Response `200`

Successful response.

- union
  - object
    - `total` integer: Number of returned IDs, not all matching IDs.
    - `is_truncated` boolean
    - `results` integer[]
  - object
    - `errors` object, required

## Other responses

- `400`: Missing or invalid required parameter.
- `403`: Invalid key or insufficient endpoint permissions.
- `404`: No matching IDs.
- `429`: Concurrent request limit exceeded.
- `500`: Internal API error.

---

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