YouTube API 配额限制和可扩展的应用程序 [英] YouTube API Quota Limits & Applications that Scale

查看:36
本文介绍了YouTube API 配额限制和可扩展的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个需要通过 youtube 上传视频的应用.我计划通过 youtube API 在应用程序中共享视频.根据文档,在 youtube 上分享视频需要大约 16000 个单位.",每个应用程序的补充配额为 500 万个,允许大约.每天发布 312 个视频.

I'm currently working on an app that requires video uploading via youtube. I plan to share the video in app via the the youtube API. According to the documentation to share a video on youtube requires "approximately 16000 units.", with each app having a complementary quota of 5 million allowing aprox. 312 video posts a day.

此应用将拥有数千名用户,因此补充"配额限制肯定是不够的,在应用仪表板中按请​​求更多..."时会显示以下消息:我们未批准配额请求."

This app will have thousands of users so the "complementary" quota limit most definitely won't be enough, in the app dashboard when pressing "Request more..." the following message is displayed: "We Are Not Approving Quota Requests."

很明显,有许多拥有数百万用户的应用,例如社交摄像头"或会说话的汤姆猫",会超出补充配额.

Obviously there are many apps out there with millions of users such as "Social cam" or "Talking Tom" that would be exceeding the complementary quota.

所以我的问题是应用如何增加配额?如果是付费的,定价结构是什么?

So my question is how can app increase its quota? If it is paid for what is the pricing structure?

推荐答案

实际上,现在上传视频的配额成本大约是每个视频上传 1600.并且配额限制也每天减少100000.每天上传 312 个视频可能需要花费 312*1600=499200.少于 100000 配额限制.但是如果你想上传更多的视频,你可以通过对 php 的一点了解来增加数据限制.

Actually, Now a days the quota cost for uploading videos is about 1600 per video upload. And the quota limit is also decrease by 100000 per day. For uploading 312 videos per day can cost 312*1600=499200. Which is less than 100000 quota limit. But if you want more videos to be uploaded you can increase data limit by little knowledge of php.

  $rand_keys = array_rand($num);
  $comm=$num[$rand_keys];

其中 $num 是一个包含键的数组,任何你想要的数字.每个新请求都会转到下一个 api 密钥.通过制作 10 把钥匙,您可以获得比限制还多 10 倍的钥匙.否则,您必须申请配额.

Where $num is an array that contains keys, Whatever number you want. Each new request go to the next api key. By making 10 keys you can get 10 times than limit also. Other wise you have to apply for quotas.

这篇关于YouTube API 配额限制和可扩展的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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