Shazam

פרמיום
על ידי Api Dojo | מְעוּדכָּן il y a 3 jours | Music
פּוֹפּוּלָרִיוּת

9.8 / 10

חֶבִיוֹן

1,798ms

רמת שירות

99%

Health Check

N/A

חזרה לכל הדיונים

Requests

Rapid account: Cudao 89
cudao89
il y a 3 ans

I do not know how to program in node js but I
can do some things, I managed to do the
search tool but when he does the search, it
turns out that returns all the songs of the
artist and I wanted to just return the music in
particular. example “skrilex mind”, it returns 4
songs and not only just the “mind”.

Rapid account: Cudao 89
cudao89 Commented il y a 3 ans

There’s nothing wrong, I just thought he was just returning to mind the requested song.

Rapid account: Apidojo
apidojo Commented il y a 3 ans

Hello,

It suggests all songs having similar name, what is wrong with it? You may also try the search feature in the official application and experience the same.

Regards.

Rapid account: Cudao 89
cudao89 Commented il y a 3 ans

The code

case ‘shazam’:
if (args.length < 1) return reply(‘Está buscando oq?’)

				 titu = body.split('.shazam ')[1]
				 
  anu = await axios.get(`https://shazam.p.rapidapi.com/search?term=${titu}`, {
					method: 'get',
  headers: {
    'x-rapidapi-key': '4fff59c2demsh5ca4115f86115a6p1532e3jsnbb69b1ab0430',
     'x-rapidapi-host': 'shazam.p.rapidapi.com'
   }
			 	})
			 	
			  const hits = anu.data.tracks.hits.map((hi) => {
			   reply('*Titulo: ' + hi.track.share.subject + '*\n*link: ' + hi.track.share.href + '*')
			  })
			 break 

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות