Hi @Akash Sharma
If you are using the MS Graph API, this document should be helpful to you.
https://learn.microsoft.com/en-us/graph/paging?tabs=http.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.