結果 : how to make an api request in javascript