Get All Subscribers

Retrieve paginated subscribers from a specific segment within a list. This endpoint is helpful for filtering contacts based on segment rules and viewing their status and metadata.

๐Ÿ‘ฅ Get All Subscribers (From List Segment)

Retrieve all subscribers belonging to a specific segment of a list. This helps you filter and access targeted contacts based on segment criteria.

๐Ÿ”น HTTP Request

GET API-URL/lists/LIST-UNIQUE-ID/segments/SEGMENT-UNIQUE-ID/subscribers

๐Ÿ”ธ URL Segments

Segment
Required
Description

LIST-UNIQUE-ID

Yes

Unique identifier of the list.

SEGMENT-UNIQUE-ID

Yes

Unique identifier of the segment in the list.

๐Ÿ”ธ Query Parameters

Parameter
Default
Description

page

1

Page number to retrieve.

per_page

10

Number of subscribers per page.

๐Ÿ” Authorization Header

X-API-KEY: your-api-key-here

๐Ÿ’ป PHP Example

// GET ALL SUBSCRIBERS OF A LIST SEGMENT
$response = $endpoint->getSubscribers('LIST-UNIQUE-ID', 'SEGMENT-UNIQUE-ID', $pageNumber = 1, $perPage = 10);

// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';

๐Ÿ“ฆ Sample JSON Response