Interface TracksSpotifyService


  • public interface TracksSpotifyService
    • Method Detail

      • getTrackAudioAnalysis

        @GET("audio-analysis/{id}")
        retrofit2.Call<AudioAnalysisTrack> getTrackAudioAnalysis​(@Path("id")
                                                                 String id)
        Get a detailed audio analysis for a single track identified by its unique Spotify ID.
        Parameters:
        id - The Spotify ID for the track.
        Returns:
        Audio analysis object
        See Also:
        Get Audio Analysis for a Track
      • getTrackAudioFeatures

        @GET("audio-features/{id}")
        retrofit2.Call<AudioFeaturesTrack> getTrackAudioFeatures​(@Path("id")
                                                                 String id)
        Get audio feature information for a single track identified by its unique Spotify ID.
        Parameters:
        id - The Spotify ID for the track.
        Returns:
        Audio features object
        See Also:
        Get Audio Features for a Track
      • getTracksAudioFeatures

        @GET("audio-features")
        retrofit2.Call<AudioFeaturesTracks> getTracksAudioFeatures​(@Query("ids")
                                                                   String ids)
        Get audio features for multiple tracks based on their Spotify IDs.
        Parameters:
        ids - A comma-separated list of the Spotify IDs for the tracks. Maximum: 100 IDs
        Returns:
        An object whose key is "audio_features" and whose value is an array of audio features objects.
        See Also:
        Get Audio Features for Several Tracks
      • getTrack

        @GET("tracks/{id}")
        retrofit2.Call<Track> getTrack​(@Path("id")
                                       String trackId)
        Get Spotify catalog information for a single track identified by their unique Spotify ID.
        Parameters:
        trackId - The Spotify ID for the track.
        Returns:
        Requested track information
        See Also:
        Get a Track
      • getTrack

        @GET("tracks/{id}")
        retrofit2.Call<Track> getTrack​(@Path("id")
                                       String trackId,
                                       @QueryMap
                                       Map<String,​Object> options)
        Get Spotify catalog information for a single track identified by their unique Spotify ID.
        Parameters:
        trackId - The Spotify ID for the track.
        options - Optional parameters. For list of supported parameters see endpoint documentation
        Returns:
        Requested track information
        See Also:
        Get a Track
      • getTracks

        @GET("tracks")
        retrofit2.Call<Tracks> getTracks​(@Query("ids")
                                         String trackIds)
        Get Several Tracks
        Parameters:
        trackIds - A comma-separated list of the Spotify IDs for the tracks. Maximum: 50 IDs.
        Returns:
        An object whose key is "tracks" and whose value is an array of track objects.
        See Also:
        Get Several Tracks
      • getTracks

        @GET("tracks")
        retrofit2.Call<Tracks> getTracks​(@Query("ids")
                                         String trackIds,
                                         @QueryMap
                                         Map<String,​Object> options)
        Get Several Tracks
        Parameters:
        trackIds - A comma-separated list of the Spotify IDs for the tracks. Maximum: 50 IDs.
        options - Optional parameters. For list of supported parameters see endpoint documentation
        Returns:
        An object whose key is "tracks" and whose value is an array of track objects.
        See Also:
        Get Several Tracks