getPageUrl where pageUrl IS LIKE "/foo-bar%"

Is there any way to ignore GET parameters when using the getPageUrl API?

My URLs look like this
www.example.com/foo-bar/
www.example.com/foo-bar?baz
www.example.com/foo-bar/?t=1&b=2

and I want to get the page views of all URLs which begins with “www.example.com/foo-bar”. Is there any way to do that, without

  • using getPageURLs, collect all different URLs with parameters and send an API request getPageUrl for each individual URL
  • ignoring the GET parameters in the GUI, because we still need them to get correct data

Thanks!

Found a solution: Query “idsubdatatable” for “foo-bar” and then use

			'method' => 'Actions.getPageUrls',
			'idSubtable' => $idsubdatatable