How to get API data with R
HTML-код
- Опубликовано: 29 окт 2024
- No R package for an API you’d like to use? No problem! See how to write your own R code to pull data from an API using API key authentication.
Check out Sharon's accompanying article here: www.infoworld....
Follow Sharon on Twitter: / sharon000
Follow TECH(talk) for the latest tech news and discussion!
--------------------------------
SUBSCRIBE: www.youtube.com...
FACEBOOK: / idgtechtalk
TWITTER: / idgtechtalk
IDG ENTERPRISE WEBSITES
Computerworld: www.computerwo...
CIO: www.cio.com/vi...
CSO: www.csoonline....
InfoWorld: www.infoworld....
Network World: www.networkwor...
Thank you for making this video so easy to understand!
Thanks for posting this tutorial. Could you please share video or link for learning httr POST method, with different payout options and processing the same.
Need help exporting the final data frame to cv, but I’m having problems given it is a nested data frame. Please some advise on how to do it. Thanks
Mam you should do more of these... I searched for your RUclips channel but couldn't find it.
Hi there! All of Sharon's R tips are hosted right here on this channel. You can check out the full playlist here: ruclips.net/p/PL7D2RMSmRO9JOvPC1gbA8Mc3azvSfm8Vv
@@IDGTECHtalk thanks. I already added them all. I was just wondering if she had a separate channel.
@@goodyonsen77 Nope, all of her videos are exclusive to this channel. Glad you like them!
When I run "my_content
Absolutely helpful. Thank you
Very to the point and helpful.
Hi there, ty very much for that video. I have a follow-up question: Can I code an API package to import register data from a content management software? I have a lot of data that is structured in like index cards logic but not table logic. It is so much, that I just cannot transfer all cases by hand. How can I import such data into R (or if it is possible in SPSS or STATA, dont care at that point). Or are there other possibilities? Ty in advance.
Sorry, we’re not able give specific advice on something like that, it would require knowing details about the data structure and honestly this isn’t the place for it. I’d suggest asking that question someplace like Stack Overflow or the RStudio Community, including a reproducible example with sample data in the specific structure you’re working with. Good luck! --Sharon
@@IDGTECHtalk Ok, I will. Ty
Interesting but I run into a 401 error even after signing up and getting an api.
Great explanation, love it! but what if we need to authenticate? how do i do POST Requests?
Thanks!
Hi. POST was beyond the scope of the video, but you can find more information about using the POST() function here httr.r-lib.org/reference/POST.html
THANK YOU!!!!
Glad we could help, Ana. Let us know if you have any requests for future R videos, and check out the whole playlist of videos here: ruclips.net/p/PL7D2RMSmRO9JOvPC1gbA8Mc3azvSfm8Vv.
This video is super helpful!! Thank you so much. I am having an error anytime I run str(my_content)
I get this error :
chr "
Access Denied
Access Denied
You don't have permission"| __truncated__
How do i get around this ?
Hi, Joseph. That’s usually a sign there is an API authentication issue. Did you sign up for an API key, save it as described, and try restarting RStudio? --Sharon
I am getting these when I run the htrr::content {\"fault\":{\"faultstring\":\"Failed to resolve API Key variable request.queryparam.apikey\",\"detail\":{\"errorcode\":\"steps.oauth.v2.FailedToResolveAPIKey\"}}}. Could you please help me to solve this problem? Thanks