fetch
in JavaScript.axios
in JavaScript. You need to install axios
using npm install axios --save
in the terminal first.node <filename>.js
in the terminal. In this case, the return data looks as follows. Note that updated_at
indicates the GMT time when you query the data, which may vary accordingly.