<p>I want to create dynamic content based on this. I know it's somewhere, as web analytics engines can get this data to determine how people got to your site (referrer, search terms used, etc.), but I don't know how to get at it myself.</p>

[{'answer_id': 57015, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 4, 'selected': True, 'text': '<p>You can use the "referer" part of the request that the user sent to figure out what he searched for. Example from Google:</p>\n\n<blockquote>\n  <p><a href="http://www.google.no/search?q=stack%20overflow" rel="nofollow noreferrer">http://www.google.no/search?q=stack%20overflow</a></p>\n</blockquote>\n\n<p>So you must search the string (in ASP(.NET) this can be found be looking in <code>Request.Referer</code>) for "q=" and then URLDecode the contents.</p>\n\n<p>Also, you should take a look at this article that talks more about referrers and also other methods to track your visitors:</p>\n\n<p><a href="http://www.15seconds.com/issue/021119.htm" rel="nofollow noreferrer">http://www.15seconds.com/issue/021119.htm</a></p>\n'}, {'answer_id': 57050, 'author': 'Jared', 'author_id': 3442, 'author_profile': 'https://Stackoverflow.com/users/3442', 'pm_score': 0, 'selected': False, 'text': '<p>This is some code to backup the idea of using a querystring method and if that\'s not available using the UrlReferrer property of the Request object. This can then be stashed in a session object (or somewhere else if that works better for you) so that you can track the source between pages. (Page_Load doesn\'t seem to be formatted correctly inside the code sample here)</p>\n\n<pre><code>public void Page_Load(Object Sender, EventArgs E) {\n            if (null == Session["source"] || Session["source"].ToString().Equals(string.Empty)) {\n                if (Request.QueryString["src"] != null) {\n                    Session["source"] = Server.UrlDecode(Request.QueryString["src"].ToString());\n                } else {\n                    if (Request.UrlReferrer != null) {\n                        Session["source"] = Request.UrlReferrer.ToString();\n                    } else {\n                        Session["source"] = string.Empty;\n                    }\n                }\n            }}\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/57004', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/572/']