我需要付费才能在我的应用中使用 Google 自定义搜索吗?
最近,我决定利用 Google 自定义搜索引擎并将其嵌入到我的 iPhone 应用程序中。我将搜索引擎的范围限制为要搜索的网站数量,我获得了 KEY 和 cx 并将它们添加到我的代码中,一切都按预期工作,但在几次成功的搜索查询后,我无法再收到任何结果 - 我得到一个空的包含以下消息的数组:
“代码”:403, "message": "超出每日限额,请注册"
据我所知,我的应用程序的每个用户都有一组搜索尝试,每天 100 次,如果超过该限制,他必须等待 24 小时才能再次搜索另外 100 个查询。但这里的情况是,我根本就没有搜索的能力了!
如果我达到了配额,我必须等到第二天吗?我错了吗?
Recently I decided to take advantage of Google custom search engine and embed it inside my iPhone application. I scoped my search engine to number of websites to search in, I got both KEY&cx and added them to my code, every thing works as expected, but after several successful search queries I can no longer receive any results - I get an empty array containing the following message:
"code": 403,
"message": "Daily Limit Exceeded. Please sign up"
As I know, every user of my application has a set of search attempts, 100 per day, if he exceeded that limit he has to wait 24 hour to be able to search again for another 100 queries. But the case here is that I no longer have the ability to search at all!
If I hit my quota I have to wait for the next day? Am I wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您不注册计费,每天的查询次数上限为 100 次。不要混淆每个用户的措辞。您或者更确切地说您的 API 密钥是用户,因此您的整体使用量与此限制相关。
来源:https://developers.google.com/custom-搜索/json-api/v1/overview#pricing
If you don't sign up for billing you are capped at 100 queries per day. Don't confuse the wording per user. You or rather your API key is the user therefore your overall usage is tied to this limit.
Source: https://developers.google.com/custom-search/json-api/v1/overview#pricing
我也遇到了同样的错误,最后我找到了真正的原因:
缺少'key'参数
I got same error too, last, I found the real reason:
miss 'key' parameter