GitHub doesn’t have any special API that directly gives you “your branches.”
The page you see on GitHub’s website is just a smart guess they show in the UI.
But you can copy the same logic with one simple trick.
Here’s how:
GET /repos/{owner}/{repo}/branches?per_page=100
You don’t need to make more API calls — the author info is already there.
That’s literally it.
No complicated steps, no heavy loops, no calling the API 50 times.
One request → filter → done.