title: How do you access the query string in Flask routes?
body: <p>How do you access query parameters or the query string in Flask routes? It's not obvious from the Flask documentation.</p>
  <p>The example route <code>/data</code> below illustrates the context that I would like to access that data. If someone requests something like <code>example.com/data?abc=123</code>, I would like access to the string <code>?abc=123</code> or to be able to retrieve the value of parameters like <code>abc</code>.</p>
  <pre><code>@app.route(&quot;/data&quot;)
  def data():
      # query_string = ???
      return render_template(&quot;data.html&quot;)
  </code></pre>