title: Google Analytics API - Get page view information for specific URLs
body: <p>I am looking to implement a page view tracking system on one of my websites.</p>
  
  <p>The website is a directory where suppliers can advertise their services. Suppliers have a unique profile page on the site, e.g mysite.com/directory/abc-profile.html</p>
  
  <p>The idea is that suppliers can log in to their account area on the site and view stats on how many people are visiting their profile. Ideally I want to display this as :</p>
  
  <p><code>Total views | Total today | This week | This month | This year</code></p>
  
  <p>It does not matter if the data is not completely up to date.</p>
  
  <p>I already have Google Analytics tracking code installed on the site. Is it possible to use the Google Analytics API to retrieve this data? If so, what kind of query do I need to make? I had a look on the documentation but could not figure whether the functions allow this or not.</p>
  
  <p>I am using PHP and MySQL on the server.</p>