In order to return all of the results, you will need to utilize the “after” paramater for getting the next page of results and loop through the results there are no more pages of results.
If you would like to retrieve custom objects with specific criteria, you will need to utilize the CRM Search API