How to get a range of commits through REST API

Hi, we’re building a application that needs to collect some metadata about commits, but getting the full list of commits on each request is not practical.

Is there a possibility to get commits by range, as git can do? example commitId1..commitId2?
(as shown in