Fetch Stale Branches via REST API

I’m trying to fetch stale branches of one of my projects that is hosted on GitLab.com.
All what I found in the documentation is this endpoint : “GET /projects/:id/repository/branches”
Unfortunately, it fetches all branches with no way to tell which ones are stale branches !
Does anyone has any idea how to accomplish this task ?