Gitlab pattern finder

Hi ,

is there a GIT LAB API that I can use to search list of files that match a specific filter.

Example what is done by GitLab UI as here:

https://docs.gitlab.com/ee/workflow/file_finder.html

Thanks,
Shikha