Перейти к содержимому

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:

ParameterTypeNotes
apiKeystringYour API key, required for authentication. Required.
idintIdentifier of segment. Required.

Examples:

https://api.esv2.com/v2/Api/GetSegmentSize?apikey=YOUR_API_KEY_HERE&id=SEGMENT_ID

Response

Response Data element:

Element/attributeTypeNotes
SizeintSize of segment.
CountDatedatetimeDate 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>
On this page
To top