How can I get specific branch detail with api

I want to get the detail of my branch on circle-ci over the api.
I found this, but not the one what I want.
How can I set specific branch name.


You can use our new v2 Insights API to gather more information about your pipelines for a specific branch. This section of the docs has more info:

Can you check that out and see if it includes the information you’re looking for?