SKSeed

public struct SKSeed : JSONDecodable

A structure representing a Spotify media item used to generate a list of recommended tracks.

See also

The Web API Recommendations Seed object.
  • Undocumented

    See more

    Declaration

    Swift

    public enum SeedType : String, Codable
  • The number of tracks available after min* and max* filters have been applied.

    Declaration

    Swift

    public let afterFilteringSize: Int
  • The number of tracks available after relinking for regional availability.

    Declaration

    Swift

    public let afterRelinkingSize: Int
  • The number of recommended tracks available for this seed.

    Declaration

    Swift

    public let initialPoolSize: Int
  • id

    The id used to select this seed. This will be the same as the string used in the seed_artists, seed_tracks or seed_genres request parameter.

    Declaration

    Swift

    public let id: String
  • The entity type of this seed. One of artist, track or genre.

    Declaration

    Swift

    public let type: SeedType
  • url

    A link to the full track or artist data for this seed. For tracks, this will be a link to a full track; for artists, a link to a full artist; for genre seeds, this value will be nil.

    Declaration

    Swift

    public let url: URL?