Request a tool
All toolsMCP serverRequest a toolPlatformsCategories
YouTube Video Uploader icon

YouTube Video Uploader

Upload videos to your YouTube channel from a URL with no code: set title, tags, privacy, thumbnail, and schedule an auto-publish time via OAuth.

Run this in the cloudRun on Apify →

YouTube & Creator Tools

How it works

  1. 1
    Open it on Apify

    Hit Run on Apify — it opens the tool in the cloud, no install.

  2. 2
    Set the inputs

    Adjust method, demoMode, videoUrl (sensible defaults are pre-filled).

  3. 3
    Click Run

    The tool runs on Apify’s cloud and collects the data for you.

  4. 4
    Export the results

    Download as JSON, CSV or Excel, or pipe straight into your app, Google Sheets, or an AI agent.

Inputs

FieldWhat it doesType
methodapi = official Data API with OAuth (default, reliable; needs clientId/secret/refreshToken). browser = automate YouTube Studio with exported login cookies (worksstring
demoModeReturn one clearly-labeled SAMPLE row instead of uploading — a free preview of the output shape, no credentials needed. The Actor also falls back to this automaboolean
videoUrlPublic direct URL to the video file to upload (.mp4/.mov). You host it (S3/CDN/Apify KV).string
titleYouTube title (max 100 chars).string
descriptionVideo description (hashtags appended automatically).string
tagsUp to 30 video tags (used by the API method).array
hashtagsHashtags appended to the end of the description (e.g. shorts, reddit).array
privacyStatuspublic, unlisted, or private.string
cookiesYour exported YouTube login session: a cookies array OR a Playwright storageState ({cookies,origins}) as JSON. Export with a 'Cookie-Editor'/'Get cookies.txt' estring
channelIdTarget channel ID (UC...) if your account has multiple channels.string
thumbnailUrlOptional public URL to a thumbnail image.string
madeForKidsDeclare the video as made for kids (COPPA).boolean
publishAtISO datetime to auto-publish (API method + privacy=private).string
categoryIdYouTube category ID. 22 = People & Blogs, 24 = Entertainment, 23 = Comedy, 27 = Education.string
clientIdOnly for method=api. From Google Cloud Console.string
clientSecretOnly for method=api.string
refreshTokenOnly for method=api. Refresh token with the youtube.upload scope.string

What you get

A structured dataset — each result includes fields like:

_demo_noticemethodprivacyStatusscheduledForstudioUrlthumbnailSettitleuploadSecondsvideoIdvisibilitywatchUrl

Export every run as JSON, CSV or Excel, or send it to your app, a database, Google Sheets, or an AI agent.

2 ready-to-run use cases

Schedule YouTube Video Uploads to Auto-Publish

Queue a video today and have YouTube flip it public at a set date and time. Control the title, tags, category, and exact publishAt moment.

Auto-Post a Vertical Clip as a YouTube Short

Got a vertical clip? Push it live as a public YouTube Short with the #shorts tag and topic hashtags, plus a title, tags, and category.

YouTube Video Uploader

Uploads a video from a URL to your own YouTube channel using the official YouTube Data API. It sets the title, description, tags, hashtags, privacy, schedule, and an optional custom thumbnail in one run. Built to be the publish step of an automated video pipeline (render somewhere, drop the file on a CDN, point this actor at the URL), but it works fine for one-off scheduled uploads too.

How it works

You give it a public URL to the video file and your Google OAuth credentials. The actor downloads the file to its temp disk, authenticates with your refresh token, and calls youtube.videos.insert (followed by thumbnails.set if you passed a thumbnail). Nothing about your channel is stored beyond the run.

Try it free (sample mode)

Run it without any credentials to get one clearly-labeled _demo sample row showing the exact output shape — a free preview, no upload performed and nothing charged. As soon as you supply real OAuth credentials (or YouTube cookies for the browser method) it performs a real upload. You can also force the preview with the demoMode checkbox.

Input

FieldRequiredNotes
videoUrlyesPublic direct URL to the video file (.mp4/.mov). You host it (S3, a CDN, Apify key-value store). It must be reachable without auth.
titleyesYouTube title. Trimmed to 100 characters.
descriptionnoVideo description. Hashtags are appended to the end.
tagsnoUp to 30 tags. Anything past 30 is dropped.
hashtagsnoAppended to the description as #tag. Non-alphanumeric characters are stripped.
privacyStatusnopublic, unlisted, or private. Defaults to private.
publishAtnoISO datetime to auto-publish. Only applies when privacyStatus is private (YouTube schedules a private video to go public).
thumbnailUrlnoPublic URL to a thumbnail image. Custom thumbnails require a verified channel; if the API rejects it the upload still succeeds.
categoryIdnoYouTube category ID. Defaults to 22 (People & Blogs). 24 = Entertainment, 23 = Comedy, 27 = Education.
madeForKidsnoDeclares the video as made for kids (COPPA). Defaults to false.
clientId / clientSecret / refreshTokenyes (for the API method)Your own Google OAuth credentials from Google Cloud Console. The refresh token must carry the youtube.upload scope. Marked secret.

The actor also has a browser method that drives YouTube Studio with exported login cookies. It works locally but tends to hit Google's session anti-fraud on cloud runs, so the API method is the default and the one to use for anything unattended. If you do use it, a residential proxy matching your usual country is strongly recommended.

Output

One dataset record per run. The useful fields are videoId, watchUrl (the youtu.be link), privacyStatus, scheduledFor (null unless you set publishAt), thumbnailSet, and uploadSeconds. ok: true means the insert returned a video ID.

Example

{
  "videoUrl": "https://cdn.example.com/clips/episode-12.mp4",
  "title": "How the Roman aqueducts actually worked",
  "description": "A short breakdown of gravity-fed water systems.",
  "tags": ["history", "engineering", "rome"],
  "hashtags": ["shorts", "history"],
  "privacyStatus": "private",
  "publishAt": "2026-06-15T14:00:00Z",
  "categoryId": "27",
  "clientId": "YOUR_CLIENT_ID.apps.googleusercontent.com",
  "clientSecret": "YOUR_CLIENT_SECRET",
  "refreshToken": "YOUR_REFRESH_TOKEN"
}

Pricing

$0.05 per successful upload. Pay per result, no subscription. Where an AI model is involved you bring your own OpenAI key.

Notes

You need your own Google OAuth credentials. There is no shared app. Create an OAuth client in Google Cloud Console with the YouTube Data API enabled, then generate a refresh token with the youtube.upload scope. New API projects also start in testing mode, which can cap or expire tokens until you publish the OAuth consent screen, so set that up before relying on it in a pipeline.