docs/src/invidious.md

29 lines · 2141 bytes

 1# Invidious
 2
 3Invidious is a free and open-source alternative frontend to YouTube. It is intended to be used as a lightweight and "privacy-respecting" alternative to the official YouTube website.
 4
 5## How Invidious is used in youtube-tui
 6
 7The TUI does not access YouTube using its official API, instead it uses the Invidious API to access videos - since it is much easier to use and does not require users to be logged using their API token.
 8
 9By sending a request to one of their [API paths](https://docs.invidious.io/api/), it returns a JSON response containing information about videos, playlists, channels which can be understood by the program.
10
11## YouTube is blocking Invidious
12
13Referencing to [this GitHub issue](https://github.com/iv-org/invidious/issues/3822), YouTube has started trying to block public Invidious instances. So far some Invidious instances are blocked from accessing video information, the TUI displays an error when that happens, which may happen more and more frequently, and to more instances.
14
15There are several ways to bypass this.
16
17### Use smaller, or private instances
18
19All public instances can be found in [api.invidious.io](https://api.invidious.io/), it is likely there are instances on the list which are not blocked from accessing YouTube videos. Change your `invidious_instance` option in [`main.yml`](./config/main.md) to the new instance address.
20
21If you know people who host their own websites and services, it is possible that they already have their own private Invidious instance running. If that's not the case, try asking nicely for them to host an Invidious instance, it might work. (Stop being the introvert you are, go touch some grass and talk to humans)
22
23### Self host a local instance
24
25[Here](https://docs.invidious.io/installation/)'s the official installation guide, and [here](https://github.com/tmiland/Invidious-Updater)'s a cool install script.
26
27> Note: the install script is a bit buggy and does not prompt you to press `y`, so it may appear that it is hanging. For that you can just look into `invidious_installer.log` to see if you are supposed to press `y`.
28
29No more info for now.