結果 : how to call an api in python code