Need Gitlab API endpoint to get the diverging commits count as like web UI
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=562213)
</details>
<!--IssueSummary end-->
As like the web UI, which gets the diverging commit counts through endpoint,
https://gitlab.com/.../.../-/branches/diverging_commit_counts?format=json&names[]=main&names[]=test2&names[]=test3
I need the same response to get only the ahead and behind count through the Gitlab API v4.
issue