20150624 - tag based track lookup

5 views
Skip to first unread message

Dan Gravell

unread,
Jun 24, 2015, 4:32:50 PM6/24/15
to onemusicapi-...@googlegroups.com
This build adds tag based lookup to:


With the parameters:

title=[track title]
artist=[artist name]

E.g.


The response is in the same form as previously:

[
    {
        "title": "Dry The Rain",
        "artists": [
            "The Beta Band"
        ],
        "releases": [
            {
                "title": "Nike Anywhere Anytime: Indoor Tune-Up",
                "artist": "Various Artists",
                "genre": "divine motion",
                "media": [
                ],
                "uris": [
                ],
                "score": 1
            }
        ],
        "uris": [
        ]
    },
    {
        "title": "Dry the Rain",
        "artists": [
            "The Beta Band"
        ],
        "releases": [
        ],
        "uris": [
        ]
    },
    {
        "title": "Dry the Rain",
        "artists": [
            "The Beta Band"
        ],
        "releases": [
            {
                "title": "Champion Versions",
                "artist": "The Beta Band",
                "year": "1997",
                "media": [
                ],
                "images": [
                    {
                        "width": "254",
                        "height": "250"
                    }
                ],
                "uris": [
                ],
                "score": 1
            }
        ],
        "uris": [
        ]
    },
    {
        "title": "Dry the Rain",
        "artists": [
            "The Beta Band"
        ],
        "releases": [
        ],
        "uris": [
        ]
    },
    {
        "title": "Dry the Rain",
        "artists": [
            "The Beta Band"
        ],
        "releases": [
            {
                "title": "Hollywood Cool",
                "artist": "Various Artists",
                "year": "2005",
                "media": [
                ],
                "images": [
                    {
                        "url": "http://api.onemusicapi.com/20150623/images/asin/B0009UBT5G.jpg",
                        "width": "500",
                        "height": "500"
                    }
                ],
                "uris": [
                ],
                "score": 1
            }
        ],
        "uris": [
        ]
    }
]


You can see we have also added the source URI for the data for the track in this case MusicBrainz recording IDs.

In addition
- maxResultCount is now supported for tracks, to get more than one result
- Tags and fingerprints can be supplied together, in which case the tags are used to filter the fingerprint results

Let me know what you think!
Dan
Reply all
Reply to author
Forward
0 new messages