How to check limits by request


I am building React app based on free algolia plan. I would like to do it by this way:

  • User visit app,
  • “Search component” call api request which will check are algolia limits exeeced,
  • if limits are exceeded return component “Cannot use Algolia”
  • if not it will render algolia search components.

How to check this limits?

Hi @cubestorm72

There is a Usage API, but it isn’t available within the free plan:

Within the free tier, you’ll need to either track the requests yourself, or reactively respond to the usage limit error on the first search rather than proactively choosing to render the widget.