我收到的是"dailyLimitExceeded"错误,总共只有300个请求 [英] I am getting "dailyLimitExceeded" errors with barely 300 total requests

查看:45
本文介绍了我收到的是"dailyLimitExceeded"错误,总共只有300个请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到"dailyLimitExceeded"错误,总共只有300个请求...几个小时前,我创建了这个api项目,开始时一切正常,直到我遇到了大约200个请求,然后每个请求都失败了

I am getting "dailyLimitExceeded" errors with barely 300 total requests... I created this api project a few hours ago and everything was working fine at the beginning until I hit about 200 requests and from there every request failed

这是我当前正在尝试的请求类型

this is the type of request I am currently trying

https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&channelId= {{channel_id}}& maxResults = 25& key = {{api_key}}

我想念什么?为什么我的API密钥这么快被锁定?

What am I missing? Why was my API key locked so quickly?

谢谢!

推荐答案

Search端点非常昂贵:根据文档,每个搜索查询的费用为100个配额单位.将其乘以200,您很可能会超出分配的每日配额.

The Search endpoint is kind of expensive: according to the docs, each one of your search query costs 100 units of quota. Multiply that with 200 and you're quite likely to exceed the daily quota allocated.

如果您只想查找给定频道的新视频条目,则最好使用适当查询的PlaylistItems端点(请参见我对相关问题的答案),配额费用仅为3个单位.

If you're only interested to find the new video entries of a given channel, then you better use the PlaylistItems endpoint queried appropriately (see my answer to a related question) that have a quota cost of only 3 units.

此外,您还应该注意API w.r.t.的问题之一.任何给定视频的发布日期与上传日期时间.

Also you should be aware about one of the issues of the API w.r.t. published vs. upload date time of any given video.

这篇关于我收到的是"dailyLimitExceeded"错误,总共只有300个请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