Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
177 views
in Technique[技术] by (71.8m points)

Checking usage of YouTube Data API v3 by cloud monitoring API

Basically, there is some quota each day for using YouTube Data API v3. Posting a video costs 1600 units. Getting some information about a video cost 1 unit.

I want to check how many units of quota I have used today by the means of monitoring API of the Google Cloud platform.

However, the YouTube Data API is not covered in the documentation of cloud monitoring API.

Does anybody know how to achieve this?

question from:https://stackoverflow.com/questions/65886976/checking-usage-of-youtube-data-api-v3-by-cloud-monitoring-api

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The YouTube Data api is not part of the cloud monitoring system. It is part of the discovery services api, and there is no monitoring API for discovery APIs.

If you want to know if you are over your quota, make a call google will return a quota error to you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...