> For the complete documentation index, see [llms.txt](https://university.mindstudio.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.mindstudio.ai/building-ai-agents/blocks-reference/fetch-youtube-channel.md).

# Fetch YouTube Channel

Fetch details from a YouTube channel in a MindStudio workflow

{% embed url="<https://www.youtube.com/embed/eNgrF08DjjU>" %}

## Configuration&#x20;

### Channel URL

Enter the URL for the Youtube channel that you want to fetch. This section can include variables.&#x20;

### Output Variable&#x20;

Save the channel data to a variable. Example: `YTchannel_data`

### Format

The Youtube channel data will always be exported in **JSON**.

## Sample Output

```json
{
  "about": {
    "description": "One word. Here you'll find a 360-degree approach that weaves together the mental, physical, spiritual, emotional, and environmental aspects of well-being.",
    "subscribers": 168000,
    "videos": 770,
    "views": 12436659,
    "joined_date": "2010-01-31",
    "joined_date_text": "Joined Jan 31, 2010",
    "country": "United States",
    "links": [
      {
        "title": "Example Website",
        "link": "http://www.example.com/"
      },
      {
        "title": "Newsletters",
        "link": "https://www.example.com/newsletters"
      },
      {
        "title": "Social Media",
        "link": "https://www.instagram.com/example/"
      },
      {
        "title": "Social Platform",
        "link": "https://www.tiktok.com/@example"
      }
    ]
  },
  "channel": {
    "handle": "@example",
    "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "title": "Example Podcast",
    "subscribers": 168000,
    "videos": 770,
    "description": "Generic description of wellness approach.",
    "keywords": "wellness health example",
    "tags": ["wellness", "health", "example"],
    "available_countries": ["US"],
    "first_link": "http://www.example.com/",
    "is_family_safe": true,
    "banner": "https://example.com/banner.jpg",
    "avatar": "https://example.com/avatar.jpg"
  },
  "highlighted_video": {
    "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "title": "Example Podcast Episode",
    "link": "https://www.youtube.com/watch?v=example",
    "description": "Sample podcast description",
    "external_links": ["https://example.com"],
    "views": 92958,
    "published_time": "10 months ago"
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://university.mindstudio.ai/building-ai-agents/blocks-reference/fetch-youtube-channel.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
