Check if URL is indexed by Google using PHP

前端 未结 4 1911
太阳男子
太阳男子 2021-01-18 18:24

I would like to know if it\'s possible to check if URL is indexed by Google using PHP.

Is this against their ToS?

4条回答
  •  佛祖请我去吃肉
    2021-01-18 18:53

    You can read here (relevant citation below) for an answer to the ToS part of this. Basically, without an API key and their permission, it probably is not a good idea. However, due to the volume they handle, you might be able to get away with it if you're not making TONS of requests.

    PageRank checking is something else that people often try to do, but they don't place as much weight on this merit (rumor has it), and the older style API keys are really hard to find.

    Don't use unauthorized computer programs to submit pages, check rankings, etc. Such programs consume computing resources and violate our Terms of Service. Google does not recommend the use of products such as WebPosition Gold™ that send automatic or programmatic queries to Google.

提交回复
热议问题