# Recover Deleted Video Positions in YouTube Playlists

**Use case:** 

Identify missing or deleted entries in any public YouTube playlist to repair or snapshot curated collections. This task returns the real position, video ID, and thumbnail URL for unavailable items, alongside playlist metadata and uploader details. Change the includeUnavailableVideos flag to see placeholders for private or removed content.

## Input

```json
{
  "playlistUrls": [
    "https://www.youtube.com/playlist?list=PL-osiE80TeTt2d9bfVyTiXJA-UTHn6WwU"
  ],
  "maxPlaylists": 100,
  "maxSearchResults": 20,
  "maxVideos": 100,
  "includeUnavailableVideos": true,
  "includeVideoDetails": false
}
```

## Output

```json
{
  "recordType": {
    "label": "Type",
    "format": "text"
  },
  "position": {
    "label": "#",
    "format": "number"
  },
  "videoId": {
    "label": "Video ID",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "duration": {
    "label": "Duration",
    "format": "text"
  },
  "durationSeconds": {
    "label": "Duration seconds"
  },
  "isAvailable": {
    "label": "Available",
    "format": "boolean"
  },
  "isLiveContent": {
    "label": "Is live content"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "viewCountText": {
    "label": "View count text"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "publishedAt": {
    "label": "Published",
    "format": "text"
  },
  "publishedTimeText": {
    "label": "Published time text"
  },
  "videoDescription": {
    "label": "Video description"
  },
  "videoCategory": {
    "label": "Video category"
  },
  "videoKeywords": {
    "label": "Video keywords"
  },
  "videoChannelName": {
    "label": "Video channel name"
  },
  "videoChannelId": {
    "label": "Video channel id"
  },
  "videoChannelHandle": {
    "label": "Video channel handle"
  },
  "videoChannelUrl": {
    "label": "Video channel url"
  },
  "playlistId": {
    "label": "Playlist id"
  },
  "playlistTitle": {
    "label": "Playlist",
    "format": "text"
  },
  "playlistUrl": {
    "label": "Playlist url"
  },
  "playlistType": {
    "label": "Collection Type",
    "format": "text"
  },
  "playlistVideoCount": {
    "label": "Playlist Videos",
    "format": "number"
  },
  "playlistAvailableVideoCount": {
    "label": "Playlist available video count"
  },
  "playlistUnavailableVideoCount": {
    "label": "Unavailable",
    "format": "number"
  },
  "playlistTotalDuration": {
    "label": "Playlist total duration"
  },
  "playlistTotalDurationSeconds": {
    "label": "Playlist total duration seconds"
  },
  "playlistOwner": {
    "label": "Owner",
    "format": "text"
  },
  "playlistOwnerChannelId": {
    "label": "Playlist owner channel id"
  },
  "playlistOwnerHandle": {
    "label": "Playlist owner handle"
  },
  "playlistDescription": {
    "label": "Playlist description"
  },
  "playlistViewCount": {
    "label": "Playlist view count"
  },
  "playlistVisibility": {
    "label": "Playlist visibility"
  },
  "lastUpdated": {
    "label": "Last updated"
  },
  "lastUpdatedDate": {
    "label": "Last updated date"
  },
  "channelName": {
    "label": "Channel",
    "format": "text"
  },
  "channelId": {
    "label": "Channel id"
  },
  "channelHandle": {
    "label": "Channel handle"
  },
  "channelUrl": {
    "label": "Channel url"
  },
  "videoCount": {
    "label": "Collection Videos",
    "format": "number"
  },
  "videoCountText": {
    "label": "Video count text"
  },
  "searchQuery": {
    "label": "Search Query",
    "format": "text"
  },
  "searchRank": {
    "label": "Rank",
    "format": "number"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Playlist Contents & Channel Playlist Finder Actor is ready to run with the inputs already set for "Recover Deleted Video Positions in YouTube Playlists". [Sign up or log in](https://console.apify.com/create-task-from-example/uru3vfVemAa6slDby) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Recover Deleted Video Positions in YouTube Playlists" task

The YouTube Playlist Contents & Channel Playlist Finder Actor will start running based on the input automatically. You can also change all the input fields, like playlist urls, max playlists per channel, and more, to match your specific use case.

### 3. Receive the "Recover Deleted Video Positions in YouTube Playlists" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as type, #, video id, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Recover Deleted Video Positions in YouTube Playlists" task via API](https://apify.com/vexaloom-labs/youtube-playlist-contents-and-channel-playlist.md).

## FAQ

### How do I find names of deleted videos in a YouTube playlist?

The YouTube playlist recovery task returns unavailable entries with their real positions and video IDs. YouTube does not reveal hidden videos’ titles, so their names cannot be recovered from these records.

### How many videos can I get from a YouTube playlist?

The YouTube playlist recovery task is set to return at most 100 rows per playlist in this run; unavailable placeholders count toward that limit. The actor supports up to 10,000 rows per playlist, and 0 means every video.

### Why are some deleted videos missing their names?

The YouTube playlist recovery task can return placeholders for hidden entries with their real positions and video IDs, but YouTube does not reveal their titles or uploader details. Those fields are omitted.

### Can I export YouTube playlist data to CSV or Excel?

Results from the YouTube playlist recovery task land in a dataset you can download as CSV, Excel, JSON, XML, RSS, or an HTML table, or read through the Apify API.

### How much does it cost to check 100 playlist entries?

For the YouTube playlist recovery task, up to 100 results cost at most $0.099 on the Free plan, plus the Actor Start event charge and Apify platform compute usage.

## About this Actor

This example demonstrates how to use [YouTube Playlist Contents & Channel Playlist Finder](https://apify.com/vexaloom-labs/youtube-playlist-contents-and-channel-playlist.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/vexaloom-labs/youtube-playlist-contents-and-channel-playlist.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/vexaloom-labs/youtube-playlist-contents-and-channel-playlist.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
