Any function or hook equivalent to the REST API search entries?

I need to search for an entry that contains specific values in two fields. I could do it with this → https://localhost/wp-json/gf/v2/entries?search={"field_filters": [{"key":2,"value":"squiffy","operator":"contains"},{"key":1.3,"value":"squiffy","operator":"contains"}]}

But I wonder if there’s a similar function or hook that could do the same?

If you need to perform the search on the same site where the plugin is installed you can use the PHP based GFAPI::get_entries method instead of that REST API endpoint. See the following page of the documentation: