Navigating tags pagination through tag names

Hi, Can we navigate through the tags using the tag name? I have a use case where I need to fetch the previous and next tags of a particular tag. e.g. For React releases if the tag is v16.8.5. I want to fetch the next tags,  v16.8.6 and previous tags v16.8.4. Is it possible using the GitHub API without fetching all the tags? 

Not really, no. That’s not the way the API is designed. However, if you use a page size of 1 and you know that the tag you want is the nth tag, then you can request page n+1 and n-1. Of course, there’s not really a way to know that a tag with name X is the nth tag without going through the list of tags until you find the one you want.

I hope that helps!