Shazam API

GRATIS CON POSSIBILITÀ DI UPGRADE
Da DiyorjonAxmadjonov | Aggiornamento לפני חודשיים | Music
Popolarità

9.5 / 10

Latenza

1,745ms

Livello di servizio

98%

Health Check

100%

Torna a tutte le discussioni

Similar Songs bugged

Rapid account: Kashyaptan 2004 Bkgjw Qh G 150
kashyaptan2004-BkgjwQhG150
לפני 4 חודשים

I hard coded the api to make to so that it only returned similar songs for a specific track_id that i picked (this track id worked when i tested it on the website). But on my actual website, it returns the data as undefined eventhough when i look at my network, the api returns a status code 200. Is this a bug with the actual api?

Rapid account: Diyorbekkanal
diyorbekkanal Commented לפני 3 חודשים

Technical work is completed, you can test the API )

https://rapidapi.com/diyorbekkanal/api/shazam-api6

Rapid account: Espinallab
espinallab Commented לפני 4 חודשים

I’m having the same issue with this API. Something changed recently that is causing issues and the API is returning data as undefined as this user is reporting. Also I tried running my script today and now the API is down. I’m getting the following error message in the console:

{
“messages”: “The API is unreachable, please contact the API provider”,
“info”: “Your Client (working) —> Gateway (working) —> API (not working)”
}

Please can you investigate what’s going on? Thank you.

Rapid account: Diyorbekkanal
diyorbekkanal Commented לפני 4 חודשים

then you change your code

Rapid account: Kashyaptan 2004 Bkgjw Qh G 150
kashyaptan2004-BkgjwQhG150 Commented לפני 4 חודשים

It is only happing in my code, it works on the rapidapi vsc extension and also on website.

Rapid account: Diyorbekkanal
diyorbekkanal Commented לפני 4 חודשים

is this only happening in your code or also when you test on rapidapi.com?

Rapid account: Kashyaptan 2004 Bkgjw Qh G 150
kashyaptan2004-BkgjwQhG150 Commented לפני 4 חודשים

import { createApi, fetchBaseQuery } from ‘@reduxjs/toolkit/query/react’;

export const shazamApi = createApi({
reducerPath: ‘shazamApi’,
baseQuery: fetchBaseQuery({
baseUrl: ‘https://shazam-api6.p.rapidapi.com/shazam/’,
prepareHeaders: (headers) => {
headers.set(‘X-RapidAPI-Key’, ‘5af55334cbmsh6c9dd08dc73079cp152cdbjsn87281ce127b8’);
return headers;
},
}),
endpoints: (builder) => ({
getTopCharts: builder.query({
query: () => /top_tracks_country?country_code=US&limit=20,
}),
getTracks: builder.query({
query: (searchQuery) => /search_track/?query=${searchQuery}&limit=6,
}),
getSimilarSongs: builder.query({
query: (trackid) => /similar_tracks/?track_id=${trackid}&limit=8&offset=0,
}),
}),
});

export const { useGetTopChartsQuery, useGetTracksQuery, useGetSimilarSongsQuery} = shazamApi;
This is the api code

This is me hard coding the trackID:

const testSongId = 673104339
const { similarSongsData: songData, isFetchingSong, similarSongError } = useGetSimilarSongsQuery(testSongId);
console.log(songData)

i hard coded the trackID to test what the api was returning and sondData keeps returning undefined.

Rapid account: Diyorbekkanal
diyorbekkanal Commented לפני 4 חודשים

Can you send a screenshoot please

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti