← Public packages
@kody/spotify
Read a Spotify profile, search the catalog, and manage library, playlists, devices, and playback.
Files
import { getTracks } from '../lib/spotify-api.ts'
import type { GetTrackParams } from '../lib/export-types.ts'
/**
* Read Spotify track details for one or more track IDs.
* @example
* import getTrack from 'kody:@kody/spotify/get-track'
* const tracks = await getTrack({ ids: ['4cOdK2wGLETKBW3PvgPWqT'] })
*/
export default async function spotifyGetTrack(params: GetTrackParams) {
return await getTracks(params)
}