# API support for get a file's metadata without content

**URL:** <https://forum.gitea.com/t/api-support-for-get-a-files-metadata-without-content/5853>\
**Category:** API/SDK/Tea/HelmChart/Terraform\
**Created:** [September 8, 2022, 12:53am UTC](https://forum.gitea.com/t/api-support-for-get-a-files-metadata-without-content/5853 "2022-09-08T00:53:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gzh](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@gzh](https://forum.gitea.com/u/gzh)\
**Post date:** [September 8, 2022, 12:53am UTC](https://forum.gitea.com/t/api-support-for-get-a-files-metadata-without-content/5853/1 "2022-09-08T00:53:18Z")

</div>

we are moving from gitlab to gitea, but gitee does’t support some api method which gitlab already supported. such as ‘get a file’s metadata without content’, is there any plan for the API improvement?

---

<div class="post-metadata">

**Author:** ![Mai-Lapyst](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mai-lapyst/32/5065_2.png) [@Mai-Lapyst](https://forum.gitea.com/u/Mai-Lapyst)\
**Post date:** [September 8, 2022, 1:54am UTC](https://forum.gitea.com/t/api-support-for-get-a-files-metadata-without-content/5853/2 "2022-09-08T01:54:27Z")

</div>

I dunno if there is any effort for it, but looking at the issue tracker it seems not; maybe you could open a detailed feature request there so it can be tracked better? The issue tracker is located here: [Issues · go-gitea/gitea · GitHub](https://github.com/go-gitea/gitea/issues)

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [June 18, 2025, 5:34pm UTC](https://forum.gitea.com/t/api-support-for-get-a-files-metadata-without-content/5853/3 "2025-06-18T17:34:02Z")

</div>

> <https://github.com/go-gitea/gitea/issues/34763>
>
> \### Feature Description
> 
> I found this: https://forum.gitea.com/t/api-support-for…-get-a-files-metadata-without-content/5853
> 
> Do we support this?
> 
> Why do we need this:
> For better performance.
> 
> \### Screenshots
> 
> \_No response\_
