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?
Asked
Active
Viewed 572 times
0
-
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 Answers
0
There are some suggestions
- Find the last google search url in history
- Add a contentscript to google search page to record the search keyword.
- Use webRequest to listen the search request, then record the keyword.
- Visit https://history.google.com/history I don't know if there is an api for this.

greatghoul
- 1,448
- 1
- 17
- 19