ipfs-search alpha

NEW: METADATA!

Search

Not much here yet, but try: GET /v1/search?q=water

Example

{
    "total": 82118,
    "max_score": 52.767845,
    "hits": [
        {
            "hash": "QmYHPTi6ih88CFtX4KCu4bpWHtNZGG2V4PTB49v6bBa97q",
            "title": "Lackey, Mercedes - Diana Tregarde 2 - Burning Water (.rtf v2.0)",
            "description": null,
            "type": "directory",
            "size": 0,
            "last-seen": "2019-05-01T12:11:07Z",
            "score": 52.767845
        },
        {
            "hash": "Qmcgwxyyv4arJTyiWy6dL9NQ1x3XKSGvi6pXqF2fyePD1Q",
            "title": "Wind and Water - Puzzle Battles (World) (Unl).mp4",
            "description": null,
            "type": "file",
            "size": 3243565,
            "first-seen": "2019-04-23T16:47:23Z",
            "last-seen": "2019-04-23T16:47:23Z",
            "score": 52.129974,
            "mimetype": "application/mp4"
        },
        ...
    ]
}

Advanced queries

It's possible to query on specific fields, like the filename:
GET /v1/search?q=references.name:*.html

And by type (currently, `file` and `directory`):
GET /v1/search?q=_type:directory

Only consider objects seen within the last month:
GET /v1/search?q=last-seen:>now-1M

Find all items linking here:
GET /v1/search?q=references.parent_hash:QmVFHYaqPHJ7vg2DcszELhyQ7pJXLjHgx33FBwgbiWRQKi

List only images:
GET /v1/search?q=metadata.Content-Type:image*

Metadata

Brand new, Tika-extracted metadata for files on IPFS!

Try: GET /v1/metadata/QmSTAxpZCmotrXVRjiaftHJRW6wXpH8tXAyax94Jhxq8bZ/

Example

{
    "metadata":{
        "xmpDM:genre":[
            "Soundtrack"
        ],
        "xmpDM:composer":[
            "Nobuo Uematsu"
        ],
        "X-Parsed-By":[
            "org.apache.tika.parser.DefaultParser",
            "org.apache.tika.parser.mp3.Mp3Parser"
        ],
        "creator":[
            ""
        ],
        "xmpDM:album":[
            "\"Final Fantasy IX\" Original Soundtrack, Disk 4"
        ],
        "xmpDM:trackNumber":[
            "24"
        ],
        "xmpDM:releaseDate":[
            "2000"
        ],
        "meta:author":[
            ""
        ],
        "xmpDM:artist":[
            ""
        ],
        "dc:creator":[
            ""
        ],
        "xmpDM:audioCompressor":[
            "MP3"
        ],
        "resourceName":[
            "24-Coca Cola TV CM 1.mp3"
        ],
        "title":[
            "Coca Cola TV CM 1"
        ],
        "xmpDM:audioChannelType":[
            "Stereo"
        ],
        "version":[
            "MPEG 3 Layer III Version 1"
        ],
        "xmpDM:logComment":[
            "eng - \nhttp://www.ffdream.com"
        ],
        "xmpDM:audioSampleRate":[
            "44100"
        ],
        "channels":[
            "2"
        ],
        "dc:title":[
            "Coca Cola TV CM 1"
        ],
        "Author":[
            ""
        ],
        "xmpDM:duration":[
            "20218.76953125"
        ],
        "Content-Type":[
            "audio/mpeg"
        ],
        "samplerate":[
            "44100"
        ]
    },
    "version":1,
    "type":"file"
}
`

Code

https://github.com/ipfs-search/ipfs-search

Demo

Introduction during 'apps on IPFS' conference call.

Contact

Mathijs de Bruin info@ipfs-search.com