YouTube API for AI agents — UnifAPI
UnifAPI’s YouTube API gives AI agents normalized access to YouTube videos, channels, comments, transcripts, and trending lists — one bearer key, pay-per-call.
- Live page: unifapi.com/apis/youtube
- MCP tools:
youtube.*via the hosted MCP server - Pricing: pay-per-call credits
Endpoints (v1)
| Endpoint | Description |
|---|---|
youtube/videos/get | Fetch a video by id |
youtube/videos/transcript | LLM-ready transcript with timestamps |
youtube/videos/comments | Comments on a video |
youtube/channels/get | Channel profile and stats |
youtube/channels/videos | Recent uploads on a channel |
youtube/search | Search videos / channels / playlists |
youtube/trending | Trending videos by region / category |
Example
curl https://api.unifapi.com/v1/youtube/videos/transcript \
-H "Authorization: Bearer $UNIFAPI_KEY" \
-d '{"video_id": "dQw4w9WgXcQ"}'
What it’s for
- Trend discovery — surface hot videos in a niche
- Creator discovery — score channels for partnerships
- Market research — long-tail product feedback in comments
- Research agents that want transcripts as a primary source