用量限额
batchGet
此版本的 Google AMP 网址 API 的默认限制为每 100 秒 10 次查询。该 API 目前免费(请参阅价格)。
对于 batchGet
方法,每次调用此方法时,默认限制为 50 个 AMP 网址。
更新缓存
对于 update-cache
请求,给定主机名的默认限制为每秒 10 个请求。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-08-30。
[null,null,["最后更新时间 (UTC):2023-08-30。"],[[["The Google AMP URL API, including the `batchGet` method, is currently free to use."],["`batchGet` allows fetching data for up to 50 AMP URLs per request, but overall API usage is limited to 10 queries per 100 seconds."],["When using `update-cache`, you can send a maximum of 10 requests per second for each hostname."]]],["The Google AMP URL API's `batchGet` method allows up to 50 AMP URLs per call, with a default limit of 10 queries per 100 seconds. The `update-cache` request is limited to 10 requests per second for each host name. The API is currently free. These limitations define how frequently and extensively users can retrieve and update AMP URLs via these methods.\n"]]