Shazam

부분 유료
Verified
분류별 Api Dojo | 업데이트됨 hace 15 días | Music
인기

9.8 / 10

지연 시간

1,563ms

서비스 수준

99%

Health Check

N/A

모든 토론으로 돌아가기

Youtube link doesn't exist in V2/get-details comparing the deprecated get-details endpoint

Rapid account: Valousecondaire
valousecondaire
hace 3 meses

I call songs/get-details with the key 643447679 (the trackKey of shazam), it return this :
{
“layout”: “5”,
“type”: “MUSIC”,
“key”: “643447679”,
“title”: “Mas yo si me enamoré (Bachata Version)”,
“subtitle”: “Grupo Extra”,
“images”: {
“background”: “https://is1-ssl.mzstatic.com/image/thumb/Music116/v4/cc/1a/f3/cc1af327-1d1b-aa27-0b36-2d0ba1bc1d28/pr_source.png/800x800cc.jpg”,
“coverart”: “https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/23/08/39/23083981-907b-b11a-c22b-8e500f3e57b3/cover.jpg/400x400cc.jpg”,
“coverarthq”: “https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/23/08/39/23083981-907b-b11a-c22b-8e500f3e57b3/cover.jpg/400x400cc.jpg”,
“joecolor”: “b:2a1c29p:ffffffs:fffeect:d4d1d4q:d4d0c4”
},
“share”: {
“subject”: “Mas yo si me enamoré (Bachata Version) - Grupo Extra”,
“text”: “Mas yo si me enamoré (Bachata Version) par Grupo Extra”,
“href”: “https://www.shazam.com/track/643447679/mas-yo-si-me-enamoré-bachata-version”,
“image”: “https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/23/08/39/23083981-907b-b11a-c22b-8e500f3e57b3/cover.jpg/400x400cc.jpg”,
“twitter”: “J’ai utilisé @Shazam pour découvrir Mas yo si me enamoré (Bachata Version) par Grupo Extra.”,
“html”: “https://www.shazam.com/snippets/email-share/643447679?lang=fr-FR&country=FR”,
“avatar”: “https://is1-ssl.mzstatic.com/image/thumb/Music116/v4/cc/1a/f3/cc1af327-1d1b-aa27-0b36-2d0ba1bc1d28/pr_source.png/800x800cc.jpg”,
“snapchat”: “https://www.shazam.com/partner/sc/track/643447679”
},
“hub”: {
“type”: “APPLEMUSIC”,
“image”: “https://images.shazam.com/static/icons/hub/ios/v5/applemusic_{scalefactor}.png”,
“actions”: [
{
“name”: “apple”,
“type”: “applemusicplay”,
“id”: “1658754023”
},
{
“name”: “apple”,
“type”: “uri”,
“uri”: “https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview112/v4/cf/6a/07/cf6a0797-98c1-a81d-a536-db1b41aa8a62/mzaf_9806717674426715934.plus.aac.ep.m4a”
}
],
“options”: [
{
“caption”: “OUVRIR”,
“actions”: [
{
“name”: “hub:applemusic:deeplink”,
“type”: “applemusicopen”,
“uri”: “https://music.apple.com/fr/album/mas-yo-si-me-enamoré-bachata-version/1658752545?i=1658754023&mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_ios&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_ios”
},
{
“name”: “hub:applemusic:deeplink”,
“type”: “uri”,
“uri”: “https://music.apple.com/fr/album/mas-yo-si-me-enamoré-bachata-version/1658752545?i=1658754023&mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_ios&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_ios”
}
],
“beacondata”: {
“type”: “open”,
“providername”: “applemusic”
},
“image”: “https://images.shazam.com/static/icons/hub/ios/v5/overflow-open-option_{scalefactor}.png”,
“type”: “open”,
“listcaption”: “Ouvrir dans Apple Music”,
“overflowimage”: “https://images.shazam.com/static/icons/hub/ios/v5/applemusic-overflow_{scalefactor}.png”,
“colouroverflowimage”: false,
“providername”: “applemusic”
},
{
“caption”: “ACHETER”,
“actions”: [
{
“type”: “uri”,
“uri”: “https://itunes.apple.com/fr/album/mas-yo-si-me-enamoré-bachata-version/1658752545?i=1658754023&mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_ios&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=itunes&itsct=Shazam_ios”
}
],
“beacondata”: {
“type”: “buy”,
“providername”: “itunes”
},
“image”: “https://images.shazam.com/static/icons/hub/ios/v5/itunes-overflow-buy_{scalefactor}.png”,
“type”: “buy”,
“listcaption”: “Acheter sur iTunes”,
“overflowimage”: “https://images.shazam.com/static/icons/hub/ios/v5/itunes-overflow-buy_{scalefactor}.png”,
“colouroverflowimage”: false,
“providername”: “itunes”
}
],
“providers”: [
{
“caption”: “Ouvrir dans Spotify”,
“images”: {
“overflow”: “https://images.shazam.com/static/icons/hub/ios/v5/spotify-overflow_{scalefactor}.png”,
“default”: “https://images.shazam.com/static/icons/hub/ios/v5/spotify_{scalefactor}.png”
},
“actions”: [
{
“name”: “hub:spotify:searchdeeplink”,
“type”: “uri”,
“uri”: “spotify:search:Mas%20yo%20si%20me%20enamor%C3%A9%20%28Bachata%20Version%29%20Grupo%20Extra”
}
],
“type”: “SPOTIFY”
},
{
“caption”: “Ouvrir dans Deezer”,
“images”: {
“overflow”: “https://images.shazam.com/static/icons/hub/ios/v5/deezer-overflow_{scalefactor}.png”,
“default”: “https://images.shazam.com/static/icons/hub/ios/v5/deezer_{scalefactor}.png”
},
“actions”: [
{
“name”: “hub:deezer:searchdeeplink”,
“type”: “uri”,
“uri”: “deezer-query://www.deezer.com/play?query=%7Btrack%3A%27Mas+yo+si+me+enamor%C3%A9+%28Bachata+Version%29%27%20artist%3A%27Grupo+Extra%27%7D”
}
],
“type”: “DEEZER”
}
],
“explicit”: false,
“displayname”: “APPLE MUSIC”
},
“url”: “https://www.shazam.com/track/643447679/mas-yo-si-me-enamoré-bachata-version”,
“artists”: [
{
“id”: “42”,
“adamid”: “370925083”
}
],
“isrc”: “CH9182274013”,
“genres”: {
“primary”: “Latin Urban”
},
“urlparams”: {
"{tracktitle}": “Mas+yo+si+me+enamor%C3%A9+%28Bachata+Version%29”,
"{trackartist}": “Grupo+Extra”
},
“myshazam”: {
“apple”: {
“actions”: [
{
“name”: “myshazam:apple”,
“type”: “uri”,
“uri”: “https://music.apple.com/fr/album/mas-yo-si-me-enamoré-bachata-version/1658752545?i=1658754023&mttnagencyid=s2n&mttnsiteid=125115&mttn3pid=Apple-Shazam&mttnsub1=Shazam_ios&mttnsub2=5348615A-616D-3235-3830-44754D6D5973&itscg=30201&app=music&itsct=Shazam_ios”
}
]
}
},
“albumadamid”: “1658752545”,
“sections”: [
{
“type”: “SONG”,
“metapages”: [
{
“image”: “https://is1-ssl.mzstatic.com/image/thumb/Music116/v4/cc/1a/f3/cc1af327-1d1b-aa27-0b36-2d0ba1bc1d28/pr_source.png/800x800cc.jpg”,
“caption”: “Grupo Extra”
},
{
“image”: “https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/23/08/39/23083981-907b-b11a-c22b-8e500f3e57b3/cover.jpg/400x400cc.jpg”,
“caption”: “Mas yo si me enamoré (Bachata Version)”
}
],
“tabname”: “Titre”,
“metadata”: [
{
“title”: “Album”,
“text”: “El Tiguere presents Bachata PopiWa”
},
{
“title”: “Label”,
“text”: “Urban Latin Records”
},
{
“title”: “Sorti”,
“text”: “2022”
}
]
},
{
“type”: “RELATED”,
“tabname”: “Titres similaires”
}
]
}

