Get segment size
Using this method you can retrieve a size (number of subscribers) of a particular segment. The response contains also a date of last segment recalculation.
Request data format
Request URL parameters:
Parameter | Type | Notes |
---|---|---|
apiKey | string | Your API key, required for authentication. Required. |
id | int | Identifier of segment. Required. |
Examples:
https://api.esv2.com/v2/Api/GetSegmentSize?apikey=YOUR_API_KEY_HERE&id=SEGMENT_ID
Response
Response Data element:
Element/attribute | Type | Notes |
---|---|---|
Size | int | Size of segment. |
CountDate | datetime | Date of last segment size recalculation |
Examples
Request:
GET https://api.esv2.com/v2/Api/GetSegmentSize?apikey=YOUR_API_KEY_HERE&id=SEGMENT_ID HTTP/1.1
Response:
<ApiResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Data>
<Size>3384047</Size>
<CountDate>2016-12-08T12:37:23.0784944Z</CountDate>
</Data>
</ApiResponse>