In both Workers and the API you can list all of the keys including metadata but then no choice but to reach each individually. API has kind of strict rate limits at 1200 requests/5 minutes though, would probably be better off doing it in a Worker with its 1,000 subrequest internal limit per incoming request