Php 谷歌搜索api不返回结果

Php 谷歌搜索api不返回结果,php,google-search-api,Php,Google Search Api,但Google中的同一查询返回结果,甚至在浏览器的地址栏中键入生成的查询也会返回有效结果 SuccessHTTP/1.1 200 OK Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Date: Sat, 02 Apr 2011 09:23:27 GMT Cache-Control: max-age=0, must-revalidate Content-Type: text/javascript; charset=utf-8 X-E

但Google中的同一查询返回结果,甚至在浏览器的地址栏中键入生成的查询也会返回有效结果

SuccessHTTP/1.1 200 OK
Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT
Date: Sat, 02 Apr 2011 09:23:27 GMT
Cache-Control: max-age=0, must-revalidate
Content-Type: text/javascript; charset=utf-8
X-Embedded-Status: 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Server: GSE
Transfer-Encoding: chunked

{"responseData": {"results":[],"cursor":{"moreResultsUrl":"http://www.google.com/search?oe\u003dutf8\u0026ie\u003dutf8\u0026source\u003duds\u0026start\u003d0\u0026hl\u003den\u0026q\u003d%22What+is+the+best+tool+to+do+plagiarism+checking?%22"}}, "responseDetails": null, "responseStatus": 200}
Invalid http://ajax.googleapis.com/ajax/services/search/web 
但我无法得到任何结果。有人能帮我解释一下我做错了什么吗?

在文章中,谷歌说:

Google Web搜索API截至2010年11月1日。根据我们的数据,该公司的运营时间超过了其报废日期三年。其运营的最后一天是2014年9月29日。我们鼓励您调查,这可能会提供一个替代解决方案


请仅将代码缩进4个空格,以将其标记为代码。我修复了大部分,但你需要修复脚本中的新行。谢谢…抱歉,麻烦了…请记住
SuccessHTTP/1.1 200 OK
Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT
Date: Sat, 02 Apr 2011 09:23:27 GMT
Cache-Control: max-age=0, must-revalidate
Content-Type: text/javascript; charset=utf-8
X-Embedded-Status: 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Server: GSE
Transfer-Encoding: chunked

{"responseData": {"results":[],"cursor":{"moreResultsUrl":"http://www.google.com/search?oe\u003dutf8\u0026ie\u003dutf8\u0026source\u003duds\u0026start\u003d0\u0026hl\u003den\u0026q\u003d%22What+is+the+best+tool+to+do+plagiarism+checking?%22"}}, "responseDetails": null, "responseStatus": 200}
Invalid http://ajax.googleapis.com/ajax/services/search/web 
http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=small&q=%22What+is+the+best+tool+to+do+plagiarism+checking