0

I am trying to build a functionality based on the user's google search query. I am not interested in any particular link visited by the user after the search, but just the query used by the user. Is there a way I can retrieve it?

labyrinth
  • 1,104
  • 3
  • 11
  • 32
  • Maybe webRequest or webNavigation API with url filter for all google domains? – wOxxOm Aug 31 '15 at 06:21
  • May be, I can try that. But if there is a google API to explore the search queries, I was hoping it could give me queries done by the user through different devices too, not just where the extension is running. – labyrinth Aug 31 '15 at 06:43
  • @labyrinth No, [there isn't](http://stackoverflow.com/a/29932656/934239). – Xan Aug 31 '15 at 07:46

1 Answers1

0

There are some suggestions

  1. Find the last google search url in history
  2. Add a contentscript to google search page to record the search keyword.
  3. Use webRequest to listen the search request, then record the keyword.
  4. Visit https://history.google.com/history I don't know if there is an api for this.
greatghoul
  • 1,448
  • 1
  • 17
  • 19