I can use these 3 api to get those result.
repo info api: GET /repos/{owner}/{repo}/ branch api: GET /repos/{owner}/{repo}/branches tree api: GET /repos/{owner}