# Collabs

Channels that do collabs: fastest growing, partners and new collab videos.

Channels that do collabs, meaning videos YouTube lists under more than one channel. Data comes from Algrow's collab sweep, which checks channels' Videos tabs around the clock. Growth figures refresh every 6 hours; partners and videos show up as soon as the sweep finds them.

### `fastest_growing_collab_channels`

Ranks every channel that appears on a collab video by subscriber or view growth over the last 7 or 30 days. Each channel comes with its growth, how many different channels it has collabed with, how many collab videos it has and when its latest one went out. Growth figures refresh every 6 hours. With `sort='pct'` the ranking is growth as a percentage of where the channel started, and only channels with at least 1,000 subscribers count unless you set `min_subscribers`.

**Example prompts**

"Which collab channels gained the most subscribers this week?"

"Find English channels under 50K subs growing fastest through collabs in the last 30 days"

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| metric | string | subs | `subs` or `views`. |
| period | integer | 7 | Growth window in days, `7` or `30`. |
| sort | string | gain | `gain` ranks by absolute growth. `pct` ranks by growth as a percentage of where the channel started, best for finding small channels taking off. |
| min_subscribers | integer | null | Only channels with at least this many subscribers. With `sort='pct'` it defaults to 1,000. |
| max_subscribers | integer | null | Only channels with at most this many subscribers. |
| min_partners | integer | null | Only channels that have collabed with at least this many different channels. |
| active_days | integer | null | Only channels with a collab video published in the last N days. |
| language | string | null | Primary language, e.g. `English`, `Spanish`. |
| page | integer | 1 | Page number, starting at 1. |
| per_page | integer | 25 | Results per page, max 100. |

### Use Case Recipes

#### Find small channels growing through collabs, then see who they collab with

1. Call `fastest_growing_collab_channels` with `sort='pct'` and `max_subscribers` set, for example 50,000.

2. Pick a channel from the list and pass its `channel_id` to `get_channel_collabs`.

3. Read its `partners` to see which channels it works with and how often, and its `videos` to see what the collabs were about.

### `get_channel_collabs`

A channel's collab partners and collab videos, newest first. `has_new_collab` is true when it has a collab video published in the last `since_days` days. A publish date in the future is an upcoming premiere. Also returns the latest collab date, the channel's 7 and 30 day growth, every partner with how many videos they made together and when they last did, and each video's host channel and full list of collaborators. `checked=false` means Algrow has not scanned this channel for collabs yet.

**Example prompts**

"Who does @rachelbakes collab with?"

"Has this channel put out a new collab in the last two weeks?"

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| channel_id | string | required | YouTube channel ID (`UC...`). Use `resolve_handle` first for a @handle or URL. |
| since_days | integer | 7 | A collab published in the last N days counts as new. |
| limit | integer | 30 | Max partners and max videos returned, up to 100. |

### `recent_collabs`

A feed of collab videos published in the last N days, newest first or most viewed first, across every channel the sweep has checked. Each video comes with its host channel and every collaborator. Pass `channel_ids` to watch a set of channels for new collabs.

**Example prompts**

"Show me the most-viewed collab videos from the last 3 days"

"Did any of these channels post a new collab this week?"

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| days | integer | 7 | How far back to look, in days. Max 90. |
| sort | string | newest | `newest` or `views`. |
| channel_ids | array | null | Only collabs involving any of these channel IDs (`UC...`), up to 50. |
| page | integer | 1 | Page number, starting at 1. |
| per_page | integer | 25 | Results per page, max 100. |
