• @[email protected]
    link
    fedilink
    English
    11 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.

    • @[email protected]
      link
      fedilink
      English
      11 year ago

      In what way?

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

      • @[email protected]
        link
        fedilink
        English
        11 year ago

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

    • folkrav
      link
      fedilink
      11 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.