So I thought the V2 API use the same method, the parameter of V2/get-details here is “hub” -> “actions” -> “id” of object with name “apple” apparently.
In this case is 1626322688, when I call the V2/get-details with this id I have the following response :

{
“data”: [
{
“id”: “1658754023”,
“type”: “songs”,
“attributes”: {
“hasTimeSyncedLyrics”: false,
“albumName”: “El Tiguere presents Bachata PopiWa”,
“genreNames”: [
“Urbano latino”,
“Music”,
“Latin”
],
“trackNumber”: 7,
“durationInMillis”: 240893,
“releaseDate”: “2022-12-02”,
“isVocalAttenuationAllowed”: false,
“isMasteredForItunes”: false,
“isrc”: “CH9182274013”,
“artwork”: {
“width”: 3000,
“url”: “https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/23/08/39/23083981-907b-b11a-c22b-8e500f3e57b3/cover.jpg/{w}x{h}bb.jpg”,
“height”: 3000,
“textColor3”: “d4d1d4”,
“textColor2”: “fffeec”,
“textColor4”: “d4d0c4”,
“textColor1”: “ffffff”,
“bgColor”: “2a1c29”,
“hasP3”: false
},
“audioLocale”: “es-ES”,
“composerName”: “Alejandro Jaen & William Paz”,
“url”: “https://music.apple.com/us/album/mas-yo-si-me-enamoré-bachata-version/1658752545?i=1658754023”,
“playParams”: {
“id”: “1658754023”,
“kind”: “song”
},
“discNumber”: 1,
“hasCredits”: false,
“hasLyrics”: false,
“isAppleDigitalMaster”: false,
“audioTraits”: [
“lossless”,
“lossy-stereo”
],
“name”: “Mas yo si me enamoré (Bachata Version)”,
“previews”: [
{
“url”: “https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview112/v4/cf/6a/07/cf6a0797-98c1-a81d-a536-db1b41aa8a62/mzaf_9806717674426715934.plus.aac.ep.m4a”
}
],
“artistName”: “Grupo Extra”
},
“relationships”: {
“albums”: {
“data”: [
{
“id”: “1658752545”,
“type”: “albums”
}
]
},
“artists”: {
“data”: [
{
“id”: “370925083”,
“type”: “artists”
}
]
}
}
}
]
}

but there’s not as much information as the deprecated get-details API. is this normal? for example, I don’t have the youtube link even though it’s present on shazam if you go to the link I sent you in my previous message.

Regards

Rapid account: Valousecondaire
valousecondaire Commented hace 3 meses

Ok thank you for your answer !

Regards

Rapid account: Apidojo
apidojo Commented hace 3 meses

Hello,

WIth the new system of Shazam, you will have to call three endpoints to get information as same as in v1 endpoint:
…/songs/v2/get-details
…/shazam-songs/get-details
and an endpoint to get youtube link is under development.

This change was made by the official developer of Shazam, we have nothing to deal with it.

Regards.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입