How to get blogs with Pagination

Fetch the endpoint provided below to retrieve blogs with pagination,By default the limit of blog per page is 8 you can increase or decrease it and also test it here. Once you’ve fetched the endpoint, you can explore the array of blogs it returns. If you encounter any issues or have any questions, don't hesitate to reach out for assistance. Happy exploring!

Pagination

Copy code

fetch('https://dummyblogapi.vercel.app/api/blog?page=1')
.then(res => res.json())
.then(json => console.log(json))