Writes data/difficulty_epochs the same way scripts/epoch_indexer.py does. Default source is mempool.space. RPC needs a local Bitcoin Core node.
data/difficulty_epochs
scripts/epoch_indexer.py
Waiting for a sync.