$request->query()

Returns the query from the current URL as object

// http://example.com/some/path/?foo=bar&page=2
echo kirby()->request()->query()->foo();
echo kirby()->request()->query()->page();