Introduction
What agentic-yt is, what it gives an agent, and where to go next.
agentic-yt is a YouTube API and CLI made for AI agents. It lets an agent search YouTube, read metadata and transcripts, download video or audio, cut clips and grab frames — over plain HTTP, with nothing to install on the machine the agent runs on. No yt-dlp, no ffmpeg, no Python.
The extraction and transcoding happen on a server. The agent gets JSON and download URLs.
Three ways in
| Surface | Use it when |
|---|---|
CLI — agentic-yt, alias ayt | The agent has a shell. One command per capability, --json on all of them. |
HTTP API — https://api.agentic-yt.crafter.run | The agent can only make HTTP requests, or you are building a product on top. |
| Agent skill | You want the agent to already know which command answers which question. |
All three are the same contract. The CLI is a thin client over the API, and the API is described by an OpenAPI document generated from the same route table the server validates requests against. The API reference lists every field; these guides explain how the pieces fit.
What makes it agent-shaped
- Ids or URLs, interchangeably. Anywhere a video, channel or playlist id is expected you can
pass a full YouTube URL instead —
watch?v=,youtu.be/, shorts, embeds,@handle. The agent never has to parse a URL. - Typed errors with a next step. Every failure is one envelope with a closed
code, amessage, and ahintthat says what to do. See Errors. - A shared cache. The first request for a file does the work; every later request for the same file — from anyone — is answered instantly. See Caching.
- Jobs that can be waited on. Downloads, clips and frames are jobs;
waitholds the request until the job finishes, so there is no polling loop to write. See Jobs. - Machine-readable docs.
/llms.txtindexes these pages and/llms-full.txtis all of them in one file.
Start here
Quickstart
Install, sign in, and make the first five calls.
CLI reference
Every command, flag and exit code.
Errors
Every code, and what an agent should do about it.
Agent skill
Teach your agent the whole surface in one command.
Is it up?
GET /v1/health needs no token and answers { "status": "ok", "version": "…", "time": "…" }.
From the CLI: ayt health.
Access
agentic-yt is invite-only for now. Sign in and, if your address has not been invited, you will be shown how to request access. It is not affiliated with YouTube or Google, and it is not the official YouTube Data API — see Limits and quotas for what that means in practice.
Operations covered