Skip to content
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

Deprecated Spotify APIs Causing Errors: AudioAnalysis, AudioFeature and Recommendations Methods in spotify: ^0.13.7 #225

Open
Prakash251299 opened this issue Dec 5, 2024 · 1 comment

Comments

@Prakash251299
Copy link

Prakash251299 commented Dec 5, 2024

Description:
The AudioAnalysis and AudioFeature API calls in Spotify have been deprecated, resulting in errors when attempting to use these methods in the Flutter Spotify package at lib/src/endpoints/audio_analysis.dart, lib/src/endpoints/audio_features.dart and lib/src/endpoints/recommendations.dart.

Steps to get the error:
Use the AudioAnalysis or AudioFeature method provided by the package.
Run the application and observe the error in the response.

Expected Behavior:
The methods should either function correctly (if alternative endpoints are available) or be removed/deprecated from the package to avoid confusion.

Actual Behavior:
API calls result in errors, likely due to Spotify deprecating these endpoints.

Possible Solution:
Update the package to use Spotify’s recommended alternative APIs (if available).
Clearly mark the methods as deprecated in the documentation and provide guidance on alternatives.
If no alternatives exist, consider removing these methods to prevent usage errors.

Additional Context:
Spotify's API deprecation notice:
https://developer.spotify.com/documentation/web-api/reference/get-audio-features
https://developer.spotify.com/documentation/web-api/reference/get-audio-analysis
https://developer.spotify.com/documentation/web-api/reference/get-recommendations

Version of the Spotify Flutter package being used: [0.13.7].
This issue affects users relying on these methods.

@Prakash251299 Prakash251299 changed the title Deprecated Spotify APIs Causing Errors: AudioAnalysis and AudioFeature Methods in spotify: ^0.13.7 Deprecated Spotify APIs Causing Errors: AudioAnalysis, AudioFeature and Recommendations Methods in spotify: ^0.13.7 Dec 5, 2024
@hayribakici
Copy link
Collaborator

hayribakici commented Dec 5, 2024

@Prakash251299 thank you for pointing this out.
There is a whole bunch of API's that are now deprecated.
Regarding that blog post, there are no alternatives either, which is very unfortunate.

@rinukkusu I suggest not to remove the endpoints, but to mark them as depracated with a clear warning that spotify will shut down these endponts sometime in the future and that our users should use them at their own risk. What do you think?

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

No branches or pull requests

2 participants