A simple YouTube proxy API server and stream extractor used by NettleWeb Videos.
- Ensure that JDK-17 is installed on your server.
- Clone this repository onto your server with the
--recursive
flag.
git clone --recursive https://github.com/nettleweb/ytproxy.git
- Build the JAR file.
./gradlew jar
- Start the server.
java -Xms256m -Xmx1024m -jar ./build/libs/ytproxy-0.1.0.jar -host 127.0.0.1 -port 8080
GET http://127.0.0.1:8080/search?q=${query}&f=${filter}&p=${page}&s=${sort}
query
: The search query string. (required)
filter
: The search filter options.
page
: The next page token.
sort
: The sort filter options.
A JSON-encoded string containing a list of matching videos and their information.
GET http://127.0.0.1:8080/stream?u=${url}
url
: The direct URL pointing to the video. (required)
A JSON-encoded string containing the video's stream information.
GET http://127.0.0.1:8080/trending
A JSON-encoded string containing a list of videos and their information.
All code and files within this repository are licensed under the GPL-3.0 License. You are free to modify or redistribute this project under the terms stated in LICENSE.md.
.