to implement Google Analytics by default, ga: pagePath does not include the schema or host name, so in your case you really want to filter using ga: hostname and ga: pagePath together.
I suggest you use the query explorer to create your queries and familiarize yourself with what will work. You can also use this tool to at least somehow understand what type of data the ga: pagePath and ga: hostname parameters are returned before trying to filter them. Finally, once you have the request you want, you can easily get the exact Core Reporting API request by clicking the URI request button.
Also see the section Combining Filters in GA GA Docs.
So, if you want the ga: pagepath filter for domain.com and s.domain.com separately, you could do something like
Filters = ha: pagePath == / user / profile / ID / 1; ha: hostname == domain.com Filters = ha: pagePath == / user / profile / ID / 1; ha: hostname == s.domain.com
source share