Why did my queries use so many tokens?

The most common reason is a query without a date range on an account with historical access enabled. Without dateStart, the query searches all years since 2014, and every such request costs 5 tokens per year (more than 60 tokens per request), even if you only wanted recent articles or a single result.

How to avoid it:

  • Always specify dateStart (and dateEnd) in your queries.
  • If you only need recent data, disable historical access on your dashboard, or use EventRegistry(apiKey=..., allowUseOfArchive=False) in the Python SDK.
  • Avoid repeating the same query for every single day when one query over a longer period with pagination would return the same articles.
  • Keep "Block API calls once the monthly cap is reached" checked so your usage can't go above your plan.

The request log on your dashboard shows each request, the tokens it used and the IP address it came from. If you see requests you don't recognize, generate a new API key.