Getting data from REST APIs with httr::GET() in R: IYS

Описание к видео Getting data from REST APIs with httr::GET() in R: IYS

Another "APIs in the wild" demo. Here I get some data from the International Year of Salmon API. This is a database of metadata of public datasets from the International Year of Salmon expeditions. The point of these short videos is to demystify getting data from APIs in R and to show the variety of API documentation you might come across. This short video illustrates the httr::GET() function. See my video on creating an R client for an example of the crul R package instead.

In this case, I was unable to really figure out how to search and filter. I didn't show it but I spent an hour or so diving into the documentation without much luck at being about how to search in the dat$result$resources element. "resources" is an array with an element called "format". That is what I was trying to filter on (format=OBIS), but I couldn't figure out how to search within arrays. I'll post another video if I figure that out.

Комментарии

Информация по комментариям в разработке