Skip to content

Lyrics not found #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zhane123 opened this issue Feb 20, 2024 · 3 comments
Open

Lyrics not found #42

zhane123 opened this issue Feb 20, 2024 · 3 comments

Comments

@zhane123
Copy link

zhane123 commented Feb 20, 2024

The original lyrics api has depreciated and new one is https://shazam-core.p.rapidapi.com/v2/tracks/details'

However it still does not work?

My shazamCore Code looks like this:

`import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";

export const shazamCoreApi = createApi({
reducerPath: "shazamCoreApi",
baseQuery: fetchBaseQuery({
baseUrl: "https://shazam-core.p.rapidapi.com/",
prepareHeaders: (headers) => {
headers.set(
"X-RapidAPI-Key",
"e919fc6e47msh434a4c7817b528dp1d9dc2jsn46121b2f2e3d"
);
return headers;
},
}),
endpoints: (builder) => ({
getTopCharts: builder.query({ query: () => "v1/charts/world" }),
getSongsByGenre: builder.query({
query: (genre) => v1/charts/genre-world?genre_code=${genre},
}),
getSongsByCountry: builder.query({
query: (countryCode) => v1/charts/country?country_code=${countryCode},
}),
getSongsBySearch: builder.query({
query: (searchTerm) =>
v1/search/multi?search_type=SONGS_ARTISTS&query=${searchTerm},
}),
getArtistDetails: builder.query({
query: (artistId) => v2/artists/details?artist_id=${artistId},
}),
getSongDetails: builder.query({
query: ({ songid }) => v2/tracks/details?track_id=${songid},
}),
getSongRelated: builder.query({
query: ({ songid }) => v1/tracks/related?track_id=${songid},
}),
}),
});

export const {
useGetTopChartsQuery,
useGetSongsByGenreQuery,
useGetSongsByCountryQuery,
useGetSongsBySearchQuery,
useGetArtistDetailsQuery,
useGetSongDetailsQuery,
useGetSongRelatedQuery,
} = shazamCoreApi;
`

What am I doing wrong?

@rishu15
Copy link

rishu15 commented Mar 8, 2024

I have the same issue, apparently shazam core api does not provide lyrics anymore.
Navigate to https://rapidapi.com/tipsters/api/shazam-core and test the "Track Details" endpoint by track id
the result does not contain lyrics

@shubhamrathod0015
Copy link

@zhane123 and @rishu15 did you solve your problem or not

@kritikatripathi03
Copy link

I have the same issue, apparently shazam core api does not provide lyrics anymore. Navigate to https://rapidapi.com/tipsters/api/shazam-core and test the "Track Details" endpoint by track id the result does not contain lyrics

Faced the same issue, I believe this is the reason as I verified it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants