Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] API endpoint that informs if the instance has been blocked by Youtube #3957

Closed
RoyTakanen opened this issue Jul 1, 2023 · 1 comment · Fixed by #4085
Closed
Labels
feature-request Request of a new feature type:api

Comments

@RoyTakanen
Copy link

As an Invidious instance maintainer, it is hard to know whether my instance is really working. The invidious software might run just fine and return 200 responses even though it has been blocked by Youtube. It often takes some time to be aware that the instance is not loading Youtube videos.

This could be fixed by implementing an API endpoint that tells if Youtube has blocked the instance. This endpoint could be used then by an external uptime monitoring software like Uptime Kuma or Gatus. To achieve compatibility with different kinds of software, I wish the endpoint had a clear status code informing the blockage state (for example 503 - service unavailable).

The existing /api/v1/stats endpoint could be used for this. In my opinion the endpoint should also return some json data for other software indicating is the instance blocked, without needing to look into status codes.

{
   "blocked": <boolean>
}
@RoyTakanen RoyTakanen added the feature-request Request of a new feature label Jul 1, 2023
@RoyTakanen
Copy link
Author

If/when this is implemented, I would love to see it used on https://api.invidious.io/ too. It would help new users to find out that a specific instance is blocked currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request of a new feature type:api
Projects
None yet
2 participants