Self host an instance of SearXNG[1] either locally or on a remote server with a simple docker container and use its JSON API [2]. You have to enable the JSON API in the config manually [3].
[1] https://docs.searxng.org/admin/installation-docker.html#inst...