Search code examples
alchemyapi

alchemy api always says "totalTransactions: 730" even after just starting


I just today got an api key, and even after just a few loads of the sample queries with my key, i get intermittent errors saying that i've exceeded my daily 1000 transactions, and the transactions count is always 730.

Is this just a bug? or does this not mean what I think it means?

Edit: the conclusion is that there is an internal "cost" of running each query. that totalTransactions number refers to the internal costing, not my number of API calls made.


Solution

  • The transaction load for the AlchemyData News service is quite a bit higher than the other Alchemy services. Using the basic NLP services will generally cost you one transaction per call, and the image services cost four transactions per call. With the News service, because data storage and content curation is already handled for you, there are a lot more costs bundled in. You can reduce the number of transactions greatly by shortening the time window you are querying over.