This Code use Java with HTTP Call from Youtube API to crawl videos, not using third party library
Go to src/main/resources/application.properties
and replace {YOUR_API_KEY}
with your API Key
application.youtube.apiKey={YOUR_API_KEY}
- Clone the repo
git clone https://github.com/SeiSilver/hololive-clip-api.git
- Build code
mvn clean install
- Run
java -jar target/hololive-clip-api-0.0.1.jar
Call API: http://localhost:8080/clips/api/search?query=&size=&pageToken=
query: video title or talent you want to search (required)
size: number of videos (default value is 50) (optional)
pageToken: token use to move to next page of the result (optional)
- Calling Api from YouTube will consume some of your Quota, daily your quota will refill to 10000
- For search request will consume 100 Quota per request
For more detail: Quota Cost