YouTube Search Tool - Public Video Discovery API for Agents

Search public YouTube videos through Vernclaw, returning compact JSON rows with titles, URLs, channels, duration, and public metrics for agent workflows.

What is YouTube Search Tool?

YouTube Search helps agents find public videos for launch research, creator monitoring, tutorial discovery, and market scans. The connector returns normalized video rows for downstream automation.

Setup

For Vernclaw users, enable the connector in Connector Settings, then authenticate the CLI with your Vernclaw API key:

vernclaw-cli status
vernclaw-cli login --api-key YOUR_VERNCLAW_API_KEY

Connector access is managed by Vernclaw. Individual users do not need to configure separate service credentials.

Parameters

  • query (required): search query
  • limit (optional): number of videos to return, up to 50
  • order (optional): date, rating, relevance, title, or viewCount
  • region_code (optional): two-letter region code such as US
  • relevance_language (optional): language hint such as en
  • published_after / published_before (optional): ISO 8601 timestamps with timezone

Example

vernclaw-cli invoke search.youtube --query "AI agent workflows" --limit 5 --order date --region-code US

Output

The CLI returns compact JSON by default:

{"status":200,"data":{}}

The data payload includes a normalized summary plus items rows with:

  • video ID and canonical YouTube URL
  • title, description, channel, and publish time
  • ISO 8601 duration
  • public metrics when available
  • default output omits provider/source metadata and raw payloads

Use --pretty only for human-readable inspection. For automation, parse the JSON envelope and numeric status.

Limits

Only public videos returned by the official YouTube Data API are available. Transcript text, comments, and private/unlisted access are not included in this version.

Troubleshooting

  • CONNECTOR_UNAVAILABLE: retry shortly, then contact support if the issue persists.
  • Empty results: confirm the query, region, language, and publication window. The connector only returns public videos available through the official YouTube Data API.