---
title: "YouTube"
description: "Video, channel, comment, playlist and embed metadata from the official Data API. Read-only; videos are never downloaded."
---

> Documentation Index
> Fetch the complete documentation index at: https://help.tooluse.net/llms.txt
> Use this file to discover all available pages before exploring further.

# YouTube

<p>Video, channel, comment, playlist and embed metadata from the official Data API. Read-only; videos are never downloaded.</p>

<details data-command-index><summary>What you can do (6)</summary>
<h2>What you can do</h2>
<p>Available commands: 6 (6 read, 0 write). Enable only the commands your application needs.</p>
<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Command</th>
<th>Effect</th>
</tr>
</thead>
<tbody><tr>
<td><a href="https://help.tooluse.net/integrations/youtube-data#command-youtube-data-search">Search videos</a> — <code>youtube.data.search</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/youtube-data#command-youtube-data-playlistItems">Read playlist</a> — <code>youtube.data.playlistItems</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/youtube-data#command-youtube-data-videos">Read video details</a> — <code>youtube.data.videos</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/youtube-data#command-youtube-data-channels">Read channel details</a> — <code>youtube.data.channels</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/youtube-data#command-youtube-data-commentThreads">Read video comments</a> — <code>youtube.data.commentThreads</code></td>
<td>Read</td>
</tr>
<tr>
<td><a href="https://help.tooluse.net/integrations/youtube-data#command-youtube-oembed">Read video embed information</a> — <code>youtube.oembed</code></td>
<td>Read</td>
</tr>
</tbody></table>
</div>
</details>
<h2>Connect and use</h2>

<p><a href="https://www.tooluse.net/tools/integrations/youtube-data">Connect and use</a></p>
<p>Open the integration&#39;s connection form to check the available credential source. The source has not been resolved for this documentation export. The instructions below apply when using your own provider account.</p>
<h2>Get your provider credentials</h2>
<p>Follow these steps for YouTube, then enter the issued values in the connection form below.</p>
<ol>
<li>Create or select a Google Cloud project, enable the API for this integration, and create an API key in APIs &amp; Services → Credentials. Restrict the key to that API and configure billing when the provider requires it.</li>
</ol>
<p><a href="https://developers.google.com/youtube/v3/getting-started">Official credential setup</a></p>
<h2>Where to enter credentials</h2>
<p>In the integration page, sign in, choose your workspace and open Connect. If a <strong>Credentials</strong> choice is shown, select <strong>Use my credentials</strong>. Fill the following connection fields and save. Provider credentials belong in this form, never in an MCP configuration or tool input.</p>
<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Connection field</th>
<th>Requirement</th>
</tr>
</thead>
<tbody><tr>
<td>API Key</td>
<td>Required</td>
</tr>
</tbody></table>
</div><p>Open API keys and create a Tooluse.net key for the enabled commands.</p>
<p>Set TOOLUSE_API_KEY in your client and use the shared MCP configuration.</p>
<p><a href="https://help.tooluse.net/clients">Configure Claude Code, Codex or Cursor once</a></p>

<h2>Permissions and results</h2>

<p>If you have more than one workspace, check the selected workspace in the connection or API-key dialog before saving. Roles, enabled commands, expiry and revocation use Tooluse.net&#39;s existing permissions. Disabling a connection or revoking a key immediately prevents new calls.</p>

<p>Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.</p>

<p>Your connection&#39;s daily allowance and key permissions also apply. Adding a connection does not make a provider request.</p>

<p>Calls return the shared execution receipt and a Claude tool_result. Provider output varies by operation; consult the provider documentation for its response fields. Unconfirmed calls should be checked before retrying.</p>

<h2>Call from your client</h2>

<p>Use the shared MCP configuration. Refresh your client&#39;s tool list after saving the connection or changing key permissions, then call the returned tool name with the example input below.</p>

<p><a href="https://help.tooluse.net/clients">Configure Claude Code, Codex or Cursor once</a></p>

<h2>Discover your enabled tools</h2>

<p>List permitted tools in Claude format. Read every page using page and size (maximum 100) until all results have been received. Use the returned name, not a catalog capability identifier, in the tool_use block.</p>

<pre><code class="language-bash">curl 'https://api.tooluse.net/v1/tools' \
  -H "Authorization: Bearer $TOOLUSE_API_KEY"
</code></pre>

<p>Find this command in the tool list permitted by your key. Replace svc_FROM_YOUR_TOOL_LIST with its returned name. Use a new Idempotency-Key for each new call and retain it when retrying that same call.</p>

<h2>HTTP call</h2>

<pre><code class="language-bash">curl 'https://api.tooluse.net/v1/tool-calls' \
  -H "Authorization: Bearer $TOOLUSE_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: replace-with-a-new-call-id' \
  --data '{
  "type": "tool_use",
  "id": "toolu_example",
  "name": "svc_FROM_YOUR_TOOL_LIST",
  "input": {
    "query": {
      "part": "snippet",
      "q": "Kestra",
      "type": "video",
      "maxResults": 5
    }
  }
}'
</code></pre>

