Branch specific commits, branch creation, merge

From the API we can pull list of all commits in specific branch, but we can’t pull list of commits which was made in this branch.
Is there a way to pull everything that touch only that branch without commits from base of other branch, pull requests and other things.