add pages to api query