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...

Комментарии • 24

  • @buffaloperformanceandanaly1431
    @buffaloperformanceandanaly1431 2 года назад +1

    Thank you for making this video so easy to understand!

  • @HarshaT
    @HarshaT 3 года назад +1

    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.

  • @jpescobarcl
    @jpescobarcl 3 года назад

    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

  • @goodyonsen77
    @goodyonsen77 3 года назад

    Mam you should do more of these... I searched for your RUclips channel but couldn't find it.

    • @IDGTECHtalk
      @IDGTECHtalk  3 года назад +1

      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

    • @goodyonsen77
      @goodyonsen77 3 года назад

      @@IDGTECHtalk thanks. I already added them all. I was just wondering if she had a separate channel.

    • @IDGTECHtalk
      @IDGTECHtalk  3 года назад +1

      @@goodyonsen77 Nope, all of her videos are exclusive to this channel. Glad you like them!

  • @CanDoSo_org
    @CanDoSo_org Год назад

    When I run "my_content

  • @dhairavchhatbar7343
    @dhairavchhatbar7343 5 лет назад +1

    Absolutely helpful. Thank you

  • @musicspinner
    @musicspinner 3 года назад

    Very to the point and helpful.

  • @i.g.8206
    @i.g.8206 3 года назад

    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.

    • @IDGTECHtalk
      @IDGTECHtalk  3 года назад

      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

    • @i.g.8206
      @i.g.8206 3 года назад

      @@IDGTECHtalk Ok, I will. Ty

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 10 месяцев назад

    Interesting but I run into a 401 error even after signing up and getting an api.

  • @gastondev4919
    @gastondev4919 4 года назад

    Great explanation, love it! but what if we need to authenticate? how do i do POST Requests?
    Thanks!

    • @IDGTECHtalk
      @IDGTECHtalk  4 года назад

      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

  • @anaclgarcia
    @anaclgarcia 4 года назад

    THANK YOU!!!!

    • @IDGTECHtalk
      @IDGTECHtalk  4 года назад

      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.

  • @josephmensah811
    @josephmensah811 4 года назад

    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 ?

    • @IDGTECHtalk
      @IDGTECHtalk  4 года назад

      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

  • @cesarcarvallo7746
    @cesarcarvallo7746 2 года назад

    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