brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: curl the Prowlarr API to see health warnings and failing indexers

Curl
~/tips/tip-curl-prowlarr-api-health

curl -fsS -H "X-Api-Key: $KEY" http://localhost:9696/api/v1/health | jq -r '.[] | "\(.type): \(.message)"'

Read Prowlarr's health checks and disabled indexers from a script, with the API key in a header.

The yellow warnings in Prowlarr’s System, Status page are also available over its API. That makes them easy to check from cron or a dashboard, without opening the web UI.

Find the API key under Settings, General, then ask the v1 API:

KEY=your_api_key
curl -fsS -H "X-Api-Key: $KEY" http://localhost:9696/api/v1/health | jq -r '.[] | "\(.type): \(.message)"'
curl -fsS -H "X-Api-Key: $KEY" http://localhost:9696/api/v1/indexerstatus | jq .

The health endpoint returns a list of objects with source, type, message and wikiUrl. An empty list [] means all checks pass. The indexer status endpoint lists indexers that Prowlarr has paused after failures, with fields like indexerId, disabledTill and mostRecentFailure.

The OpenAPI spec accepts the key as a header or as an apikey query parameter. I prefer the header, since URLs end up in logs and shell history more often than headers do.

The API key gives full control over Prowlarr, so treat it like a password, and keep Prowlarr itself off the public internet. Replace localhost with the address of the machine or container where Prowlarr runs. If you sit behind a reverse proxy with a URL base, add that base before /api.

Further reading: Prowlarr API docs, Servarr wiki: Prowlarr

Going deeper: Guide: link Prowlarr to Sonarr and Radarr once, and stop typing indexers into every app

More Curl tips curl --trace-ascii – https://example.com/ Retry-After: 120 curl -fsS --fail-early \ url = "https://example.com/data/latest.json" curl -4 -s -o /dev/null -w '%{remote_ip} %{http_code}\n' https://example.com/ All Curl tips (71) All topics

Link