Search + K

Command Palette

Search for a command to run...

Sign In

Get Track

GET /tracks/{id}
Copy endpoint
https://api.spotify.com/v1

Get Spotify catalog information for a single track identified by its unique Spotify ID.

Parameters

path Path Parameters

Name Type
id required
string

query Query Parameters

Name Type
market
string

Responses

200 application/json

A track

interface TrackObject {
album?: SimplifiedAlbumObject
type SimplifiedAlbumObject = AlbumBase & { artists: SimplifiedArtistObject[]; }
;
artists?: SimplifiedArtistObject
interface SimplifiedArtistObject {
external_urls?: ExternalUrlObject;
href?: string;
id?: string;
name?: string;
type?: "artist";
uri?: string;
}
[]
;
available_markets?: string[];
disc_number?: number;
duration_ms?: number;
explicit?: boolean;
external_ids?: ExternalIdObject
interface ExternalIdObject {
isrc?: string;
ean?: string;
upc?: string;
}
;
external_urls?: ExternalUrlObject
interface ExternalUrlObject {
spotify?: string;
}
;
href?: string;
id?: string;
is_playable?: boolean;
linked_from?: {};
restrictions?: TrackRestrictionObject
interface TrackRestrictionObject {
reason?: string;
}
;
name?: string;
popularity?: number;
preview_url?: string | null;
track_number?: number;
type?: "track";
uri?: string;
is_local?: boolean;
}

Client Errors

401 application/json

Bad or expired token. This can happen if the user revoked a token or the access token has expired. You should re-authenticate the user.

{ error: ErrorObject
interface ErrorObject {
status: number;
message: string;
}
; }
403 application/json

Bad OAuth request (wrong consumer key, bad nonce, expired timestamp...). Unfortunately, re-authenticating the user won't help here.

{ error: ErrorObject
interface ErrorObject {
status: number;
message: string;
}
; }
429 application/json

The app has exceeded its rate limits.

{ error: ErrorObject
interface ErrorObject {
status: number;
message: string;
}
; }