Now in your main flutter file, where you want to access, add this code in the function you want to get your output by python script . var data = await getData(‘http://10.0.2.2:5000/); var decodedData = jsonDecode(data); print(decodedData[‘query’]); That’s it.