get https://api.mailerlite.com/api/v2/segments
Returns all stored segments in your account.
Response Body Parameters
Parameter | Type | Description |
---|---|---|
id | Integer | ID of the segment |
title | String | Title of the segment |
filter | Object | Array of segment rules |
total | Integer | Number of subscribers in the filter |
sent | Integer | Total number of sent emails to the segment subscribers |
opened | Integer | Total number of opened emails by segment subscribers |
clicked | Integer | Total number or clicked links by segment subscribers |
/segments/count
You can retrieve only the number of segments.
Response example
{
"count": 3
}