php - How to fetch the amount of results Google returns when you query "site: example.com"?
I know this question is asked a lot, but all the answers are outdated because the Search API is disabled by Google.
Google used to have a Search API and with that API it was possible to search in Google using an API. Most answers on StackOverflow link to the deprecated documentation of that API, but because Google turned off that API, I can't solve the issue using the API.
I tried to fix the issue by crawling the google result page and fetching the count from the "about x results found in y seconds" text. But as far as I know, this is restricted because of Google Policy. https://support.google.com/webmasters/answer/66357?hl=en