# YouTube Playlist Search API. Playlists, podcasts and courses matching your search.

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

Playlists, podcasts and courses by keyword. We handle the proxies, blocks and platform changes.

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

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

## YouTube Playlist Search API at a glance

Returns the YouTube playlists that match a keyword, a page at a time, in YouTube's order or by popularity, for any region. Each has its ID, link, title, full description, channel, cover, video count and first video, and says whether it is a playlist, a podcast or a course.

GET `/v1/youtube/search_playlists`

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

- **1 credit** per page, $0.75–$1.97 per 1,000 pages
- **14 typed fields** null when unknown
- **20** playlists, podcasts and courses per page, YouTube's relevance ranking (its search order)
- **`query`** is all it needs, e.g. `lofi hip hop`

## Send one request. Get up to 20 playlists, podcasts and courses 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`

`query = lofi hip hop`

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

cURL:

```shell
curl -G 'https://socialtap.dev/v1/youtube/search_playlists' \
  --data-urlencode 'query=lofi hip hop' \
  -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.searchPlaylists.list({ query: "lofi hip hop" });
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.search_playlists.list(query="lofi hip hop")
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.SearchPlaylists.List(ctx, socialtap.YouTubeSearchPlaylistsParams{Query: "lofi hip hop"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(res.Data)
	fmt.Println(res.Credits.Charged, res.Meta.RequestID)
}
```

200 OK:

