TubeRepair CSharp is an ASP.NET Core minimal API server that provides legacy YouTube-style feed endpoints backed by Invidious.
You can find the old Python version here: https://github.com/kevinf100/tuberepair.uptimetrackers.com
It is intended for TubeRepair-compatible clients and includes routes for:
- Frontpage/trending feeds
- Video search
- Video comments
- Related videos
- Channel endpoints
- Playlist endpoints
- .NET SDK 10.0+
- Optional: Redis (for distributed caching)
dotnet restore
dotnet runDefault configuration listens on port 4000 (see appsettings.json).
Configuration can be provided through appsettings.json or environment variables.
Common settings:
URL(default:https://inv.uptimetrackers.com/)FEATURED_VIDEOS(default:20)COMMENTS(default:20)SORT_COMMENTS(default:popular)USE_REDIS(true/false)REDIS_HOSTREDIS_PORT(default:6379)USE_PLAYLIST_TRENDING(true/false)
Playlist trending IDs can also be customized:
TRENDING_PLAYLIST_DEFAULTTRENDING_PLAYLIST_FILMTRENDING_PLAYLIST_GAMESTRENDING_PLAYLIST_MUSICTRENDING_PLAYLIST_AUTOSTRENDING_PLAYLIST_ANIMALSTRENDING_PLAYLIST_SPORTSTRENDING_PLAYLIST_COMEDYTRENDING_PLAYLIST_PEOPLETRENDING_PLAYLIST_NEWSTRENDING_PLAYLIST_ENTERTAINMENTTRENDING_PLAYLIST_HOWTOTRENDING_PLAYLIST_TECH
GET /feeds/api/standardfeeds/{regioncode}/{popular}GET /feeds/api/videos?q={query}GET /api/videos/{videoid}/commentsGET /feeds/api/videos/{videoId}/relatedGET /feeds/api/users/{channelId}/playlistsGET /feeds/api/playlists/{playlistId}
Some endpoints also support a resolution prefix (for example /{res:int}/...).
For help, troubleshooting, and general discussion, join the Discord:
Main stable server:
Testing server:
A Dockerfile is included. Build and run with:
docker build -t tuberepair-csharp .
docker run --rm -p 4000:4000 tuberepair-csharpIf you use Docker, ensure your container runtime and base images match the target .NET version used by this project.
- kendoodoo (God)
- Nishijima Akito (Youtube Classic)
- SpaceSaver (YouTube Private API, HLS playback filter)
- Kevinf100 (Ported over to C#, the main hoster, and maintainer for the Website and API.)
- (et al.)