Connect the YouTube API
Integrate the YouTube API through Modiva’s unified REST API and hosted MCP server. Upload, schedule and pull video analytics. OAuth, token refresh, rate limits and 13 typed tools are handled for you — connect once and call YouTube from any agent or app through a single endpoint.
What you can do with the YouTube API
- ✓ Publishing
- ✓ Scheduling
- — Inbox & DMs (Comments only — no private inbox)
- ✓ Analytics
- ✓ Webhooks
YouTube MCP tools & scopes
- accounts_
- list · health · status
- posts_
- create · cross_post · schedule · publish_now
- comments_
- list · reply
- messages_
- list · send · inbox
- analytics_
- unified · best_time_to_post
OAuth scopes requested
- Read profile & accounts
- Publish posts & stories
- Read insights
- Read & reply to comments/DMs
Connect YouTube in your agent
# Add Modiva's MCP server to your agent
{
"mcpServers": {
"modiva": {
"url": "https://mcp.modiva.ai",
"headers": { "Authorization": "Bearer $MODIVA_MCP_KEY" }
}
}
}
# Then connect YouTube and call its tools, e.g.
accounts_list(provider="youtube")Frequently asked questions
How do I connect the YouTube API with Modiva?
Create a Modiva account, generate an MCP key, and connect YouTube from your dashboard. Modiva runs the full OAuth flow and stores the encrypted token for you — no client secrets in your code.
What can I do with the YouTube API through Modiva?
Upload, schedule and pull video analytics. You get 13 typed tools grouped by resource (accounts_, posts_, comments_, messages_, analytics_), callable over REST or the MCP server.
Do I need to handle OAuth or token refresh myself?
No. Modiva handles the YouTube OAuth handshake, token storage (envelope-encrypted) and automatic refresh. You call a single unified endpoint.
Can an AI agent use the YouTube API?
Yes — that is the point. Modiva exposes YouTube as Model Context Protocol (MCP) tools, so agents like Claude, Cursor or your own app can read and act on YouTube through one endpoint.
YouTube playbooks & guides
Free, step-by-step playbooks on growing with YouTube — what works, plus how to run it with Modiva.