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

# Retrieve Spotify recommended tracks

`GET /spotify/track/recommended`

## Request

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

Returns Spotify's recommendations for a track, given its URI, `open.spotify.com` URL or track id. Each recommendation has a type, title, subtitle, description, Spotify URI, external URL and images. `limit` is clamped to 1-50 and defaults to 5.

## Query parameters

- `uri` string
- `id` string
- `limit` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SpotifyTrackRecommendedResponseDoc
  - `code` integer: Code is the HTTP status code or a custom code used to indicate the result of the request @example 200
  - `data` SpotifyTrackRecommendedResponse
    - `limit` integer: Maximum number of recommendations requested.
    - `meta` SpotifyTrackRecommendedMeta
      - `appVersion` string: Version of the Spotify web player the data was read from.
      - `count` integer: Number of recommendations returned.
      - `fetchedAt` string: Time the data was fetched, in UTC (RFC 3339).
      - `operationName` string: Name of the Spotify web player operation that returned the data.
    - `recommendations` SpotifyRecommendationSummary[]: Items Spotify recommends for the track.
      - `description` string: Description text of the recommended item.
      - `externalUrl` string: Link to the recommended item on open.spotify.com.
      - `imageUrl` string: URL of the main image for the recommended item.
      - `images` SpotifyImageAsset[]: Images available for the recommended item, 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 recommended item.
      - `subtitle` string: Secondary line shown under the title, such as the creator name.
      - `title` string: Title of the recommended item as Spotify shows it.
      - `type` string: Kind of item as Spotify labels it, for example `Podcast`.
      - `uri` string: Spotify URI of the recommended item.
    - `uri` string: Spotify URI of the track the recommendations are for.
  - `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)
