title: How can I return API objects in application using flask
body: <pre><code>from flask import Flask, request, jsonify
  import requests
  
  app = Flask(__name__)
  
  
  @app.route('/address_search', methods=['GET'])
  def sample():
      zipcode = request.args.get('zipcode', None)
      url = f'https://zipcloud.ibsnet.co.jp/api/search?zipcode={zipcode}'
      response = requests.get(url)
      # results = response.json()
      # results = jsonify(response) ?????
      return response
  
  if __name__ == '__main__':
      app.run(debug=True)
  </code></pre>
  <p>I'm trying to create an Application which return the Address.
  I succeeded to return url but about response, I can't and <code>Internal Server Error</code> appears
  So I thought in flask, <code>requests.get(url)</code> cannot be used but I didn't came up an another way.
  I heard that <code>jsonify()</code> is used but I don't known how.
  I searched it in Google for two days but I still cannot find it's answer.
  Someone please give me advice.</p>