• AbelianGrape@beehaw.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 year ago

    I’ll admit I hadn’t seen that, and it sure does look like official API access. They also seem to make calls through that wrapper to access comments and plenty of other things, so it’s not just sitting there unused.

    Thankfully, TheFrenchGhosty is on the Fediverse, so let’s ask them: @[email protected] @[email protected] (not sure which one of these to use) How is this not using an official YouTube API?

    The README and the refute of YouTube’s C&D letter both claim that Invidious doesn’t use YouTube’s APIs at all - not merely that the response creation/interpretation was reverse-engineered. Obviously, the TOS applies to the fact that you interact with the API, not whether you access it manually or with the help of some code pre-prepared by Google. Yet it seems that other people have vetted you and not raised this issue. So I’m assuming we’re simply misunderstanding here, and hoping you can clear it up.

    • TheFrenchGhosty@lemmy.pussthecat.org
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      1 year ago

      Hello,

      The thing is that the agreement they linked apply to the official YouTube API (the one that you have to register for).

      Invidious uses the InnerTube (a completely different “API” used by all official YouTube clients). Invidious basically acts like a web browser that access the YouTube website. It is therefore not required to agree to any TOS/policies.

      All those findings where done via clean room reverse engineering (which is legal in the EU).

      • AbelianGrape@beehaw.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        That makes Invidious’ readme (which claims no YouTube APIs at all) disingenuous at the very least.

        More likely, you need a lawyer. I read that TOS, and I think it applies to any YouTube API endpoint, internal or otherwise. Best of luck, because I agree with Invidious’ goals…

        Side note: a browser communicating with YouTube would be communicating… with youtube. Not with com.google.android.youtube.api or whatever. What I’m seeing is that Invidious tries to act like the youtube service itself, which is very different from acting like a browser.

        • TheFrenchGhosty@lemmy.pussthecat.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          That makes Invidious’ readme (which claims no YouTube APIs at all) disingenuous at the very least.

          The InnerTube isn’t the YouTube API, far from it. So it’s still valid.

          • AbelianGrape@beehaw.org
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            1 year ago

            “Valid” and “disingenuous” mean very different things. How would you feel about editing that README point to be explicit that you use an unofficial undocumented YouTube API?

            For the record, I don’t think “InnerTube” would be considered unofficial, legally. It’s authorized by YouTube, since they made and use it internally. That’s the definition of “official.” This is a small part of why I think the wording in the TOS makes the TOS apply to “InnerTube.” What makes you think that it doesn’t?

            • TheFrenchGhosty@lemmy.pussthecat.org
              link
              fedilink
              English
              arrow-up
              0
              ·
              1 year ago

              What makes you think that it doesn’t?

              The fact that it isn’t “the YouTube API”. The policy only applies to the API you can get “officially”.

    • eddythompson@beehaw.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 year ago

      well, there was a long thread about this on /r/selfhosted where @[email protected] @[email protected] was saying pretty much what I said, but with a tad more mental gymnastics mostly about EU laws regarding reverse engineering and lack of a formal agreement between them and YouTube.

      Unfortunately (or fortunately?), /r/selfhosted is private atm due to the blackout, so I’m unable to find and share thread link.

      The facts are:

      • Invidious (as an OSS project) calls undocumented internal YouTube APIs (they call it InnerTube).
      • Anyone can host an Invidious instance.
      • The main Invidious instance, i.e: https://invidious.io/ received a cease and desist from YouTube.

      @[email protected] @[email protected] posted all about this on GitHub, reddit, their personal blog, and contacted random media outlets like the one linked here, to complain about how “we have nothing to do with YouTube, why is YouTube bullying us”. And since everyone obviously wants to give the little guy the benefit of the doubt, everyone starts wondering how it could be that a project that’s all about providing an alternative UI for YouTube, doesn’t call YouTube.

      It’s like if a movie pirating website is trying to argue

      “Endgame.mp4” is just a file name. It has nothing to do with Marvel or Disney. What the hell are those greedy companies have to do with us??

      I’m all for invidious, piracy, etc. But seriously?

        • eddythompson@beehaw.org
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          A torrent tracker doesn’t host anything either. It’s merely a lighthouse for people to know who is hosting it. And trackers are hosted exclusively in certain specific countries because of that.

          • pokexpert30@lemmy.pussthecat.org
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            I think the issues with trackers is they were making money out of it? Iirc the trackers themselves, if kept from making a profit are untouchable

            • eddythompson@beehaw.org
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              I’m not sure that’s true. Most private trackers accept donations. Some even require you to buy some seedbox plan they get commission from (even though that’s generally frowned upon).

              All the high profile trackers I can think of that were shutdown through legal notice (Mininova, isoHunt, KickassTorrent, ThePirateBay, etc) were all public trackers. Maybe they had ads or something on their website, but their shutdown had nothing to do with them making money. They were shutdown for piracy even though they never “hosted” any content. They were just trackers.

              Hell, even Popcorn Time, a software that just let you easily search torrents and stream them, it hosted nothing, just connected you to trackers that had movies was too shutdown by legal notice.

              Trackers that survive are usually hosted behind VPNs and are physically located in Russia or China.

      • AbelianGrape@beehaw.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        It’s certainly possible to scrape data from interactions with a site directly, without using its API. This is even legal - there were no gymnastics in my response there. However, that decision has since been remanded, then re-affirmed, then challenged, and then LinkedIn obtained an injuction against HiQ which the two of them are still fighting over. So it could get properly overturned.

        I definitely thought it seemed like it would be difficult to do this to offer a youtube frontend, but plausible enough that I didn’t look into it. Thank you for this. I’m looking more closely now :)

        If they are using undocumented internal APIs, do YouTube’s API TOS apply to those? I checked the text of the TOS and it seems to me like it should apply; they say “The YouTube API services … made available by YouTube including …”. That seems broad enough to me to cover internal APIs as well, if their endpoints are accessible, but IANAL.

        Also, the open response to the C&D seems to throw shade at the TOS saying “The “YouTube API Services” means (i) the YouTube API services” but ignores that this is immediately followed by parenthetical examples and qualifiers. The TOS is defining the term so that it doesn’t have to repeatedly add the qualifiers. Nothing weird about that. That’s uh… pretty bad-faith arguing, if I’m interpreting it correctly.

        Edit: assuming you refer to the same reverse engineering points that they made above… yeah.