Golang YouTube API V3什么算为查询(用于配额)?

Golang YouTube API V3什么算为查询(用于配额)?,youtube,youtube-api,youtube-data-api,Youtube,Youtube Api,Youtube Data Api,使用youtube Golang library(“google.Golang.org/api/youtube/v3”),我已经使用以下代码请求了14个关于我帐户的视频详细信息: // Retrieve resource for the authenticated user's channel func (y *Youtube) VideoDetails(id string) (*youtube.VideoListResponse, error) { call := y.service

使用youtube Golang library(“google.Golang.org/api/youtube/v3”),我已经使用以下代码请求了14个关于我帐户的视频详细信息:

// Retrieve resource for the authenticated user's channel
func  (y *Youtube) VideoDetails(id string) (*youtube.VideoListResponse, error) {
    call := y.service.Videos.List("Snippet,Status,RecordingDetails")
    call = call.Id(id)
    response, err := call.Do()
    if err != nil {
        return nil, fmt.Errorf("failed to connect %s", err)
    }
    return response, nil
}
其中
y.service
*youtube.service

然而,根据配额页面(),我向youtube API发出了163个请求。我想知道你是如何计算配额的? 我认为上面的方法只对youtube API进行一次调用,例如
response,err:=call.Do()
如果没有,请您解释一下您是如何计算这些请求的


谢谢你的帮助

你找到这个配额计算器了吗?我还没找到,谢谢!这是非常有用的。根据这个计算器,我应该为
https://www.googleapis.com/youtube/v3/videos?part=snippet,status,recordingDetails
每个请求花费7美元,其中14个请求总计为98美元,而不是163美元,但至少这有点接近……是的。这只能进行近似计算,无法找到如何获取详细信息。