@app.route("/api/image-search") def api_image_search(): q = request.args.get("q", "") if not q: return jsonify(error="Missing query parameter 'q'"), 400
– the query string ( q ) is whatever you type ( "got amciq" ).