from flask import request
@app.route('/data')
def data():
# here we want to get the value of user (i.e. ?user=some-value)
user = request.args.get('user')
from flask import Flask, request
# ...
@app.route('/search', methods=['GET'])
def search():
args = request.args
return args