<p>Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.</p>

<h2>Commands</h2>

<details id="command-youtube-data-search">
<summary><span>Search videos — <code>youtube.<wbr>data.<wbr>search</code></span></summary>
<p>Run <strong>Search videos</strong> with YouTube. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/youtube-data?command=youtube.data.search">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>query</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>query.part</code></td>
<td>string</td>
<td>Required</td>
<td>Response fields</td>
<td><code>enum: [&quot;snippet&quot;]</code></td>
</tr>
<tr>
<td><code>query.q</code></td>
<td>string</td>
<td>Required</td>
<td>Search keyword</td>
<td><code>minLength: 1; maxLength: 300</code></td>
</tr>
<tr>
<td><code>query.type</code></td>
<td>string</td>
<td>Optional</td>
<td>Resource type</td>
<td><code>enum: [&quot;video&quot;,&quot;channel&quot;,&quot;playlist&quot;]</code></td>
</tr>
<tr>
<td><code>query.maxResults</code></td>
<td>integer</td>
<td>Required</td>
<td>Return count</td>
<td><code>minimum: 1; maximum: 20</code></td>
</tr>
<tr>
<td><code>query.pageToken</code></td>
<td>string</td>
<td>Optional</td>
<td>Next page cursor</td>
<td><code>minLength: 1; maxLength: 2000</code></td>
</tr>
<tr>
<td><code>query.regionCode</code></td>
<td>string</td>
<td>Optional</td>
<td>Country code</td>
<td><code>minLength: 1; maxLength: 2</code></td>
</tr>
<tr>
<td><code>query.relevanceLanguage</code></td>
<td>string</td>
<td>Optional</td>
<td>Language code</td>
<td><code>minLength: 1; maxLength: 20</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/youtube-data/commands/youtube.data.search">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "query": {
    "part": "snippet",
    "q": "Kestra",
    "type": "video",
    "maxResults": 5
  }
}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 60 seconds.</p>

</details>
<details id="command-youtube-data-playlistItems">
<summary><span>Read playlist — <code>youtube.<wbr>data.<wbr>playlistItems</code></span></summary>
<p>Run <strong>Read playlist</strong> with YouTube. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/youtube-data?command=youtube.data.playlistItems">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>query</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>query.part</code></td>
<td>string</td>
<td>Required</td>
<td>Response fields</td>
<td><code>enum: [&quot;snippet&quot;]</code></td>
</tr>
<tr>
<td><code>query.playlistId</code></td>
<td>string</td>
<td>Required</td>
<td>Video, playlist or channel ID</td>
<td><code>minLength: 1; maxLength: 240</code></td>
</tr>
<tr>
<td><code>query.maxResults</code></td>
<td>integer</td>
<td>Required</td>
<td>Return count</td>
<td><code>minimum: 1; maximum: 20</code></td>
</tr>
<tr>
<td><code>query.pageToken</code></td>
<td>string</td>
<td>Optional</td>
<td>Next page cursor</td>
<td><code>minLength: 1; maxLength: 2000</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/youtube-data/commands/youtube.data.playlistItems">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "query": {
    "part": "snippet",
    "playlistId": "PL590L5WQmH8eCxu4NCcYVD4rzK5z5jr_W",
    "maxResults": 5
  }
}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 60 seconds.</p>

</details>
<details id="command-youtube-data-videos">
<summary><span>Read video details — <code>youtube.<wbr>data.<wbr>videos</code></span></summary>
<p>Run <strong>Read video details</strong> with YouTube. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/youtube-data?command=youtube.data.videos">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>query</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>query.part</code></td>
<td>string</td>
<td>Required</td>
<td>Response fields</td>
<td><code>enum: [&quot;snippet&quot;]</code></td>
</tr>
<tr>
<td><code>query.id</code></td>
<td>string</td>
<td>Required</td>
<td>Video, playlist or channel ID</td>
<td><code>minLength: 1; maxLength: 240</code></td>
</tr>
<tr>
<td><code>query.maxResults</code></td>
<td>integer</td>
<td>Required</td>
<td>Return count</td>
<td><code>minimum: 1; maximum: 20</code></td>
</tr>
<tr>
<td><code>query.pageToken</code></td>
<td>string</td>
<td>Optional</td>
<td>Next page cursor</td>
<td><code>minLength: 1; maxLength: 2000</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/youtube-data/commands/youtube.data.videos">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "query": {
    "part": "snippet",
    "id": "dQw4w9WgXcQ",
    "maxResults": 5
  }
}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 60 seconds.</p>

