Search engines scrape and profit from it. Scraping is legal (and that is trivially easy to find out with a quick Google search). What you do with the scraped information may violate copyright, terms of service, or personal privacy laws.
https://techcrunch.com/2022/04/18/web-scraping-legal-court/
You can get sued for pretty much anything in the United States.