When it comes to R to consume such APIS we focus majorly on the package below:
httrThis package takes it very seriously when we have to work with We data by exposing some very useful functions. It provides us with HTTP client to access APIS with GET/POST methods, passing query parameters, verifying fetched response wrt to data format and if error-free.
jsonliteIn order to convert received JSON response to readable R Object or a data frame, jsonlite helps to convert json to R object and vice versa.
rlistTo perform some additional manipulation on data structure of received JSON response
rlistexposes some important methods list.select and list.stack. This methods are useful to get parsed json data into a tibble.
Read on for an example extracting data from a web endpoint.