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

12 lines · 420 B · TypeScript
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)
}