Unfortunately (in our case) the pageviews API does not record pageviews of the target article of a redirect, only the redirect itself. For some pages there may be popular redirects such as pseudonyms, common grammatical errors, etc. ([[ http://tools.wmflabs.org/redirectviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-20&sort=views&direction=1&view=list&page=Barack_Obama | example ]]), so we might want to account for those pageviews.
We could query the [[ https://www.mediawiki.org/wiki/API:Redirects | prop=redirects ]] API to get a list, and incorporate those pages as part of the data for a single page. The limit without authentication is 500 results, but I doubt there are many pages with more than 500 redirects.