You can use DocumentQuery API
// Retrieves smartphones that are in the 'Phablets' category
DocumentQuery smartphones = DocumentHelper.GetDocuments("CMS.Smartphone")
.OnSite("CorporateSite")
.Path("/Products/", PathTypeEnum.Children)
.InCategories("Phablets");