Get Marketing Cloud Next Segment Members
Retrieve a list of members in a segment by using the Data 360 Segment Members endpoint in Connect API.
Prerequisite
Before you send a request to Connect API, obtain a bearer token. For more information, see Connect to REST-based APIs.
Send the Request
To retrieve a list of segment members, send a GET request to the /services/data/{apiVersion}/ssot/segments/SEGMENT_API_NAME/members endpoint. Replace SEGMENT_API_NAME with the API of the segment that you want to retrieve a list of members for.
1GET /services/data/{apiVersion}/ssot/segments/SEGMENT_API_NAME/members HTTP/1.1
2Host: YOUR_SUBDOMAIN.my.salesforce.com
3Content-Type: application/json
4Authorization: Bearer YOUR_BEARER_TOKENIf the request is successful, the response body contains a list of segment members.
1{
2 "data": [
3 {
4 "deltaType": "new",
5 "id": "1175a1b5c71d8cc748449c309bd57965",
6 "snapshotType": "F",
7 "timestamp": "2024-01-23T18:25:02.924Z",
8 "versionStamp": "2024-01-22T18:29:11.841Z"
9 },
10 ...
11 ],
12 "endTime": "2024-01-24T19:57:24.000Z",
13 "filter": "Delta_Type__c in ( new , existing )",
14 "limit": 100,
15 "offSet": 0,
16 "orderBy": "Id__c asc",
17 "rowCount": 15,
18 "startTime": "2024-01-24T19:57:23.000Z",
19 "totalCount": 15
20}You can filter, sort, and limit the results by adding query parameters. For information and code examples, see getSegmentMembers.