【问题标题】:Bluemix news api transaction limit exceeded超出 Bluemix 新闻 api 事务限制
【发布时间】:2016-06-15 14:24:03
【问题描述】:

我已将 Alchemy API 服务添加到我的 Bluemix 仪表板,并且可以使用凭证来调用 API。我已将服务配置为使用“生态系统”计划。

我的应用在前几次调用中很好地调用了新闻 API,然后我得到了API transaction limit exceeded。生态系统计划的调用是否有限制?

谢谢 布伦丹

【问题讨论】:

    标签: ibm-cloud ibm-watson alchemyapi


    【解决方案1】:

    目前可用于 AlchemyAPI 服务的两个计划是免费和标准。免费计划包括每个 Bluemix 组织每天 1,000 个事件。您一次只能拥有一个 AlchemyAPI 服务实例和一个免费计划中的 AlchemyAPI 凭证。如果您需要创建额外的实例或凭证,则需要升级到标准计划。

    看看Alchemy API Service termsAlchemyAPI on Bluemix details

    【讨论】:

      【解决方案2】:

      Alchemy API 很棘手。您可能每天要完成 1000 个事件。

      首先,您需要了解事件的计数方式。

      这是一个例子:

      To calculate how many transaction credits a query will cost, multiply historical access and targeting.
      
      Historical Access - each hour of historical access costs 1 transaction credit
      Targeting - each query parameter costs 1 transaction credit
      
      Example: Give me news about the company "IBM" from the past 3 days.
      
          Historical access: 3 days = 72 transaction credits
          Targeting: 1 query parameter = 1 transaction credit
          Query cost: 72 transaction credits
      

      更多解释见https://www.alchemyapi.com/alchemydata-news-sales

      其次,您需要检查您已经使用了多少积分。为此使用此 API

      http://access.alchemyapi.com/calls/info/GetAPIKeyInfo?apikey=YOUR_API_KEY

      最后,缓存您从 AlchemyAPI 检索到的所有内容(bluemix 有几个选项)

      【讨论】:

      • 嗨 Leo - 感谢您的快速回复。我查看了我的 API 密钥限制,看起来 Bluemix 生态系统每天提供 100,000 笔交易。听起来很多,但在一次调用中使用 1000 并不太难。感谢帮助。干杯。
      • 有没有办法查看更多分析?例如,过去 7 天的每日使用量?
      猜你喜欢
      • 2016-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-03
      • 2016-09-29
      • 1970-01-01
      相关资源
      最近更新 更多