Skip to navigation

Get segment info

Get information about a specific segment.

Authentication

AuthorizationBearer

Authorization using a Mailchimp API key (a.k.a. Bearer token)

OR
AuthorizationBearer
Authorization using OAuth

Path parameters

list_idstringRequired
The unique ID for the list.
segment_idstringRequired
The unique id for the segment.

Query parameters

fieldslist of stringsOptional

A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.

exclude_fieldslist of stringsOptional

A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.

include_cleanedbooleanOptional
Include cleaned members in response
include_transactionalbooleanOptional
Include transactional members in response
include_unsubscribedbooleanOptional
Include unsubscribed members in response

Response

This endpoint returns an object.
created_atdatetimeOptionalRead-only
The date and time the segment was created in ISO 8601 format.
idintegerOptionalRead-only
The unique id for the segment.
list_idstringOptionalRead-only
The list id.
member_countintegerOptionalRead-only
The number of active subscribers currently included in the segment.
namestringOptional
The name of the segment.
optionsobjectOptional

The conditions of the segment. Static segments (tags) and fuzzy segments don't have conditions.

typeenumOptionalRead-only

The type of segment. Static segments are now known as tags. Learn more about tags.

Allowed values:
updated_atdatetimeOptionalRead-only
The date and time the segment was last updated in ISO 8601 format.