{"id":4254,"date":"2023-06-07T13:49:54","date_gmt":"2023-06-07T18:49:54","guid":{"rendered":"https:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=4254"},"modified":"2023-06-07T13:49:54","modified_gmt":"2023-06-07T18:49:54","slug":"youtube-data-api-quota","status":"publish","type":"post","link":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=4254","title":{"rendered":"YouTube Data API Quota"},"content":{"rendered":"<p>Google has reduced the quota for my application after demanding a compliance audit. I have submitted the form for the audit many times but I never get any kind of response. Here is a message they sent me when they reduced my YouTube API Services quota to the default allocation:<\/p>\n<div id=\"attachment_4258\" style=\"width: 590px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4258\" src=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/YouTube-API-Services-Quota.jpg\" alt=\"YouTube API Services Quota\" class=\"wp-image-4258 size-full\" width=\"580\" height=\"692\" srcset=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/YouTube-API-Services-Quota.jpg 580w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/YouTube-API-Services-Quota-335x400.jpg 335w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><p id=\"caption-attachment-4258\" class=\"wp-caption-text\">YouTube API Services Quota<\/p><\/div>\n<p>Dealing with Google or YouTube is extremely frustrating as anyone who watches YouTube videos knows. I have watched countless videos by my favorite creators on their struggles to get answers about problems. I don&#8217;t know if the effort is worth my time since I make very little money from my application. However, Google Cloud does offer some options to send alerts about the API quota usage and it might be worthwhile to learn about that. I am always looking for new technical skills to expand my expertise.<\/p>\n<p>Anyway, here is what the Google Cloud control panel shows as my current usage percentage comes close to exceeding the limit.<\/p>\n<div id=\"attachment_4259\" style=\"width: 1132px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4259\" src=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/YouTube-Data-API-Current-Usage-Percentage.jpg\" alt=\"YouTube Data API Current Usage Percentage\" class=\"wp-image-4259 size-full\" width=\"1122\" height=\"718\" srcset=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/YouTube-Data-API-Current-Usage-Percentage.jpg 1122w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/YouTube-Data-API-Current-Usage-Percentage-400x256.jpg 400w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/YouTube-Data-API-Current-Usage-Percentage-1024x655.jpg 1024w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/YouTube-Data-API-Current-Usage-Percentage-768x491.jpg 768w\" sizes=\"(max-width: 1122px) 100vw, 1122px\" \/><p id=\"caption-attachment-4259\" class=\"wp-caption-text\">YouTube Data API Current Usage Percentage<\/p><\/div>\n<p>There appears to be a way to set up an alert so that you get an email when your API usage exceeds a certain limit. Unfortunately, the alert I set up does not appear to work. You need to create a policy for an alert and the steps are very technical and confusing. The first step is to select a metric.<\/p>\n<div id=\"attachment_4260\" style=\"width: 650px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4260\" src=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Select-A-Metric-1024x452.jpg\" alt=\"Google Cloud Policies Select A Metric\" class=\"wp-image-4260 size-large\" width=\"640\" height=\"283\" srcset=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Select-A-Metric-1024x452.jpg 1024w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Select-A-Metric-400x177.jpg 400w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Select-A-Metric-768x339.jpg 768w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Select-A-Metric.jpg 1379w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><p id=\"caption-attachment-4260\" class=\"wp-caption-text\">Google Cloud Policies Select A Metric<\/p><\/div>\n<p>I selected the <strong>Rate quota usage<\/strong> metric which seems to be the only option that makes sense. Then you need to configure the condition trigger.<\/p>\n<div id=\"attachment_4261\" style=\"width: 571px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4261\" src=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Configure-Alert-Trigger.jpg\" alt=\"Google Cloud Policies Configure Alert Trigger\" class=\"wp-image-4261 size-full\" width=\"561\" height=\"657\" srcset=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Configure-Alert-Trigger.jpg 561w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Configure-Alert-Trigger-342x400.jpg 342w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><p id=\"caption-attachment-4261\" class=\"wp-caption-text\">Google Cloud Policies Configure Alert Trigger<\/p><\/div>\n<p>The appropriate settings are uncertain. I definitely want <strong>Threshold<\/strong>. Selecting <strong>Any time series violates<\/strong> might be a mistake. I&#8217;m not sure if a time series applies. But I definitely want the <strong>Above threshold<\/strong> option and a <strong>Threshold value<\/strong> of 38000 should trigger before my application exceeds its quota.<\/p>\n<p>Finally I had to create a notification method or channel. I want an email to be sent to my email address. There are various other options.<\/p>\n<div id=\"attachment_4262\" style=\"width: 561px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4262\" src=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Configure-Notifications.jpg\" alt=\"Google Cloud Policies Configure Notifications\" class=\"wp-image-4262 size-full\" width=\"551\" height=\"681\" srcset=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Configure-Notifications.jpg 551w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Policies-Configure-Notifications-324x400.jpg 324w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><p id=\"caption-attachment-4262\" class=\"wp-caption-text\">Google Cloud Policies Configure Notifications<\/p><\/div>\n<p>Unfortunately my application is exceeding its quota usage limit but I am not receiving an alert. No incidents of the quota being exceeded are showing up for this alert policy. I&#8217;m thinking I could maybe bug Google about this. The simple solution would be to just raise my quota. You can always rely on the laziness of technical support!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google has reduced the quota for my application after demanding a compliance audit. I have submitted the form for the audit many times but I never get any kind of response. Here is a message they sent me when they &hellip; <a href=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=4254\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,1606,11,1984],"tags":[1987,1985,1986],"_links":{"self":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4254"}],"collection":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4254"}],"version-history":[{"count":2,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4254\/revisions"}],"predecessor-version":[{"id":4263,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4254\/revisions\/4263"}],"wp:attachment":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4254"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}