Skip to content

Add option to disable easy to abuse API endpoints#5630

Draft
Fijxu wants to merge 1 commit intoiv-org:masterfrom
Fijxu:disable-easy-to-abuse-endpoints
Draft

Add option to disable easy to abuse API endpoints#5630
Fijxu wants to merge 1 commit intoiv-org:masterfrom
Fijxu:disable-easy-to-abuse-endpoints

Conversation

@Fijxu
Copy link
Copy Markdown
Member

@Fijxu Fijxu commented Feb 17, 2026

Supersedes #5628

The API endpoints that will be disabled when this option are:

  • /api/v1/videos
  • /api/v1/clips
  • /api/v1/transcripts

Add a disable_api config option, although it could be changed to a more flexible option to let the instance owner disable the API endpoints they want to disable, but I'm not too sure, what do you think @unixfox?

There is still API endponts that need some sort of validation or connection/proxying to Invidious companion like
/api/v1/captions and /api/v1/storyboards since they also do a video request to Invidious companion. I'm not sure if the /next API endpoint could be used to gather that type of information, if so, that would be better.

Closes #5599

The API endpoints that will be disabled when this option are:
 - /api/v1/videos
 - /api/v1/clips
 - /api/v1/transcripts

There is still API endponts that need some sort of validation or
connection/proxying to Invidious companion like
`/api/v1/captions` and `/api/v1/storyboards` since they also do a video
request to Invidious companion. I'm not sure if the `/next` API endpoint
could be used to gather that type of information, if so, that would be
better.

Closes iv-org#5599
Comment thread config/config.example.yml
## Accepted values: true, false
## Default: false
##
disable_api: false
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo the key name should also make it clear that it's only easily abused API endpoints that are disabled (like the comment does)

Maybe disable_abusable_api (like how the handler is named)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Add option to disable easily abusable API easily.

2 participants