CircleCI API: get product builds filtered by build attributes

Is there a way to do a more detailed search of product builds than what this endpoint offers: https://circleci.com/docs/api/#recent-builds-for-a-single-project ?

In particular, I would like to be able to retrieve builds only for a specific branch and, ideally, further filtered by the commit that triggered it.

Yep, you can narrow the builds to a single branch by appending /tree/:branch to the url. Note that the branch name should be url-encoded.

-Gordon

Right, missed the note in the documentation completely as I was focusing on the argument list…

I’m guessing that’s as far as narrowing the search down goes, right? No other build parameters can be used for filtering?

Yes, that’s as much as that API provides

-Gordon