Query all pages in all sites
To get all published pages on all sites you first iterate all sites by using the MultiSiteContext.GetSites list. Then, for each site, you use the PageManager.GetNodes method and filter the pages in Published state.
Use the following code sample: