# File sha (not commit sha) via API

**URL:** <https://forum.gitea.com/t/file-sha-not-commit-sha-via-api/8016>\
**Category:** General\
**Created:** [October 29, 2023, 2:01am UTC](https://forum.gitea.com/t/file-sha-not-commit-sha-via-api/8016 "2023-10-29T02:01:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcobol](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jcobol](https://forum.gitea.com/u/jcobol)\
**Post date:** [October 29, 2023, 2:01am UTC](https://forum.gitea.com/t/file-sha-not-commit-sha-via-api/8016/1 "2023-10-29T02:01:56Z")

</div>

Using the API, I would like to be able to search all my Gitea repos for a file by the sha of the file itself, not the sha of the commit. Only the latter is exposed.  
I’m considering writing a custom service that runs on the host to search Gitea’s repos locally, but I wanted to ask here in case there are better ways. Thanks in advance!
