Answers / YouTube
How do I give Claude or ChatGPT access to YouTube?
Add https://posttodata.com/mcp as a remote MCP server with an Authorization: Bearer YOUR_API_KEY header. The model can search_posts, get_post, get_comments, get_user and get_user_posts with platform youtube. No Google API key or quota setup is needed.
YouTube · search posts · $0.006 a call · one verified website trial · updated 2026-11-13
Run it live
Calls run only when you press Run. Opening this page does not spend credit.
Loading…
Your results will appear here. Choose a platform and action, then press Run.
Real API calls require verification for one trial, or a signed-in account with prepaid credit.
From code
curl "https://posttodata.com/v1/youtube/search?query=pour+over+coffee&limit=5" -H "Authorization: Bearer YOUR_API_KEY"import requests
r = requests.get(
"https://posttodata.com/v1/youtube/search",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={"query": "pour over coffee", "limit": 5},
)
for item in r.json()["data"]["items"]:
print(item["url"], item.get("text") or item.get("title"))From your AI
Claude and ChatGPT clients that support OAuth can sign in without pasting a key. Follow the client setup guide. The command below is the API-key option for Claude Code.
claude mcp add --transport http posttodata https://posttodata.com/mcp --header "Authorization: Bearer YOUR_API_KEY"Then ask
“Find the most-watched YouTube videos on pour-over coffee and summarize the comments under the top one.”
The model calls search_posts with platform youtube.
Good to know
- Video detail and comments list at $0.003 a call; search and channel lookups at $0.006.
- Search results carry only a relative date; post detail has the exact publish time.
- Counts such as 108K are returned as numbers.
Full reference in the docs. All YouTube endpoints are on the YouTube API page.
More answers