Search code examples
p2pipfs

Search for file in IPFS by its filename?


Is there a way to search for files in IPFS by its filename? If I want for example search for a subject in IPFS, I suppose this subject is in the filename like some-subject.pdf, then, there is a way to retrieve the hashes of the files containing the word "subject"?


Solution

  • There is no API to query directly, as bcolin wrote in their answer, but someone is trying to make a search engine and tries to index documents found on IPFS.
    The project IPFSearch is still in early beta at the time of writing but it can be found here:

    /ipns/ipfsearch.xyz (untested by me)
    or /ipns/QmSE8g9k5JS1vJ7y5znhSZikmybvdsm3yDj7sbKjPRqsJW (untested by me)

    or, since the DHT is still super slow, through the gateway: https://ipfsearch.xyz

    The announcement was done on discuss.ipfs.io
    The project Github is here.

    Good luck!