# Gitea API Get commit information for a single file

**URL:** <https://forum.gitea.com/t/gitea-api-get-commit-information-for-a-single-file/3095>\
**Category:** Uncategorized\
**Created:** [March 22, 2021, 1:01pm UTC](https://forum.gitea.com/t/gitea-api-get-commit-information-for-a-single-file/3095 "2021-03-22T13:01:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rm1234](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/rm1234/32/1216_2.png) [@rm1234](https://forum.gitea.com/u/rm1234)\
**Post date:** [March 22, 2021, 1:01pm UTC](https://forum.gitea.com/t/gitea-api-get-commit-information-for-a-single-file/3095/1 "2021-03-22T13:01:58Z")

</div>

Is it possible to retrieve the commit information, e.g. last modified, date and time, from a single file?

I found this to get the information for the whole repository but I can’t find the possibility to specify a path to a specific file?

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/0/0e52076e43bf7348ba5f688a81995c595133ab6b.png)

Thanks
