---
title: "Retrieve Spotify track details"
method: GET
path: "/spotify/track"
tags: ["Spotify"]
---

# Retrieve Spotify track details

`GET /spotify/track`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/spotify/track`
- Auth: API key in header `x-api-key`

Returns Spotify track metadata. Provide either uri or id; defaults to a known public track when omitted.

## Query parameters

- `uri` string
- `id` string

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SpotifyTrackResponseDoc
  - `code` integer: Code is the HTTP status code or a custom code used to indicate the result of the request @example 200
  - `data` SpotifyTrackResponse
    - `album` SpotifySearchResultSummary
      - `description` string: Description text of the result.
      - `externalUrl` string: Link to the result on open.spotify.com.
      - `imageUrl` string: URL of the main image for the result.
      - `images` SpotifyImageAsset[]: Images available for the result, with their sizes.
        - `height` integer: Image height in pixels.
        - `url` string: URL of the image.
        - `width` integer: Image width in pixels.
      - `publisher` string: Publisher or creator name of the result.
      - `subtitle` string: Secondary line shown under the title, such as the artist or creator name.
      - `title` string: Result title as Spotify shows it.
      - `type` string: Kind of result as Spotify labels it, for example `Podcast`.
      - `uri` string: Spotify URI of the result.
    - `artists` SpotifySearchResultSummary[]: Artists credited on the track.
      - `description` string: Description text of the result.
      - `externalUrl` string: Link to the result on open.spotify.com.
      - `imageUrl` string: URL of the main image for the result.
      - `images` SpotifyImageAsset[]: Images available for the result, with their sizes.
        - `height` integer: Image height in pixels.
        - `url` string: URL of the image.
        - `width` integer: Image width in pixels.
      - `publisher` string: Publisher or creator name of the result.
      - `subtitle` string: Secondary line shown under the title, such as the artist or creator name.
      - `title` string: Result title as Spotify shows it.
      - `type` string: Kind of result as Spotify labels it, for example `Podcast`.
      - `uri` string: Spotify URI of the result.
    - `discNumber` integer: Disc number of the track within its album.
    - `durationMs` integer: Track length in milliseconds.
    - `externalUrl` string: Link to the track on open.spotify.com.
    - `id` string: Spotify ID of the track.
    - `imageUrl` string: URL of the track's cover image.
    - `images` SpotifyImageAsset[]: Cover images available for the track, with their sizes.
      - `height` integer: Image height in pixels.
      - `url` string: URL of the image.
      - `width` integer: Image width in pixels.
    - `isExplicit` boolean: Whether Spotify marks the track as explicit.
    - `isPlayable` boolean: Whether the track can be played.
    - `meta` SpotifyTrackMeta
      - `appVersion` string: Version of the Spotify web player the data was read from.
      - `fetchedAt` string: Time the data was fetched, in UTC (RFC 3339).
      - `operationName` string: Name of the Spotify web player operation that returned the data.
    - `name` string: Track title as Spotify shows it.
    - `playabilityReason` string: Reason code Spotify gives for the track's playability, for example `PLAYABLE`.
    - `playcount` string: Number of times the track has been played, as Spotify shows it.
    - `previewAudioUrl` string: URL of an audio preview of the track.
    - `previewAudioUrls` string[]: URLs of the audio previews available for the track.
    - `shareUrl` string: Link to the track that Spotify offers for sharing.
    - `trackNumber` integer: Position of the track within its album.
    - `type` string: Kind of item as Spotify labels it, for example `Track`.
    - `unplayabilityReasons` string[]: Reasons the track cannot be played, such as `not_available_in_region`.
    - `uri` string: Spotify URI of the track.
  - `msg` unknown

## Other responses

- `400`: Missing or invalid parameters
- `429`: Rate limit exceeded
- `503`: Spotify upstream request failed

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/0497899e2016?raw)
