mStream/docs/API/db_metadata.md
2017-08-29 20:34:34 -04:00

46 lines
635 B
Markdown

**Get Metadata From DB**
----
Retrieves albums and artists that match a given string
* **URL**
/db/metadata
* **Method:**
`POST`
* **JSON Params**
**Required:**
`filepath` - filepath of song
* **JSON Example**
```
{
'filepath': '/path/to/file'
}
```
* **Success Response:**
* **Code:** 200 <br />
**Content:**
```
{
"filepath":"/path/to/file.mp3",
"metadata":{
"artist": "Artist",
"album": "Album",
"track": 1,
"title": "Song Title",
"year": 1990,
"album-art": "hash.jpg",
"hash": "sha256 hash"
}
}
```