Link Search Menu Expand Document

explore.getTopGenreTracks

Returns top tracks by a given genre.

Example URL

https://api.melodia.io/v1/explore.getTopGenreTracks?genreKey=Rock&count=10

Params

paramrequireddescriptiontype
genreKeyYID associated with given track for which to find similar tracksString
countNNumber of suggested tracks to return (min=1, max=100, default=10)Int

Auth

This service requires authentication. Refer to Authentication for more details.

Sample Response

{
    'statusCode': 200,
    'body': {
        tracks: [
        {
            "trackKey": "MT239432948",
            "title": "Dancing in the Dark",
            "artist": "Bruce Springsteed",
            "artistKey": "MA29FE4f3gXj",
            "SpotifyId": "2kzYH9XR2GOpd3uejKYidf",
            "AppleId": "794563548"
            ...
        },
        {
            "trackKey": "MT23WMd2948",
            "title": "I'm On Fire",
            "artist": "Bruce Springsteed",
            "artistKey": "MA29FE3243gXj",
            "SpotifyId": "2kzYH9XR2GOpd3uejKYidf",
            "AppleId": "794563548"
            ...
        }
    ]
    }
}

Discussion

Call this method to get the top tracks by a given genre. Returned tracks will be ordered by relevancy.

Melodia’s genres cover a wide variety of styles (e.g., Jazz, R&B), languages (e.g., Italian, German), origins (e.g., London, Detroit), and eras (e.g, Early 1980s, 2000s). Note that you will need to pass in the genreKey associated with the genre, which can be found using search.getGenres