PEP 691: JSON-based Simple API for Python Package Indexes is a proposal to create a JSON-based simple API. Please give that a read and leave a comment on that topic if it will work for this use-case.
I’m assuming this is using something like Address IPFS on the web | IPFS Docs to control the URL structure? Otherwise my understanding of IPFS and its CIDs would make structured URL formats impossible, thus not work with the simple API since there wouldn’t be the concept of a subdirectory.