def newsapi(topic): """Return newsapi json data according to topic. """ fetcher = Fetch() data = fetcher.fetch_newsapi(topic) return jsonify(data)