# Scrape YouTube Video Details by URL or ID

**Use case:** 

Get full metadata for specific YouTube videos by URL or ID. Export title, channel, views, likes, comments, duration, tags, description and publish date.

## Input

```json
{
  "mode": "videoDetails",
  "searchTerms": [
    "real estate coach"
  ],
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "maxResultsPerQuery": 30,
  "videoSort": "relevance",
  "includeVideos": false,
  "maxVideosPerChannel": 10,
  "includeVideoStats": true,
  "enrichCreatorContacts": false,
  "country": "US",
  "language": "en",
  "monitorMode": false,
  "monitorStoreName": "youtube-monitor",
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "type": {
    "label": "Type"
  },
  "videoId": {
    "label": "Video ID"
  },
  "title": {
    "label": "Video"
  },
  "channelTitle": {
    "label": "Channel"
  },
  "viewCount": {
    "label": "Views"
  },
  "likeCount": {
    "label": "Likes"
  },
  "commentCount": {
    "label": "Comments"
  },
  "publishedDate": {
    "label": "Published"
  },
  "publishedTimeText": {
    "label": "Published (rel.)"
  },
  "durationFormatted": {
    "label": "Duration"
  },
  "url": {
    "label": "URL"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Scraper — Channels, Videos & Creator Leads](https://apify.com/scrapesage/youtube-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapesage/youtube-scraper) to learn more, explore other use cases, and run it yourself.