youtube-apiyoutube-data-apigoogle-api-java-client

Youtube Data API - Java implementation


Been browsing for a while but can't find concrete answer whether the Java implementation of the Youtube Data API includes handling rate limits out of the box or is this something one has to account for?

https://github.com/googleapis/google-api-java-client-services/tree/main/clients/google-api-services-youtube/v3

Reading the documentation - hoped to find actual specific section about this but couldn't find.


Solution

  • As far as I recall all of the google apis client libraries have exponential backoff functionality built in. You need to look in the main library not the package for the individual apis

    If you do a search in the code you can even see there is a build option for it.

    It won't hurt to add your own rate limiting on top of this. You need to check exactly what errors they are catching. For example I don't think the retry all of the quote errors they could. I normally add that myself if it becomes an issue in my application.