# Latest videos of a YouTube channel with stats

**Use case:** 

The 30 newest videos of MKBHD with views, likes, comment count, duration, exact publish date, tags and description. Replace the channel with your own or a competitor's to track performance, or schedule the task to follow new uploads.

## Input

```json
{
  "searchQueries": [
    "lofi hip hop",
    "iphone 17 review"
  ],
  "startUrls": [
    {
      "url": "https://www.youtube.com/@mkbhd"
    }
  ],
  "maxResults": 30,
  "fullDetails": true,
  "sortBy": "relevance",
  "uploadDate": "any",
  "videoType": "all",
  "duration": "any",
  "features": [],
  "channelTabs": [
    "videos"
  ],
  "channelSort": "newest",
  "maxComments": 0,
  "commentsSort": "top",
  "country": "US",
  "language": "en",
  "maxConcurrency": 20
}
```

## Output

```json
{
  "thumbnailUrl": {
    "label": "Thumbnail",
    "format": "image"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "type": {
    "label": "Type",
    "format": "text"
  },
  "url": {
    "label": "Link",
    "format": "link"
  },
  "publishedAt": {
    "label": "Published",
    "format": "date"
  },
  "publishedDate": {
    "label": "Date",
    "format": "text"
  },
  "duration": {
    "label": "Duration",
    "format": "text"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "commentCount": {
    "label": "Comments",
    "format": "number"
  },
  "channelName": {
    "label": "Channel",
    "format": "text"
  },
  "channelSubscribers": {
    "label": "Subscribers",
    "format": "number"
  },
  "category": {
    "label": "Category",
    "format": "text"
  },
  "input": {
    "label": "Search / URL",
    "format": "text"
  },
  "position": {
    "label": "#",
    "format": "number"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "error": {
    "label": "Message",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Scraper – Videos, Shorts, Channels & Search](https://apify.com/brii3343/youtube-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/brii3343/youtube-scraper.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/brii3343/youtube-scraper.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`).
