How to search by code content using the API?

Hi all,

Is there any endpoint where I can search by code content?

Github has something like that: https://api.github.com/search/code

Thanks,
Marcelo

I’m also looking for something to search inside a project or a repos
in the content of the files similar to the gitlab search bar
projects/901/search/somethingImLookingfor
I’m looking for it since 2days , and it’s not so obvious to find ? does it exist ?