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-playlist.ts

12 lines · 455 B · TypeScript
import { getPlaylist } from '../lib/spotify-api.ts'
import type { PlaylistIdParams } from '../lib/export-types.ts'

/**
 * Read a Spotify playlist summary and up to 100 track previews.
 * @example
 * import getPlaylist from 'kody:@kody/spotify/get-playlist'
 * const playlist = await getPlaylist({ playlistId: '37i9dQZF1DXcBWIGoYBM5M' })
 */
export default async function spotifyGetPlaylist(params: PlaylistIdParams) {
	return await getPlaylist(params)
}