```json
{
  "data": [
    {
      "approximate_fields": [],
      "created_at": null,
      "description": "Kick back and coast to these chillhop and lofi beats.",
      "id": "RDCLAK5uy_kb7EBi6y3GrtJri4_ZH56Ms786DFEimbM",
      "is_collaborative": null,
      "metrics": {
        "follower_count": null,
        "post_count": 86
      },
      "owner": {
        "avatar_url": null,
        "display_name": "YouTube Music",
        "id": "UC-9-kyTW8ZkZNDHQJ6FgpwQ",
        "is_verified": false,
        "url": "https://www.youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ",
        "username": null
      },
      "platform": "youtube",
      "platform_specific": {
        "youtube": {
          "first_video_id": "qboQlr7lAAk",
          "updated_at": null,
          "view_count": null
        }
      },
      "platform_type": "playlist",
      "thumbnail_url": "https://i9.ytimg.com/s_p/RDCLAK5uy_kb7EBi6y3GrtJri4_ZH56Ms786DFEimbM/maxresdefault.jpg?sqp=CLDfrdgGir7X7AMICPyC_dcGEAE=&rs=AOn4CLDlPZ6SjnWQiPNCuTNXNIpBojsdNQ&v=1795113340",
      "title": "Lofi Loft",
      "type": "playlist",
      "unknown_fields": [],
      "url": "https://www.youtube.com/playlist?list=RDCLAK5uy_kb7EBi6y3GrtJri4_ZH56Ms786DFEimbM"
    },
    {
      "approximate_fields": [],
      "created_at": null,
      "description": "Playlist to get you in the mood and vibe to be focused, productive and chill at the same time. Perfect lofi music for work & study.",
      "id": "PLfzxR9TEHkQfFPjC1wfveaO1r81gx-6eL",
      "is_collaborative": null,
      "metrics": {
        "follower_count": null,
        "post_count": 18
      },
      "owner": {
        "avatar_url": null,
        "display_name": "A Lofi Soul",
        "id": "UCinqfJ9-v5-HHqTskU2LlIw",
        "is_verified": false,
        "url": "https://www.youtube.com/channel/UCinqfJ9-v5-HHqTskU2LlIw",
        "username": "A-Lofi-Soul"
      },
      "platform": "youtube",
      "platform_specific": {
        "youtube": {
          "first_video_id": "THh4fT0O7IY",
          "updated_at": null,
          "view_count": null
        }
      },
      "platform_type": "playlist",
      "thumbnail_url": "https://i.ytimg.com/vi/THh4fT0O7IY/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAKS-VMlrcWSSfJAzIWmDcnsTjbgQ",
      "title": "Upbeat Lofi For Work & Study - Boost Mood, Focus & Vibes [neo soul, rnb, lofi hiphop]",
      "type": "playlist",
      "unknown_fields": [],
      "url": "https://www.youtube.com/playlist?list=PLfzxR9TEHkQfFPjC1wfveaO1r81gx-6eL"
    },
    {
      "approximate_fields": [],
      "created_at": null,
      "description": "1 hour lofi mixes",
      "id": "PLF3eNE6vR-4WsBf8qnJLqBywqX39QczxJ",
      "is_collaborative": null,
      "metrics": {
        "follower_count": null,
        "post_count": 75
      },
      "owner": {
        "avatar_url": null,
        "display_name": "the bootleg boy 2",
        "id": "UCwkTfp14Sj7o6q9_8ADJpnA",
        "is_verified": true,
        "url": "https://www.youtube.com/channel/UCwkTfp14Sj7o6q9_8ADJpnA",
        "username": "thebootlegboy2"
      },
      "platform": "youtube",
      "platform_specific": {
        "youtube": {
          "first_video_id": "1TVlO05Ugjw",
          "updated_at": null,
          "view_count": null
        }
      },
      "platform_type": "playlist",
      "thumbnail_url": "https://i.ytimg.com/vi/1TVlO05Ugjw/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLD21TbNM4alSYIuPb7svRS8e_47Ug",
      "title": "1 Hour of Lofi Hip Hop",
      "type": "playlist",
      "unknown_fields": [],
      "url": "https://www.youtube.com/playlist?list=PLF3eNE6vR-4WsBf8qnJLqBywqX39QczxJ"
    }
  ],
  "page": {
    "has_more": true,
    "next_cursor": "c1.EXAMPLE_CURSOR",
    "next_cursor_expires_at": "2026-10-26T12:00:00Z",
    "end_reason": null
  },
  "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": null,
    "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/search-playlists/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

  Words or a name, in any language, matched by YouTube's playlist search as on youtube.com against playlists' titles, descriptions and channels; its operators ("exact phrase", -word) pass through.
- ### 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 `"RDCLAK5uy_kb7EBi6y3GrtJri4_ZH56Ms786DFEimbM"`
- **`url`string**: Canonical playlist URL.
- **`url`string**: In the example `"https://www.youtube.com/playlist?list=RDCLAK5uy_kb7EBi6y3GrtJri4_ZH56Ms…"`
- **`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 Loft"`
- **`description`string**: Description as plain text; null when it has none or the platform shows none (TikTok).
- **`description`string**: In the example `"Kick back and coast to these chillhop and lofi beats."`
- **`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 `display_name: "YouTube Music", id: "UC-9-kyTW8ZkZNDHQJ6FgpwQ", is_verified: false, …`

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 Search API.

- ### Find playlists and podcasts on a topic

  Search a keyword and get matching playlists and podcasts with their titles, channels, video counts and covers, a page at a time.
- ### Find courses to learn a skill

  platform_type tells a course from a playlist or a podcast, so you can keep only the courses on a subject.
- ### Map the channels that curate a niche

  Count the owners across the results for a set of keywords to see which channels keep the playlists people find.
- ### Collect playlist IDs to walk their videos

  Store each result's id and first_video_id, then send them to the YouTube Playlist API for exact views.

## Good to know before you build.

- platform_specific.youtube.updated_at is read from labels such as "Updated 2 days ago" (in approximate_fields), and null when the result shows none; view_count is null: the YouTube Playlist API returns both exactly.
- YouTube's later pages can repeat playlists from earlier pages: deduplicate by id.
- No match returns an empty page. Words YouTube shows only to signed-in adults return private_or_unavailable, though sort=popular can answer them.

## 1 credit per page. 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/search-playlists/index.md#pricing) · [How credits work](https://socialtap.dev/docs/credits/index.md)

| Source | Price per successful page | Per 1,000 pages |
| --- | --- | --- |
| 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 Search API.

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

**Are view counts included?**

No. Search results don't show a playlist's views, so view_count is null. The YouTube Playlist API returns them exactly for one playlist.

**Can results repeat across pages?**

Yes. YouTube's later pages can repeat playlists from earlier pages, so deduplicate by id.

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

A page of up to 20 playlists, podcasts and courses costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

**How do I get the next page?**

Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 1 hour.

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 Search API](https://socialtap.dev/apis/spotify/search-playlists/index.md) (1 credit / page · `GET /v1/spotify/search_playlists`)
- [Amazon Shop Lists API](https://socialtap.dev/apis/amazon/shop-lists/index.md) (1 credit / page · `GET /v1/amazon/shop_lists`)
- [Apple Music Playlist Search API](https://socialtap.dev/apis/applemusic/search-playlists/index.md) (1 credit / page · `GET /v1/applemusic/search_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 API](https://socialtap.dev/apis/youtube/playlist/index.md) (1 credit · `GET /v1/youtube/playlist`)
- [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 with your own search.

Type 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/search-playlists/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
