added api for all pages and single page