Skip to content

Prowlarr Module API Explanation

The Prowlarr module monitors active search indexers status and indexer query grab statistics.


API Execution Logic

The module locates the service matching the identifier prowlarr. It loads the PROWLARR_API_KEY and sets it in the request headers via the X-Api-Key key.

Parallel Request Execution

To retrieve indexer counts and download statistics, the module executes two parallel GET requests:

  1. Indexers Query: A request is sent to /api/v1/indexer to retrieve all configured indexers.
  2. Indexer Stats Query: A request is sent to /api/v1/indexerstats to retrieve usage stats.

Data Parsing

  • Primary Metric: The count of configured search indexers that are active (evaluated by filtering indexers where enable === true).
  • Secondary Metric: The total count of indexer grabs, calculated by summing the numberOfGrabs property across all indexer statistics.

Caching Strategy

The results are cached for 60 seconds (TTL) with a stale window of 300 seconds. A timeout of 5 seconds is enforced per request.