• AeroLemming@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Is it any different for an “API”? I don’t think there’s a very big difference between an HTTP endpoint that returns HTML and an HTTP endpoint that returns JSON.

    • krippix@feddit.de
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      In what way?

      HTML definitely provides more overhead than json if you only care about the data.

      • AeroLemming@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Legally. OC stated that NewPipe doesn’t worry about legal threats because they scrape instead of using an official API.

    • folkrav@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Parsing absolutely comes with a lot more overhead. Especially since many websites integrate a lot of JS interactivity nowadays, you oftentimes don’t get the full contents you’re looking for straight out of the HTML you’re getting out of your HTTP request, depending on the site.