ViewTracker Plugin:
By default, no pageviews or page counts are recorded in Confluence due to performance reasons; however, after installing and configuring the Confluence ViewTracker Plugin you will start recording this data.
However, there is no mention anywhere on whether or not this information is available through the API. The plugin doesn't have an API, and it's not clear whether or not the additional information is available via an API. The ViewTracker Documentation does define a macro that returns the count, so the information is clearly stored in the database.
view count - The number of times the content has been viewed since the firstViewed date.
If this information is not returned by an API, then you may need to put in a feature request with the maintainer of the plugin.
Confluence Google Analytics Plugin:
If the ViewTracker plugin does not meet your needs, doesn't have an API, and the developers don't intend to expose one, then your other option is to install the Confluence Google Analytics Plugin.
Unlike ViewTracker, it's not free. However, you do gain programmatic access to this data through Google Analytics. Google exposes a Core Reporting API that would allow you programmatic access to the number of pageviews, visits, and other metrics reported by the analytics code.
Google supplies examples and documentation on how to get the data using Java, PHP, Python, and JavaScript.