---
updatedAt: 2026-08-14T00:04:41.000Z
---

# Navigate third-party segment tree

Returns the hierarchical third-party segment tree including categories and segments shared with the active account.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Reference Resources",
    "version": "2.0.0",
    "description": "Buzz API v2"
  },
  "paths": {
    "/third-party/segment-tree": {
      "get": {
        "operationId": "third_party_segment_tree_list",
        "description": "Returns the hierarchical third-party segment tree including categories and segments shared with the active account.",
        "summary": "Navigate third-party segment tree",
        "parameters": [
          {
            "in": "query",
            "name": "data_provider_id",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "data_provider_id__gt",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "data_provider_id__gte",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "data_provider_id__in",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Multiple values may be separated by commas.",
            "explode": false,
            "style": "form"
          },
          {
            "in": "query",
            "name": "data_provider_id__isempty",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "data_provider_id__lt",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "data_provider_id__lte",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "data_provider_id__not",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "data_provider_id__not_in",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Multiple values may be separated by commas.",
            "explode": false,
            "style": "form"
          },
          {
            "in": "query",
            "name": "key",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "key__in",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Multiple values may be separated by commas.",
            "explode": false,
            "style": "form"
          },
          {
            "in": "query",
            "name": "key__isempty",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "key__not",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "key__not_in",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Multiple values may be separated by commas.",
            "explode": false,
            "style": "form"
          },
          {
            "name": "order",
            "required": false,
            "in": "query",
            "description": "Which field to use when ordering the results.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "parent_key",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "parent_key__in",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Multiple values may be separated by commas.",
            "explode": false,
            "style": "form"
          },
          {
            "in": "query",
            "name": "parent_key__isempty",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "parent_key__not",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "parent_key__not_in",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Multiple values may be separated by commas.",
            "explode": false,
            "style": "form"
          },
          {
            "in": "query",
            "name": "type",
            "schema": {
              "type": "string",
              "enum": [
                "category",
                "segment"
              ]
            },
            "description": "Either segment or category\n\n* `category` - Category\n* `segment` - Segment"
          },
          {
            "in": "query",
            "name": "type__in",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Multiple values may be separated by commas.",
            "explode": false,
            "style": "form"
          },
          {
            "in": "query",
            "name": "type__isempty",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "type__not",
            "schema": {
              "type": "string",
              "enum": [
                "category",
                "segment"
              ]
            },
            "description": "Either segment or category\n\n* `category` - Category\n* `segment` - Segment"
          },
          {
            "in": "query",
            "name": "type__not_in",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Multiple values may be separated by commas.",
            "explode": false,
            "style": "form"
          }
        ],
        "tags": [
          "Targeting"
        ],
        "security": [
          {
            "nestSessionAuth": []
          },
          {
            "nestBasicAuth": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedThirdPartySegmentTreeNodeList"
                }
              }
            },
            "description": "Third-party segment tree retrieved successfully."
          },
          "400": {
            "description": "Invalid filter or query parameters."
          },
          "401": {
            "description": "Authentication credentials were not provided."
          },
          "403": {
            "description": "Permission denied."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "NullEnum": {
        "enum": [
          null
        ]
      },
      "PaginatedThirdPartySegmentTreeNodeList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "example": 123
          },
          "next": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "example": "http://api.example.org/accounts/?page=4"
          },
          "previous": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "example": "http://api.example.org/accounts/?page=2"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThirdPartySegmentTreeNode"
            }
          }
        }
      },
      "ThirdPartySegmentTreeNode": {
        "type": "object",
        "properties": {
          "cpm": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$",
            "description": "The CPM price to target this segment."
          },
          "children_count": {
            "type": "integer",
            "readOnly": true,
            "description": "The number of direct child segments and categories. This will always be null for segments."
          },
          "children_url": {
            "type": "string",
            "readOnly": true,
            "description": "The URI to fetch a list of child segments and categories. This will always be null for segments."
          },
          "user_count_by_region": {
            "type": "object",
            "additionalProperties": {},
            "readOnly": true,
            "description": "Object of number of users contained in the segment keyed by global region (e.g. APAC, NAM, EMEA). This will always be null for categories."
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TypeEnum"
              }
            ],
            "description": "Either segment or category\n\n* `category` - Category\n* `segment` - Segment"
          },
          "key": {
            "type": "string",
            "description": "Alphanumeric key for the segment or category, in the format {Data Provider}-{Segment / Category ID}.",
            "maxLength": 30
          },
          "name": {
            "type": "string",
            "description": "Name of the segment or category",
            "maxLength": 255
          },
          "data_provider_id": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": -2147483648,
            "description": "Unique ID of the data provider. This value will always be null for custom segments."
          },
          "parent_key": {
            "type": "string",
            "nullable": true,
            "description": "Alphanumeric key for the parent node in the tree.",
            "maxLength": 30
          },
          "alternative_id": {
            "type": "string",
            "nullable": true,
            "description": "An ID that may be used for any reporting or administrative purpose. Limited to 191 characters.",
            "maxLength": 200
          },
          "verb_usage": {
            "nullable": true,
            "description": "Restricted way segment can be applied to a targeting expression.\n\n* `ALL` - All\n* `INCLUDE` - Include\n* `EXCLUDE` - Exclude\n* `REQUIRE` - Require",
            "oneOf": [
              {
                "$ref": "#/components/schemas/VerbUsageEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "conditional_overrides": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            },
            "description": "A list of segment pricing overrides.",
            "readOnly": true
          }
        },
        "required": [
          "children_count",
          "children_url",
          "conditional_overrides",
          "cpm",
          "data_provider_id",
          "key",
          "name",
          "type",
          "user_count_by_region"
        ]
      },
      "TypeEnum": {
        "enum": [
          "category",
          "segment"
        ],
        "type": "string",
        "description": "* `category` - Category\n* `segment` - Segment"
      },
      "VerbUsageEnum": {
        "enum": [
          "ALL",
          "INCLUDE",
          "EXCLUDE",
          "REQUIRE"
        ],
        "type": "string",
        "description": "* `ALL` - All\n* `INCLUDE` - Include\n* `EXCLUDE` - Exclude\n* `REQUIRE` - Require"
      }
    },
    "securitySchemes": {
      "nestBasicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Form-based Basic Authentication"
      },
      "nestSessionAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Form-based Basic Authentication"
      }
    }
  },
  "x-explorer-enabled": false,
  "x-samples-languages": [
    "curl",
    "node",
    "ruby",
    "javascript",
    "python",
    "php",
    "java"
  ],
  "servers": [
    {
      "url": "https://{buzz_key}.api.beeswax.com/rest/v2",
      "variables": {
        "buzz_key": {
          "default": "stingersbx",
          "description": "Unique customer ID assigned by the Beeswax"
        }
      }
    }
  ],
  "x-readme": {
    "apply-endpoint-order": true,
    "apply-tag-changes": true
  }
}
```