> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brightdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Discover YouTube videos by URL

> Discover YouTube videos from a channel by channel URL with the Bright Data Scraper API: POST /datasets/v3/scrape, dataset_id gd_lk56epmy2i5g7lzu0k.

## Query Parameters

**dataset\_id** `string` *required* (default: gd\_lk56epmy2i5g7lzu0k)

The dataset ID used for this request.

> [!WARNING]
>
> Must be set to `gd_lk56epmy2i5g7lzu0k` to collect **Discover Videos by URL** data.

**type** `string` (default: discover\_new)

Must be set to `discover_new`.

**discover\_by** `string` (default: url)

Must be set to `url`.

**notify** `boolean` (default: false)

Whether to send notifications when the request is completed.

**include\_errors** `boolean` (default: true)

Whether to include errors in the response.

## Request Body

**input** `object[]` *required*

An array of input objects.

**properties**

**url** `string` *required*

The YouTube channel or playlist URL to discover videos from.

#### Example

```json wrap theme={null}
{
  "input": [
    {"url": "https://www.youtube.com/@MrBeast"}
  ]
}
```

```bash cURL theme={null}
curl -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":[{"url":"https://www.youtube.com/@MrBeast"}],"limit_per_input":null}' \
  "https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_lk56epmy2i5g7lzu0k&notify=false&include_errors=true&type=discover_new&discover_by=url"
```

```python Python (requests) theme={null}
import requests

response = requests.post(
    "https://api.brightdata.com/datasets/v3/scrape",
    params={
        "dataset_id": "gd_lk56epmy2i5g7lzu0k",
        "notify": "false",
        "include_errors": "true",
        "type": "discover_new",
        "discover_by": "url",
    },
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "input": [{"url": "https://www.youtube.com/@MrBeast"}],
        "limit_per_input": None,
    },
)

print(response.text)
```

```javascript Node.js (fetch) theme={null}
const params = new URLSearchParams({
  dataset_id: "gd_lk56epmy2i5g7lzu0k",
  notify: "false",
  include_errors: "true",
  type: "discover_new",
  discover_by: "url",
});

const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    input: [{ url: "https://www.youtube.com/@MrBeast" }],
    limit_per_input: null,
  }),
});

console.log(await response.text());
```

```json 200 theme={null}
[
  {
    "url": "https://www.youtube.com/watch?v=4L_m0m3bEtE",
    "title": "Video Title Here",
    "youtuber": "@channelname",
    "video_url": "https://...",
    "video_length": 96,
    "likes": 18,
    "views": 1648,
    "date_posted": "2025-04-18T05:26:16.000Z",
    "description": "Video description...",
    "num_comments": 0,
    "subscribers": 4810000,
    "video_id": "4L_m0m3bEtE",
    "channel_url": "https://www.youtube.com/@channelname",
    "preview_image": "https://i.ytimg.com/vi/4L_m0m3bEtE/maxresdefault.jpg",
    "shortcode": "4L_m0m3bEtE",
    "verified": true,
    "handle_name": "Channel Name",
    "is_sponsored": false,
    "quality": "hd1080",
    "transcript": "...",
    "tags": ["tag1", "tag2"],
    "is_age_restricted": false
  }
]
```