</details>
<details id="command-youtube-data-channels">
<summary><span>Read channel details — <code>youtube.<wbr>data.<wbr>channels</code></span></summary>
<p>Run <strong>Read channel details</strong> with YouTube. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/youtube-data?command=youtube.data.channels">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>query</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>query.part</code></td>
<td>string</td>
<td>Required</td>
<td>Response fields</td>
<td><code>enum: [&quot;snippet&quot;]</code></td>
</tr>
<tr>
<td><code>query.id</code></td>
<td>string</td>
<td>Required</td>
<td>Video, playlist or channel ID</td>
<td><code>minLength: 1; maxLength: 240</code></td>
</tr>
<tr>
<td><code>query.maxResults</code></td>
<td>integer</td>
<td>Required</td>
<td>Return count</td>
<td><code>minimum: 1; maximum: 20</code></td>
</tr>
<tr>
<td><code>query.pageToken</code></td>
<td>string</td>
<td>Optional</td>
<td>Next page cursor</td>
<td><code>minLength: 1; maxLength: 2000</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/youtube-data/commands/youtube.data.channels">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "query": {
    "part": "snippet",
    "id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
    "maxResults": 5
  }
}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 60 seconds.</p>

</details>
<details id="command-youtube-data-commentThreads">
<summary><span>Read video comments — <code>youtube.<wbr>data.<wbr>commentThreads</code></span></summary>
<p>Run <strong>Read video comments</strong> with YouTube. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/youtube-data?command=youtube.data.commentThreads">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>query</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>query.part</code></td>
<td>string</td>
<td>Required</td>
<td>Response fields</td>
<td><code>enum: [&quot;snippet&quot;]</code></td>
</tr>
<tr>
<td><code>query.videoId</code></td>
<td>string</td>
<td>Required</td>
<td>Video, playlist or channel ID</td>
<td><code>minLength: 1; maxLength: 240</code></td>
</tr>
<tr>
<td><code>query.maxResults</code></td>
<td>integer</td>
<td>Required</td>
<td>Return count</td>
<td><code>minimum: 1; maximum: 20</code></td>
</tr>
<tr>
<td><code>query.pageToken</code></td>
<td>string</td>
<td>Optional</td>
<td>Next page cursor</td>
<td><code>minLength: 1; maxLength: 2000</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/youtube-data/commands/youtube.data.commentThreads">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "query": {
    "part": "snippet",
    "videoId": "dQw4w9WgXcQ",
    "maxResults": 5
  }
}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 60 seconds.</p>

</details>
<details id="command-youtube-oembed">
<summary><span>Read video embed information — <code>youtube.<wbr>oembed</code></span></summary>
<p>Run <strong>Read video embed information</strong> with YouTube. This is a read command; it does not grant access beyond the connected account&#39;s permissions.</p>

<p>This is a read operation. Provider rate limits and data access rules still apply.</p>

<p><a href="https://www.tooluse.net/tools/integrations/youtube-data?command=youtube.oembed">Connect and use</a></p>

<p><strong>Parameters</strong></p>

<p>Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.</p>

<div class="nb-table-scroll"><table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required in parent</th>
<th>Description</th>
<th>Constraints</th>
</tr>
</thead>
<tbody><tr>
<td><code>query</code></td>
<td>object</td>
<td>Required</td>
<td></td>
<td><code>additionalProperties: false</code></td>
</tr>
<tr>
<td><code>query.url</code></td>
<td>string</td>
<td>Required</td>
<td>YouTube video URL</td>
<td><code>minLength: 1; maxLength: 2048; pattern: &quot;^https://(?:www\\.)?youtube\\.com/watch\\?v=[A-Za-z0-9_-]{11}$&quot;</code></td>
</tr>
<tr>
<td><code>query.format</code></td>
<td>string</td>
<td>Required</td>
<td>Response format</td>
<td><code>enum: [&quot;json&quot;]</code></td>
</tr>
</tbody></table>
</div>
<p><strong>Full JSON Schema</strong></p>

<p><a href="https://api.tooluse.net/v1/integrations/youtube-data/commands/youtube.oembed">Full JSON Schema</a></p>

<p><strong>Example input</strong></p>

<pre><code class="language-json">{
  "query": {
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "format": "json"
  }
}
</code></pre>

<p>At most 1 provider requests per invocation; timeout: 60 seconds.</p>

</details>
<h2>Errors</h2>

<p>Check the key&#39;s expiry, revocation, workspace and allowed operations.</p>

<p>Reuse the same idempotency key only for the same request.</p>

<p>The connection or provider limit has been reached. Check the receipt before retrying.</p>

<h2>Test the connection</h2>

<p>Open the integration&#39;s commands below to inspect parameters and examples. Start with a read command for an account or resource you can access. Refresh your client&#39;s tool list, use the returned tool name, and check the execution result and usage. Provider charges and permissions still apply. Never test a write against production data without reviewing it.</p>

<p><a href="https://developers.google.com/youtube/v3/docs">Official provider documentation</a></p>

Source: https://help.tooluse.net/integrations/youtube-data/index.mdx
