# YouTube Channel Profiles

Extract YouTube channel profiles — name, handle, subscribers, total views/videos, description, country, join date, verification, avatar/banner, and the channel's social + website links — by channel URL or @handle

**Pricing:** $0.5 / 1k channels

**Endpoint:** `POST /api/v1/agents/youtube/channels/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | Yes | YouTube channel URLs (e.g. https://www.youtube.com/@MrBeast or https://www.youtube.com/channel/UC...) or @handles. One per line. |
| `maxVideos` | integer | No | Internal cap — the profile rides on one capped video. Pinned to 1; not user-facing. |
| `maxShorts` | integer | No | Internal cap — no shorts pulled. Pinned to 0; not user-facing. |
| `maxStreams` | integer | No | Internal cap — no live streams pulled. Pinned to 0; not user-facing. |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/youtube/channels/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"urls":["..."]}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/youtube/channels/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "urls": [
        "..."
    ]
}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/api/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/api/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, endpoints): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `channelName` | Channel Name | text |
| `handle` | Handle | text |
| `channelId` | Channel ID | text |
| `channelUrl` | Channel URL | url |
| `subscribers` | Subscribers | number |
| `totalViews` | Total Views | number |
| `totalVideos` | Total Videos | number |
| `avgViewsPerVideo` | Avg Views per Video | number |
| `description` | Description | text |
| `country` | Country | text |
| `joinedDate` | Joined Date | text |
| `joinedYear` | Joined Year | number |
| `verified` | Verified | boolean |
| `hasVideos` | Has Videos | boolean |
| `avatarUrl` | Avatar URL | url |
| `bannerUrl` | Banner URL | url |
| `instagramUrl` | Instagram URL | url |
| `twitterXUrl` | Twitter / X URL | url |
| `tiktokUrl` | TikTok URL | url |
| `websiteUrl` | Website URL | url |
| `links` | Links | object_array |
