---
title: "Get a Segment Group"
method: GET
path: "/segment_groups/{segment_group_id}"
tags: ["Segment Groups"]
---

# Get a Segment Group

`GET /segment_groups/{segment_group_id}`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/segment_groups/{segment_group_id}`
- Auth: OAuth 2
  - Authorization code: `https://auth.mediamath.com/authorize`
  - Token URL: `https://auth.mediamath.com/oauth/token` scopes: `offline_access`, `manage:services`
- TypeScript: <https://skmtc.dev/mediamath/apis/campaigns-api/docs/segment_groups/:segment_group_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Get a segment group by ID

## Path parameters

- `segment_group_id` integer, required

## Query parameters

- `extended` boolean
- `currency_code` string

## Response `200`

Audience group response

- object
  - `data` object
    - `name` string
    - `type` string
    - `organization_id` integer
    - `status` boolean
    - `segment_subgroup` object[]
      - `segment_operator` string
      - `segment_members` object[]
        - `name` string
        - `segment_id` integer
        - `segment_type` string
        - `full_path` string
        - `objective` string
        - `cpm` number
        - `code` string
        - `uniques` integer
  - `meta` SingleMetadata
    - `status` string, required

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response
- `404`: Error response

---

[API](https://skmtc.dev/mediamath/apis/campaigns-api.md) - [All operations](https://skmtc.dev/mediamath/apis/campaigns-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mediamath/apis/campaigns-api/revisions/408743891def?raw)
