#How to add a pagination by google books api
1 messages · Page 1 of 1 (latest)
here is the url :
url: `https://www.googleapis.com/books/v1/volumes?q="${search}"&maxResults=20`,```
i know if i do this url:`https://www.googleapis.com/books/v1/volumes?q="${search}"&maxResults=2&startIndex=2`
it will gave me maximum 2 books starting from 2nd book in one page
but this is brute force
i want to change this url by clicking a button
basically how to change the maxResult and startIndex when i click for next page