programing

Google Suggest API에 대한 문서는 어디에 있습니까?

nasanasas 2020. 11. 21. 11:19
반응형

Google Suggest API에 대한 문서는 어디에 있습니까?


Google Suggest API에 대한 공식 문서가 있습니까?

Google 제안 API에 대한 모든 검색은 오래된 정보 또는 작동하지 않는 스크립트가있는 페이지를 표시합니다.

예를 들어 google.com에서 "app"을 입력하자마자 Google은 Apple, Applebees 등을 제안합니다.


상상할 수 있듯이 변경되었습니다.

최신 URL은 이제 http://clients1.google.com/complete/search?hl=ko&output=toolbar&q=YOURSEARCHTERM입니다.

또는 더 최근 : http://suggestqueries.google.com/complete/search?output=toolbar&hl=ko&q=YOURSEARCHTERM


작업 예 요약 :

에서 이 질문의 작업 예 :

http://suggestqueries.google.com/complete/search?output=toolbar&hl=ko&q=theory



에서 이 질문의 작업 예 :

http://suggestqueries.google.com/complete/search?output=firefox&q=theory




작업 예제 위의 mhawksey 주석 에서 :

http://google.com/complete/search?client=chrome&q=theory

여기 client=chrome에서 다른 브라우저 클라이언트로 변경할 수 있습니다. 예를 들어 Firefox의 경우 다음과 같습니다.

http://google.com/complete/search?client=firefox&q=theory




작업 예제 위의 mahoor13 주석 에서 :

google.com/complete/search?output=toolbar&q=theory




에서 dhiraj - 펜디 교수의 대답은 "당신이 국가 별에서 알 수 원하는 경우 URL에 & GL =를 추가해야합니다." 툴바 링크에서만 작동합니다!

예를 들어 인도의 근무 국가 별 예는 다음과 같습니다.

google.com/complete/search?output=toolbar&q=theory&gl=in




단어를 구분하려면 %20또는 그 +사이에 사용하십시오 . 예를 들면 :

http://suggestqueries.google.com/complete/search?output=toolbar&hl=ko&q=a%20mykeyword

또는

http://suggestqueries.google.com/complete/search?output=toolbar&hl=ko&q=a+mykeyword




또한 여기 에서 YQL (첫 번째 sugestion chuck norris, 두 번째 steven seagal) 에 대한 두 가지 제안을 얻을 수 있습니다 .

select * from xml where url in (
‘http://google.com/complete/search?output=toolbar&q=chuck+norris’,
‘http://google.com/complete/search?output=toolbar&q=steven+seagal’
)

위의 코드를 사용하면 다음이 제공됩니다.

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20xml%20where%20url%20in%20%28%27http%3A%2F%2Fgoogle.com%2Fcomplete%2Fsearch % 3Foutput % 3Dtoolbar % 26q % 3Dchuck % 2Bnorris % 27 % 2C % 27http % 3A % 2F % 2Fgoogle.com % 2Fcomplete % 2Fsearch % 3Foutput % 3Dtoolbar % 26q % 3Dsteven % 2Bseagal % 27 % 29 & format = xml & diagnostics = false




제안에 대한 Google의 몇 가지 정보 : http://www.google.com/support/enterprise/static/gsa/docs/admin/70/gsa_doc_set/xml_reference/query_suggestion.html


시도 http://google.com/complete/search?output=json&q=YOURSEARCHEDTERM또는 XML 출력http://google.com/complete/search?output=toolbar&q=YOURSEARCHEDTERM

http://answers.oreilly.com/topic/1526-how-to-use-the-google-suggest-api-to-come-up-with-topics-for-answers/

또한 Google 검색 API를 사용하는 매우 흥미로운 도구를 발견했으며 Python 및 Flask http://ubersuggest.org를 기반으로합니다.


@ Harvest316이 말했듯이 이러한 URL을 사용하여 제안을받을 수 있지만 국가 별 제안을 원하면 URL에 & gl =을 추가해야합니다. 예를 들어 인도를 검색하면

http://suggestqueries.google.com/complete/search?output=toolbar&hl=ko&q=YOURSEARCHTERM&gl=in


Hi I'm the author of Übersuggest the tool mentioned by JonnyPea. There is no official Google Suggest API: the URL I and other people use is just something we have found hacking around Google. Here's a couple of advice:

  • Have a look at my application source code on Bitbucket (beware: I'm an hobbyist programmer so my code cold be improved a lot)
  • Do not call the API thousands times from the same IP or you will be banned.

[UPDATE]

Sorry the source code is no more available


There is a working API that pulls data from Google Suggest (along with YouTube, Bing and App Store): http://keywordtool.io/api

Using this API you wouldn't need to worry about the number of requests from the same IP etc.

Google doesn't have an official API to share autocomplete data, moreover it often hides keywords that appear in Google suggest from Google Keyword Planner.

Note this API is by paid subscription and starts at $280 / month.

참고URL : https://stackoverflow.com/questions/5102878/where-is-the-documentation-for-the-google-suggest-api

반응형