request.args.get default for type=string code example
Example: request.args.get check if defined
opt_param = request.args.get("something")
if opt_param is None:
print "Argument not provided"
opt_param = request.args.get("something")
if opt_param is None:
print "Argument not provided"