Identify
Find the best matching OpenMusicMetadata resource for a name.
Use identify when you have metadata, like a name and an artist, and need the one best matching canonical resource. The resource is returned with all of its attributes and relationships.
GET /identify/song?name=blue&artist=example
GET /identify/album?name=blue&artist=example
GET /identify/artist?name=examplename is required and all parameters are limited to 256 characters. Parameters a type doesn't use are ignored.
| Type | Parameters |
|---|---|
song | name, artist, album, duration |
album | name, artist |
artist | name |
GET /identify/song?name=blue&album=example&artist=artist&duration=215000Ranking
Candidates are ranked by fuzzy similarity of name, artist and album, plus popularity.
For songs, duration is in milliseconds. A candidate whose duration is within 50 ms of it gets a ranking bonus that grows as the difference shrinks. Candidates outside that window aren't penalized. Values of 0 or less are ignored, and a non-integer value returns 400.
Response
The response is Single<Song | Album | Artist>. The returned type matches the requested type. Returns 404 when nothing is found.