I'm doing a small task that requires the usage of GitHub's APIs.
Most of the data can be retrieved from the main API, but some specific information is an API itself.
Here's how the main API is read by R, using jsonlite
package:
The next task is to tell R to sum the number of labels that are 0 in each of those rows of that column "url". For that, R needs to read each API separately. I'm trying to do something like this:
library(jsonlite)
issues <- fromJSON("THE API LINK")
jsonapis <- issues$url
apis <- fromJSON(jsonapis)
That retrieves the following error message:
Error: Argument 'txt' must be a JSON string, URL or file.
To use with URL, I'd have to copy paste each one manually - I think - and all suggestions I found only in regard to 'file' do not fit.
I have another task similar that involves reading from many APIs simultaneously, but I presume I'll be able to do finish that if I can understand this one. Can someone help me?
I apologize if this is not very clear, but this is the best I can do. Unfortunately, I'm not too comfortable in these topics and APIs is really a pain to me. Thanks in advance!