# Branch owner using API

**URL:** <https://forum.gitea.com/t/branch-owner-using-api/9915>\
**Category:** Gitea Usages\
**Created:** [October 25, 2024, 10:09am UTC](https://forum.gitea.com/t/branch-owner-using-api/9915 "2024-10-25T10:09:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pioro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/pioro/32/6352_2.png) [@pioro](https://forum.gitea.com/u/pioro)\
**Post date:** [October 25, 2024, 10:09am UTC](https://forum.gitea.com/t/branch-owner-using-api/9915/1 "2024-10-25T10:09:27Z")

</div>

Hello,

If I am looking into an API to list all branches created by a particular person and I can’t find the “owner” field there.

In GUI my branch has an owner “marcin\_auto”

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/8/8f7f8fa9c442b8d66c5851ba2e7da35e4775c336.png)

but in API I can’t find it the owner of the branch, only the author of the parent commit is propagated.

```auto
 {
    "name": "test_me",
    "commit": {
      "id": "ac9112b9fedb026f980120718615b94306891245",
      "message": "new test 0910 (#90)\n\nReviewed-on: \n",
      "url": "http://172.25.118.178:4000/pioro/test/commit/ac9112b9fedb026f980120718615b94306891245",
      "author": {
        "name": "marcin",
        "email": "marcin1@foo.bar",
        "username": "marcin"
      },
      "committer": {
        "name": "marcin",
        "email": "marcin1@foo.bar",
        "username": "marcin"
      },
      "verification": {
        "verified": false,
        "reason": "gpg.error.not_signed_commit",
        "signature": "",
        "signer": null,
        "payload": ""
      },
      "timestamp": "2024-10-09T12:26:34+02:00",
      "added": null,
      "removed": null,
      "modified": null
    },
    "protected": false,
    "required_approvals": 0,
    "enable_status_check": false,
    "status_check_contexts": [],
    "user_can_push": true,
    "user_can_merge": true,
    "effective_branch_protection_name": ""
  }

```

Is there a way to display only branches created by someone ?  
I know in git doesn’t really have an owner but Gitea GUI is displaying it so it is saved somewhere

regards,  
Marcin
