this post was submitted on 13 Jan 2024
12 points (75.0% liked)

Asklemmy

43908 readers
1020 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy πŸ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
12
Deleted (lemmy.ml)
submitted 10 months ago* (last edited 10 months ago) by THE_ANON@lemmy.ml to c/asklemmy@lemmy.ml
 

Deleted

all 13 comments
sorted by: hot top controversial new old
[–] stardreamer@lemmy.blahaj.zone 22 points 10 months ago* (last edited 10 months ago) (2 children)

An API is an official interface to connect to a service, usually designed to make it easier for one application to interact with another. This is usually kept stable and provides only the information needed to serve the request of the application requesting it.

A scraper is an application that scrapes data from a human readable source (i.e. website) to obtain data from another application. Since website designs can update frequently, these scrapers can break at any time and need to be updated alongside the original application.

Reddit clients interact with an API to serve requests, but Newpipe scrapes the YouTube webpage itself. So if YouTube changes their UI tomorrow Newpipe could very easily break. No one wants to design their app around a fragile base while building a bunch of stuff on top of it. It's just way too much work for very little effort.

It's like I can enter my house through the door or the chimney. I would always take the door since it's designed for human entry. I could technically use the chimney if there's no door. But if someone lights up the fireplace I'd be toast.

[–] Ephera@lemmy.ml 4 points 10 months ago

Yep, one thing to add is that the only real way for YouTube to block this, would be to require a login before showing the webpage, for any users.

[–] CaptainBasculin@lemmy.ml 3 points 10 months ago (1 children)

API is like an easy gateway sites offer to make sure other developers can integrate data from themselves to their apps. Reddit used to be more permissive towards third party apps back when they didn't have an official one; but now that their data is used for other purposes and they have an official app; they didn't want to give out their data for free anymore.

All fediverse sites use an API called "ActivityPub" to have their content work with each other, so a lemmy account from lemmy.ml can follow another user from lemmy.world and their posts can be seen on a third party app.

NewPipe uses data scraping to get the data from youtube from the data the site gives. This is not using an API, it instead acts like a user and gets the data from the site itself. Sites can introduce various methods to distrupt data scraping; but cannot truly do it without crippling the anonymous user experience a lot. Lots of modern media sites have started to do so you might have realised.

[–] breadsmasher@lemmy.world 3 points 10 months ago

Just to be super pedantic, ActivityPub is the protocol used to federate. Mastodon, Lemmy, KBin all have different APIs which use the activitypub protocol

[–] Appoxo@lemmy.dbzer0.com 1 points 10 months ago

/iHadAStroke

Wtf is that title?