Upload a video to YouTube using the resumable upload (videos.insert)

domain: developers.google.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain an OAuth 2.0 access token with the youtube.upload scope for the channel owner's account.
  2. Initiate a resumable upload session by sending a POST request to the resumable upload endpoint with the video resource metadata (snippet, status) in the request body and uploadType=resumable in the query string.
  3. Capture the upload URI returned in the Location response header.
  4. Upload the video file bytes in one or more PUT requests to the upload URI, setting Content-Range headers appropriately for each chunk.
  5. Confirm completion when the API returns a 200 or 201 response containing the new video resource with its id.
  6. Note that videos.insert costs 100 quota units per call (updated December 4, 2025).

Known gotchas

Related routes

Upload a video to Cloudflare Stream via tus resumable upload
developers.cloudflare.com · 6 steps · unrated
Resume an interrupted YouTube Data API resumable upload session using Content-Range probing and budget quota for bulk uploads
developers.google.com · 6 steps · unrated
Upload a video to Vimeo using the tus resumable upload protocol and configure privacy settings
vimeo · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans