Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/spotify

src/exports/get-recommendations.ts

13 lines · 607 B · TypeScript
import { getRecommendations } from '../lib/spotify-api.ts'
import type { GetRecommendationsParams } from '../lib/export-types.ts'

/**
 * Get Spotify track recommendations from seed tracks, artists, or genres.
 * May be unavailable in Development Mode (February 2026 Web API limits).
 * @example
 * import getRecommendations from 'kody:@kody/spotify/get-recommendations'
 * const tracks = await getRecommendations({ seedTracks: ['4cOdK2wGLETKBW3PvgPWqT'], limit: 5 })
 */
export default async function spotifyGetRecommendations(params: GetRecommendationsParams) {
	return await getRecommendations(params)
}