adding ability to query different pages from the api.