How to get commits after and commit before in API v2?

rest-api

#1

when using API GET /repositories/{username}/{repo_slug}/commits, since & until parameters are not working. If the parameters are not available, are there any possible way to filter commits before or after, for a given commit ID or given time range?

Are there any way to get commits of a branch since given starting commit or “between” two commits in API v1? I can get only the last commit of a branch in api v1.