---
updatedAt: 2025-03-13T02:16:04.000Z
agentTools:
  projectIndex: https://spotscraper.readme.io/llms.txt
---

# Get playlist tracks

Retrieves all tracks from a specific playlist

> ❗️ 350 Track Limit
>
> This endpoint can only retrieve 350 tracks. Use the offset parameter to fetch more.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "SpotScraper API",
    "description": "API for retrieving Spotify data including albums, artists, playlists, tracks, podcasts, and users",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.spotscraper.com/v1",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/playlists/{id}/tracks": {
      "get": {
        "tags": [
          "Playlists"
        ],
        "summary": "Get playlist tracks",
        "description": "Retrieves all tracks from a specific playlist",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Spotify Playlist ID"
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            },
            "description": "Number of tracks to skip from the beginning"
          }
        ],
        "responses": {
          "200": {
            "description": "Playlist tracks found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaylistTracksResponse"
                }
              }
            }
          },
          "404": {
            "description": "Playlist tracks not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "Track": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Spotify Track ID"
          },
          "uri": {
            "type": "string",
            "description": "Spotify Track URI"
          },
          "name": {
            "type": "string",
            "description": "Track name"
          },
          "popularity": {
            "type": "integer",
            "description": "Track popularity (0-100)"
          },
          "isrc": {
            "type": "string",
            "nullable": true,
            "description": "International Standard Recording Code (ISRC)"
          },
          "metadata": {
            "type": "object",
            "properties": {
              "explicit": {
                "type": "boolean",
                "description": "Whether the track contains explicit content"
              },
              "isPlayable": {
                "type": "boolean",
                "description": "Whether the track is playable"
              },
              "durationMs": {
                "type": "integer",
                "description": "Duration of the track in milliseconds"
              },
              "discNumber": {
                "type": "integer",
                "description": "Disc number of the track"
              },
              "trackNumber": {
                "type": "integer",
                "description": "Track number on the disc"
              },
              "attributes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Track attributes"
              }
            }
          },
          "statistics": {
            "type": "object",
            "properties": {
              "playCount": {
                "type": "integer",
                "description": "Total play count for the track"
              }
            }
          },
          "artists": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Spotify Artist ID"
                },
                "uri": {
                  "type": "string",
                  "description": "Spotify Artist URI"
                },
                "name": {
                  "type": "string",
                  "description": "Artist name"
                },
                "images": {
                  "type": "object",
                  "properties": {
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "width": {
                            "type": "integer"
                          },
                          "height": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "description": "Artists who performed the track"
          },
          "album": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "string",
                "description": "Spotify Album ID"
              },
              "uri": {
                "type": "string",
                "description": "Spotify Album URI"
              },
              "name": {
                "type": "string",
                "description": "Album name"
              },
              "images": {
                "type": "object",
                "properties": {
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string"
                        },
                        "width": {
                          "type": "integer"
                        },
                        "height": {
                          "type": "integer"
                        }
                      }
                    }
                  },
                  "hex": {
                    "type": "string",
                    "description": "Extracted color hex value"
                  }
                }
              },
              "copyright": {
                "type": "string",
                "description": "Album copyright information"
              }
            },
            "description": "Album the track belongs to"
          }
        }
      },
      "PlaylistTracksResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Track"
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "playlist_tracks"
            ]
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "HTTP status code"
          }
        }
      }
    }
  }
}
```