A while ago, i needed to search something from the cli with w3m, ddg wouldn't work without JS so I had to use google.
That commentary aside, search engines make a big chunk of their revenue on prioritizing results and making sure the search term is relevant. Why can't the index be exposed as an api to allow arbitrary front ends?