from flask import request @app.route('/my-route') def my_route(): page = request.args.get('page', default = 1, type = int) filter = request.args.get('filter', default = '*', type = str)