Python Api Response Json Example Code Switching