I use the Google Custom Search API to fetch the results that a user sees when Googling. While I can get the results (approximately), one behavior the API does not (and cannot) capture is the autocomplete behavior of a user. I want to know the autocomplete suggestions that are available to a user at various points (the last set, if only that's feasible) and the autocomplete result that a user clicks (if any).
I can't seem to find a quick JavaScript/jQuery solution for this, or a browser plugin that captures this autocomplete behavior. Is there a way to do this, short of keystroke logging and then deriving the behavior from the logs?