Using the rest API to grab 10 records at a time