How to get the number of page views for each page of the site


I am tracking my website using google analytics code. I want to display number of pageviews of each page where user visiting pages of my website. Does google api provides any code to display number of pageviews of each page in website? Can any one please help me in this?

I used following code

        DataQuery dataQuery = new DataQuery(dataFeedUrl);
        dataQuery.Ids = profileId;
        dataQuery.Metrics = "ga:pageviews";
        dataQuery.Dimensions = "ga:pagePath";
        dataQuery.Sort = "ga:browser,ga:pageviews";
        dataQuery.GAStartDate = DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd");
        dataQuery.GAEndDate = DateTime.Now.ToString("yyyy-MM-dd");

but it throws exception as follows Execution of request failed: dimensions=ga:pagePath&end-date=2012-07-27&ids=ga:46119231&metrics=ga:pageviews&sort=ga:browser,ga:pageviews&start-date=2012-06-27

can u please help me?

Please visit this for retrieving data in and for php you can have this