GITHUB API V3 to list active branches only

I am interested to retrieve only active branches of a repository so wondering if there is any param availablein branches api to exclude stale branches


No, there isn’t a filter for “stale” branches via the list branches API. You’d have to list all branches and then do the filtering yourself.

Let us know if you have more questions.