It is necessary to implement a prompt for the input field, accuracy, as in Google. For example. I enter "type" in the input field, and I get the most popular list of words and phrases ("typography", "typography moscow", ...).

Is there somewhere a base of popular words and phrases Google, which is constantly updated, in the public domain? Maybe there is already such a function that will give us the desired result? Or just have to dynamically parse the Google site and pull up a list of phrases?

Closed due to the fact that the essence of the question is not clear to the participants aleksandr barakin , HamSter , Suvitruf ♦ , pavel , iluxa1810 6 Nov '16 at 19:01 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • what kind of precision clue? If this is already done in Google, then it can be done - Grundy
  • > 'as in Google without its database of words and phrases' no, otherwise where will you get words and phrases from? - ThisMan
  • Is it possible to dynamically pull up a list of words and phrases from Google, to your website - Anastasiya
  • Is it possible to dynamically pull this list to your site. - pull up from where? - Grundy
  • If you can dynamically parse Google and it does not ban you - get rich - tutankhamun

1 answer 1

It’s best to take this list from Google itself. cURL pull data from http://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl=en-US&q=KEYWORD (where KEYWORD is your part of the string) and get what you need in json format

  • I did not quite understand what this line of code is? What language is it written in? How can I use it. Can I still read something? - Anastasiya
  • From this link you can get Google hints in json format on any line (you change the word KEYWORD to any of your own lines). The result can be converted to an array using json_decode () and output it anywhere and as you like. - Andrey Pilyugin
  • Thank you very much)) But it doesn’t quite output what google.com.ua or google.ru displays (Can you know something that can be fixed? - Anastasiya
  • Try setting ru-RU instead of en-US in parameters - Andrey Pilyugin
  • Yes, I put and ua - set, and chrome put, all the same, something does not work exactly the same conclusion as in Google. - Anastasiya