I am looking at the following guide: https://developers.google.com/youtube/v3/getting-started
The first step in interacting with the YouTube API is:
You need a Google account to access the Google Developers Console, request an API key, and register your application.
And they continue to show an example of using a key:
URL: https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=YOUR_API_KEY & amp; part = snippet, contentDetails, statistics, status
I have a client application that is used by many people. The application issues searches in the YouTube API. The YouTube API has a request limit of 50 million requests per day.
Since this is a client application, my API key is embedded in the code.
Today, an attacker wrote something to maximize requests: 
I wonder what kind of regression I should be able to protect from this kind of activity. Is my only option for hosting a server, routing all YouTube API requirements through my server, and rejecting requests when they appear too often?
I have a real concern for implementing something like this. This will effectively double the latency for each API request, as well as impose a seemingly extra amount on the server, but perhaps this is necessary.
Do I have any other options?
thanks
youtube youtube-api google-api youtube-javascript-api
Sean anderson
source share