File sha (not commit sha) via API

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!