我需要付费才能在我的应用中使用 Google 自定义搜索吗?

发布于 2024-12-25 09:40:02 字数 358 浏览 0 评论 0原文

最近,我决定利用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一向肩并 2025-01-01 09:40:02

如果您不注册计费,每天的查询次数上限为 100 次。不要混淆每个用户的措辞。您或者更确切地说您的 API 密钥是用户,因此您的整体使用量与此限制相关。

免费配额

所有用户均可免费使用,每天最多可查询 100 次。

付费使用

如果您未注册计费,任何超出免费使用配额的使用都将失败。启用计费后,您每天将继续收到 100 个免费查询。但是,您将按照每 1000 个查询 5 美元的费率为所有额外请求付费,每天最多 10,000 个查询。如果您需要额外配额,请从控制台申请额外配额。

来源: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.

Free quota

Usage is free for all users, up to 100 queries per day.

Paid Usage

Any usage beyond the free usage quota will fail if you are not signed up for billing. Once you have enabled billing, you will continue to receive 100 free queries per day. However, you will be billed for all additional requests at the rate of $5 per 1000 queries, for up to 10,000 queries per day. If you need additional quota, please request additional quota from the console.

Source: https://developers.google.com/custom-search/json-api/v1/overview#pricing

冷血 2025-01-01 09:40:02

我也遇到了同样的错误,最后我找到了真正的原因:

缺少'key'参数

I got same error too, last, I found the real reason:

miss 'key' parameter

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文