---
ref: tool:getyoutubetranscript/search-youtube
name: Search YouTube
company: company:getyoutubetranscript
workflows: []
access: [mcp, cli, api]
tags: [capability:search-videos, category:data-provider, has:api, has:cli, has:mcp]
docs: https://getyoutubetranscript.com/docs
updated: 2026-11-16
---

# Search YouTube

Returns YouTube videos or channels that match a query, with country and language filters and pagination.

Note: Costs 1 credit per successful request.

## Set up

Use the first option your agent supports.

### MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

```json
{ "mcpServers": { "getyoutubetranscript": { "url": "https://getyoutubetranscript.com/api/mcp" } } }
```

Call the MCP tool `search_youtube`.

Server URL: https://getyoutubetranscript.com/api/mcp

### CLI (official)

Install the command, then confirm it runs.

```sh
npm install -g @tubeagentkit/cli
gyt --version
```

Run `gyt search`.

Set `$GYT_API_KEY` in your environment first (get a key: https://getyoutubetranscript.com/dashboard).

### API (official)

- Base URL: https://getyoutubetranscript.com/api/v1
- Endpoint: `GET /search`
- Auth: send the header `Authorization: Bearer $GYT_API_KEY`
- Get a key: https://getyoutubetranscript.com/dashboard
- Docs: https://getyoutubetranscript.com/docs

Note: Transcripts, searches and channel video pages cost 1 credit each, and failed requests cost nothing. `GET /credits` is free, the cheapest check of a key. New accounts get 100 free credits, no card.

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

## Rules

- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.
