Hi,
By default GA only reports on the ga:pagePath dimension in the Top
Content report via the Analytics UI. So by default there shouldn't be
a www prepended anywhere in top content. To get the hostname in that
report one must add a profile level filter that combines hostname and
page path before GA processes the data.
So I suspect the profile level filter is merging the www and non-www
entries, something the API isn't doing for ga:hostname.
-Nick