Operate and Manage the Experience Service > Operating Your Experience Service > Get Experience Service Data > Get Public View Count
  
Get Public View Count
Use the following Experience Service endpoint to retrieve the number of public views consumed by non-registered users during a specified time period where <es-protocol>, <es-host>, and es-port> are replaced with values appropriate for your Experience Service deployment. Also, <start-date> and <end-date> must be ISO 8601 compliant date strings:
<es-protocol>://<es-host>:<es-port>/ExperienceService/compliance/views?startDate=<start-date>&endDate=<end-date>
For example, to retrieve the number of public views consumed by non-registered users between December 4, 2018 12:00 PM UTC and December 5, 2018 12:00 PM UTC, enter a URL like the following into a standard web browser:
http://es.example.com:8448/ExperienceService/compliance/views?startDate=2018-12-04T12:00:00Z&endDate=2018-12-05T12:00:00Z
The API returns a JSON object with a views and billables field.
views—gross number of public views consumed by non-registered users, this count has not been adjusted to eliminate invocations of the same view within 15 minutes.
billables—net number of public views consumed by non-registered users, this count has been adjusted to eliminate invocations of the same view within 15 minutes.
For example:
{

"views":211,
"billables":113
}
The startDate and endDate parameters are optional. Omitting startDate returns the number of public views consumed prior to the specified endDate. Omitting endDate returns the number of public views consumed since the specified startDate. Omitting both dates returns all public views consumed for all dates.