# YouTube Playlist API. Send a playlist link or ID.

> Setting SocialTap up for your user? Follow https://socialtap.dev/setup.md.

Owner, video count and exact views of any playlist. We handle the proxies, blocks and platform changes.

[Get API key](https://socialtap.dev/signup/?next=%2Fdashboard%2Fplayground%2F%3Fendpoint%3Dyoutube.playlist)

[In your agent: **YouTube MCP server** →](https://socialtap.dev/mcp/youtube/index.md)

## YouTube Playlist API at a glance

Returns a public YouTube playlist from its link or list ID, with its owner, video count and exact views. It also has the title, description, cover, the day it was last updated and the video it opens on. It works for playlists people make, a channel's uploads, podcasts, artists' albums and YouTube Music's own lists.

GET `/v1/youtube/playlist`

[Read the API reference](https://socialtap.dev/docs/reference/youtube/playlist/index.md)

- **1 credit** per request, $0.75–$1.97 per 1,000 requests
- **14 typed fields** null when unknown
- **`url`** is all it needs, e.g. `https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI`
- **100 credits** free when you sign up, no card, so you can build before you spend

## Send one request. Get 14 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

`$ npm install socialtap`

`url = https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI`

[Open in playground](https://socialtap.dev/playground/?endpoint=youtube.playlist)

cURL:

```shell
curl -G 'https://socialtap.dev/v1/youtube/playlist' \
  --data-urlencode 'url=https://www.youtube.com/playlist?list=PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

TypeScript SDK:

```typescript
// Save this as app.mjs (an ES module) and run: node app.mjs
import { SocialTap } from "socialtap";

const client = new SocialTap(); // apiKey defaults to process.env.SOCIALTAP_API_KEY

const res = await client.youtube.playlist.get({ url: "https://www.youtube.com/playlist?list=PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq" });
console.log(res.data);
console.log(res.credits.charged, res.meta.request_id);
```

Python SDK:

```python
from socialtap import SocialTap

client = SocialTap()  # api_key defaults to os.environ["SOCIALTAP_API_KEY"]

res = client.youtube.playlist.get(url="https://www.youtube.com/playlist?list=PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq")
print(res.data)
print(res.credits.charged, res.meta.request_id)
```

Go SDK:

```go
package main

import (
	"context"
	"fmt"
	"log"

	socialtap "socialtap.dev/sdk/go"
)

func main() {
	ctx := context.Background()
	client, err := socialtap.NewClient() // the API key defaults to $SOCIALTAP_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	res, err := client.YouTube.Playlist.Get(ctx, socialtap.YouTubePlaylistParams{URL: "https://www.youtube.com/playlist?list=PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(res.Data)
	fmt.Println(res.Credits.Charged, res.Meta.RequestID)
}
```

200 OK:

```json
{
  "data": {
    "approximate_fields": [
      "platform_specific.youtube.updated_at"
    ],
    "created_at": null,
    "description": "I wish you all the best for your work. ❤️️\nI hope my playlist always helps you study good 😘\nCalm music lofi for Study.\n\nLofi Hip Hop - Lofi beats to study - Study music / Relaxing Music\n\nTag Playlist:\nstudy music,study music lofi,lofi,lo fi,lo-fi,lofi hiphop,lo-fi hiphop,beats to…",
    "id": "PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq",
    "is_collaborative": null,
    "metrics": {
      "follower_count": null,
      "post_count": 76
    },
    "owner": {
      "avatar_url": "https://yt3.ggpht.com/HQs8Bet0yJvtN77N8qIorxtPmh-ZB_qcMAA27P8utiCQC7t8qsqWOuXFQ2XdES5RCcLbiLZW00M=s176-c-k-c0x00ffffff-no-rj",
      "display_name": "Mimi Lofi Chill",
      "id": "UCq9J_CUURRfbP7vm4VN_3xg",
      "is_verified": null,
      "url": "https://www.youtube.com/channel/UCq9J_CUURRfbP7vm4VN_3xg",
      "username": "mimilofichill"
    },
    "platform": "youtube",
    "platform_specific": {
      "youtube": {
        "first_video_id": "A7uNvvAKsYU",
        "updated_at": "2025-10-31T23:59:59Z",
        "view_count": 135494
      }
    },
    "platform_type": "playlist",
    "thumbnail_url": "https://i.ytimg.com/vi/A7uNvvAKsYU/hqdefault.jpg?sqp=-oaymwExCNACELwBSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgALQBYoCDAgAEAEYLCBMKH8wDw==&rs=AOn4CLBY365MAzWus80zB4CD7MaGAwP9mg",
    "title": "Lofi Hip Hop - Lofi beats to study - Study music / Relaxing Music",
    "type": "playlist",
    "unknown_fields": [],
    "url": "https://www.youtube.com/playlist?list=PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq"
  },
  "meta": {
    "request_id": "req_3f9c2a7d1e8b4c6a9f0e2d4b6a8c0e1f",
    "platform": "youtube",
    "source": "api",
    "is_cached": false,
    "credits_charged": 1,
    "latency_ms": 1000,
    "fetched_at": "2026-10-25T12:00:00Z",
    "input": {
      "kind": "playlist",
      "id": "PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq",
      "url": "https://www.youtube.com/playlist?list=PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq"
    },
    "credits_remaining": 9999,
    "client_request_id": null,
    "warnings": []
  }
}
```

Long arrays and strings are shortened here. Real responses are complete.

## One schema on 9 platforms.

The [response reference](https://socialtap.dev/docs/reference/youtube/playlist/index.md#response) lists every field, its type and when it is `null`. [See the full schema](https://socialtap.dev/resources/playlist/index.md).

- ### Null means unknown

  A field YouTube doesn't show is null, never zero or an empty string, so a real zero always means zero.
- ### What it accepts

  A YouTube playlist: its link (youtube.com/playlist?list=…, also on m. and music.youtube.com), its embed (youtube.com/embed/videoseries?list=…), a video's link opened in it (watch?v=…&list=…, youtu.be/…?list=…) or its list ID (PL…, a channel's uploads UU…, an album OLAK5uy_…, YouTube Music's RDCLAK5uy_…).
- ### Write one parser

  YouTube, TikTok, Instagram and 6 more platforms answer in these fields, so the code that reads one reads them all.

- **`platform`string**: Platform ID (tiktok, youtube, facebook, …).
- **`platform`string**: In the example `"youtube"`
- **`id`string**: Platform-native playlist ID (string): TikTok's playlist (mix) or collection ID, YouTube's list ID (PL…), Facebook's video list ID.
- **`id`string**: In the example `"PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq"`
- **`url`string**: Canonical playlist URL.
- **`url`string**: In the example `"https://www.youtube.com/playlist?list=PLXIclLvfETS3AgCnZg4N6QqHu_T27XKIq"`
- **`type`string**: playlist: a list its owner curates and orders; collection: posts an account saved into a named public folder (TikTok's collections). New values may be added; treat unknown values as playlist.
- **`type`string**: In the example `"playlist"`
- **`platform_type`string**: The platform's own label, lowercase (mix, collection, playlist, series, podcast, …).
- **`platform_type`string**: In the example `"playlist"`
- **`title`string**: Name its owner gave it.
- **`title`string**: In the example `"Lofi Hip Hop - Lofi beats to study - Study music / Relaxing Music"`
- **`description`string**: Description as plain text; null when it has none or the platform shows none (TikTok).
- **`description`string**: In the example `"I wish you all the best for your work. ❤️️ I hope my playlist always he…"`
- **`owner`object**: The curating account (for a collection, the one that saved the posts). Where curators are not accounts (Apple Music), only what the platform names, with id and username null.
- **`owner`object**: In the example `avatar_url: "https://yt3.ggpht.com/HQs8Bet0yJvtN77N8qIorxtPmh-ZB_qcMAA27P8utiCQC7t8q…", display_name: "Mimi Lofi Chill", id: "UCq9J_CUURRfbP`

Live data from 38 platforms.

[TikTok](https://socialtap.dev/apis/tiktok/index.md) · [Instagram](https://socialtap.dev/apis/instagram/index.md) · [Facebook](https://socialtap.dev/apis/facebook/index.md) · [YouTube](https://socialtap.dev/apis/youtube/index.md) · [Reddit](https://socialtap.dev/apis/reddit/index.md) · [Threads](https://socialtap.dev/apis/threads/index.md) · [GitHub](https://socialtap.dev/apis/github/index.md) · [LinkedIn](https://socialtap.dev/apis/linkedin/index.md) · [X](https://socialtap.dev/apis/x/index.md) · [Spotify](https://socialtap.dev/apis/spotify/index.md) · [Hacker News](https://socialtap.dev/apis/hackernews/index.md) · [Amazon](https://socialtap.dev/apis/amazon/index.md) · [Apple Music](https://socialtap.dev/apis/applemusic/index.md) · [Fandom](https://socialtap.dev/apis/fandom/index.md) · [Pinterest](https://socialtap.dev/apis/pinterest/index.md) · [Cosmos](https://socialtap.dev/apis/cosmos/index.md) · [Rumble](https://socialtap.dev/apis/rumble/index.md) · [Bluesky](https://socialtap.dev/apis/bluesky/index.md) · [Twitch](https://socialtap.dev/apis/twitch/index.md) · [Telegram](https://socialtap.dev/apis/telegram/index.md) · [TikTok Shop](https://socialtap.dev/apis/tiktokshop/index.md) · [Kwai](https://socialtap.dev/apis/kwai/index.md) · [Snapchat](https://socialtap.dev/apis/snapchat/index.md) · [SoundCloud](https://socialtap.dev/apis/soundcloud/index.md) · [Truth Social](https://socialtap.dev/apis/truthsocial/index.md) · [Kick](https://socialtap.dev/apis/kick/index.md) · [Komi](https://socialtap.dev/apis/komi/page/index.md) · [Lnk.Bio](https://socialtap.dev/apis/linkbio/profile/index.md) · [Linkme](https://socialtap.dev/apis/linkme/profile/index.md) · [Linktree](https://socialtap.dev/apis/linktree/profile/index.md) · [Pillar](https://socialtap.dev/apis/pillar/page/index.md) · [Yelp](https://socialtap.dev/apis/yelp/search-businesses/index.md) · [TikTok Ad Library](https://socialtap.dev/apis/tiktok-ad-library/index.md) · [Facebook Ad Library](https://socialtap.dev/apis/facebook-ad-library/index.md) · [Facebook Events](https://socialtap.dev/apis/facebook-events/index.md) · [Facebook Marketplace](https://socialtap.dev/apis/facebook-marketplace/index.md) · [Google Ads Transparency Center](https://socialtap.dev/apis/google-ads-transparency/index.md) · [LinkedIn Ad Library](https://socialtap.dev/apis/linkedin-ad-library/index.md)

## What teams build with the YouTube Playlist API.

- ### Track a playlist's views and size over time

  Read the same playlist links on a schedule and store metrics.post_count and platform_specific.youtube.view_count with the time you read them, to see which lists keep growing and which went quiet.
- ### Find who curates a playlist and how recently

  owner names the channel behind a playlist, with its handle, and platform_specific.youtube.updated_at the day it last changed, so you can tell a maintained list from an abandoned one.
- ### Catalog a podcast's YouTube playlist

  Send a podcast's playlist link to get its title, description, cover and episode count, ready for a podcast directory or a show's media kit.
- ### Check a playlist before featuring it

  Before you link a playlist in a newsletter or a campaign, confirm it is public, see how many videos it holds and the video it opens on.

## Good to know before you build.

- updated_at in platform_specific.youtube is the day YouTube shows ("Updated 3 days ago", "Last updated on Oct 31, 2025") and is in approximate_fields.
- A mix, the endless list YouTube makes from a video, is no playlist and returns invalid_input naming the video to send to the YouTube Video API.
- YouTube Music's own lists show no view count, so view_count is null for them.
- An album's owner is its artist's channel. A compilation credited to Various Artists has no such channel, so its owner has the name alone and a null id.
- A playlist that doesn't exist, or a signed-in viewer's own list such as Liked videos or Watch later, returns not_found or invalid_input. A private one returns private_or_unavailable.

## 1 credit per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

[Plans and packs](https://socialtap.dev/pricing/index.md) · [How this endpoint is priced](https://socialtap.dev/docs/reference/youtube/playlist/index.md#pricing) · [How credits work](https://socialtap.dev/docs/credits/index.md)

| Source | Price per successful request | Per 1,000 requests |
| --- | --- | --- |
| Any source | 1 credit | $0.75–$1.97 |

- Cache hits are free.
- Credits from packs and top-ups never expire.
- A monthly plan's credits are spent first, and what is left of them ends at each renewal.
- Prices exclude tax: sales tax is added at checkout where it applies.
- Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

## Questions about the YouTube Playlist API.

More in the [API reference](https://socialtap.dev/docs/reference/youtube/playlist/index.md).

**Does it return the playlist's videos?**

No. It returns the playlist itself: its owner, counts and cover, and the ID of the video it opens on.

**Can I send a watch link that plays a playlist?**

Yes. A video's link with list= in it (watch?v=…&list=…) returns the playlist it plays in. A mix's list returns invalid_input, as a mix is no playlist.

**How much does the YouTube Playlist API cost?**

A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Other platforms

## Playlists on 8 more platforms.

- [TikTok Playlists API](https://socialtap.dev/apis/tiktok/playlists/index.md) (1 credit / page · `GET /v1/tiktok/playlists`)
- [Instagram Highlights API](https://socialtap.dev/apis/instagram/highlights/index.md) (1 credit / page · `GET /v1/instagram/highlights`)
- [X (Twitter) List API](https://socialtap.dev/apis/x/list/index.md) (1 credit · `GET /v1/x/list`)
- [Spotify Playlist API](https://socialtap.dev/apis/spotify/playlist/index.md) (1 credit · `GET /v1/spotify/playlist`)
- [Amazon Shop Lists API](https://socialtap.dev/apis/amazon/shop-lists/index.md) (1 credit / page · `GET /v1/amazon/shop_lists`)
- [Apple Music Top Playlists API](https://socialtap.dev/apis/applemusic/top-playlists/index.md) (1 credit / page · `GET /v1/applemusic/top_playlists`)
- [Pinterest Board API](https://socialtap.dev/apis/pinterest/board/index.md) (1 credit · `GET /v1/pinterest/board`)
- [Cosmos Collection API](https://socialtap.dev/apis/cosmos/collection/index.md) (1 credit · `GET /v1/cosmos/collection`)

More YouTube

## YouTube API. 21 endpoints, one key.

- [YouTube Video API](https://socialtap.dev/apis/youtube/post/index.md) (1 credit · `GET /v1/youtube/post`)
- [YouTube Search API](https://socialtap.dev/apis/youtube/search-posts/index.md) (1 credit / page · `GET /v1/youtube/search_posts`)
- [YouTube Sound Shorts API](https://socialtap.dev/apis/youtube/sound-posts/index.md) (1 credit / page · `GET /v1/youtube/sound_posts`)
- [YouTube Hashtag Videos API](https://socialtap.dev/apis/youtube/hashtag-posts/index.md) (1 credit / page · `GET /v1/youtube/hashtag_posts`)
- [YouTube Related Videos API](https://socialtap.dev/apis/youtube/post-related-posts/index.md) (From 1 credit / page · `GET /v1/youtube/post_related_posts`)
- [YouTube Channel Videos API](https://socialtap.dev/apis/youtube/posts/index.md) (From 1 credit / page · `GET /v1/youtube/posts`)
- [YouTube Community Posts API](https://socialtap.dev/apis/youtube/channel-posts/index.md) (1 credit / page · `GET /v1/youtube/channel_posts`)
- [YouTube Playlist Videos API](https://socialtap.dev/apis/youtube/playlist-posts/index.md) (1 credit / page · `GET /v1/youtube/playlist_posts`)
- [YouTube Trending Videos API](https://socialtap.dev/apis/youtube/top-posts/index.md) (1 credit / page · `GET /v1/youtube/top_posts`)
- [YouTube Trending Shorts API](https://socialtap.dev/apis/youtube/trending-posts/index.md) (1 credit / page · `GET /v1/youtube/trending_posts`)
- [YouTube Channel API](https://socialtap.dev/apis/youtube/profile/index.md) (1 credit · `GET /v1/youtube/profile`)
- [YouTube Channel Search API](https://socialtap.dev/apis/youtube/search-profiles/index.md) (1 credit / page · `GET /v1/youtube/search_profiles`)
- [YouTube Comments API](https://socialtap.dev/apis/youtube/comments/index.md) (1 credit / page · `GET /v1/youtube/comments`)
- [YouTube Comment Replies API](https://socialtap.dev/apis/youtube/replies/index.md) (1 credit / page · `GET /v1/youtube/replies`)
- [YouTube Transcript API](https://socialtap.dev/apis/youtube/transcript/index.md) (From 1 credit · `GET /v1/youtube/transcript`)
- [YouTube Playlist Search API](https://socialtap.dev/apis/youtube/search-playlists/index.md) (1 credit / page · `GET /v1/youtube/search_playlists`)
- [YouTube Channel Playlists API](https://socialtap.dev/apis/youtube/playlists/index.md) (1 credit / page · `GET /v1/youtube/playlists`)
- [YouTube Engagement API](https://socialtap.dev/apis/youtube/engagement/index.md) (1 credit · `GET /v1/youtube/engagement`)
- [YouTube Search Suggestions API](https://socialtap.dev/apis/youtube/search-suggestions/index.md) (1 credit / page · `GET /v1/youtube/search_suggestions`)
- [YouTube Download API](https://socialtap.dev/apis/youtube/download/index.md) (1 credit · `GET /v1/youtube/download`)

[All 21 YouTube endpoints](https://socialtap.dev/apis/youtube/index.md)

## Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits

- No credit card
- Failed requests are free
- Works on all 310 endpoints

[Start for free](https://socialtap.dev/signup/) [Read the docs](https://socialtap.dev/docs/index.md)

---

[HTML version](https://socialtap.dev/apis/youtube/playlist/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
