TTechAPI
ApifyRapidAPI

Extract frames from YouTube videos, to the millisecond

Get JPEG frames from any YouTube video: at exact timestamps, one every N seconds, N evenly spaced, or one per chapter, at 360p to 1080p. Put a video's frames on one labelled contact sheet, ideal for an AI vision model. Only the seconds around each frame are downloaded.

Open on Apify Open on RapidAPI

What you get

Four ways to choose frames

Exact timestamps, every N seconds, N evenly spaced, or one per chapter.

Millisecond precision

The first frame at or after the time you give, decoded exactly.

Fast on long videos

Downloads only the few seconds that hold each frame.

Contact sheets

All of a video's frames on one labelled grid image.

Chapter titles

Chapter mode adds each chapter's title, start and end.

Failed frames are free

A frame past the end or from a private video is reported, not charged.

Who it is for

AI vision and agents

Send a contact sheet to a vision model instead of a video.

Thumbnails and previews

Grab the exact moment you want, at up to 1080p.

Computer vision datasets

Sample frames evenly across many videos.

Articles and course notes

One image per chapter for summaries and docs.

How to use it

  1. Open the Actor on Apify and sign in.
  2. Paste video links (up to 500) and choose what to capture.
  3. Pick a resolution, and tick contact sheet if you want one grid per video.
  4. Click Start; each frame comes back with an imageUrl.

Call it from code

cURL
curl -X POST "https://api.apify.com/v2/acts/ttechx~youtube-video-frame-extractor/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videos": ["https://www.youtube.com/watch?v=Ap8jTCMK3c4"], "mode": "evenly", "frameCount": 16, "resolution": "720", "contactSheet": true}'

Get your token in Apify Console > Settings > API & Integrations. In n8n, Make or Zapier, use the Apify app and pick this Actor.

Input

FieldTypeWhat it does
videosarray of stringsRequiredVideo URLs or 11-character ids, up to 500.
modetimestamps | interval | evenly | chaptersHow to choose frames. Default timestamps.
timestampsarray of stringsTimestamps mode: HH:MM:SS or HH:MM:SS.mmm, up to 1,000 per run.
intervalSecondsnumber, 0.1+Interval mode: seconds between frames.
frameCountinteger, 1-1,000Evenly mode: frames per video.
positionstart | middleChapters mode: where in each chapter.
startTime, endTimeHH:MM:SS[.mmm]Optional range for interval, evenly and chapters modes.
resolution360 | 480 | 720 | 1080Frame height. Default 720.
contactSheet, sheetColumns, sheetTileWidthboolean, 1-10, 120-640One labelled grid per video, and its layout.
Example input
{
  "videos": [
    "https://www.youtube.com/watch?v=Ap8jTCMK3c4"
  ],
  "mode": "evenly",
  "frameCount": 16,
  "resolution": "720",
  "contactSheet": true
}

Output

One row per video and frame:

FieldWhat it is
imageUrl, imageKeyLink to the JPEG and its key in the run's storage
timestampThe time of the frame
resolutionThe size you got, by the shorter side
status, errorOK, or fail with the reason
chapterTitle, chapterStart, chapterEndChapters mode only
videoId, videoUrlThe video

Contact sheets are saved as <videoId>_sheet.jpg in the run's key-value store.

Example output
{
  "videoId": "Ap8jTCMK3c4",
  "videoUrl": "https://www.youtube.com/watch?v=Ap8jTCMK3c4",
  "timestamp": "00:01:10.500",
  "resolution": "720p",
  "status": "OK",
  "imageUrl": "https://api.apify.com/v2/key-value-stores/.../records/Ap8jTCMK3c4_00-01-10.500_720p.jpg",
  "imageKey": "Ap8jTCMK3c4_00-01-10.500_720p.jpg",
  "error": null
}

Use it with AI agents

Through Apify the Actor is one tool, ttechx/youtube-video-frame-extractor. Through RapidAPI you get 3 tools: getFrame, getFrames and getSheet. Pick your assistant:

Through Apify

Run this, then type /mcp in Claude Code and sign in to Apify.

Terminal
claude mcp add --transport http ttech-frame "https://mcp.apify.com/?tools=ttechx/youtube-video-frame-extractor"

No browser sign-in? Add --header "Authorization: Bearer YOUR_APIFY_TOKEN".

Through RapidAPI

Terminal
claude mcp add --transport http ttech-frame https://mcp.rapidapi.com \
  --header "x-api-host: youtube-video-frame-extractor.p.rapidapi.com" \
  --header "x-api-key: YOUR_RAPIDAPI_KEY"

Brief for any LLM

Endpoints, inputs, outputs, examples and MCP setup in one Markdown text. Paste it into ChatGPT, Claude or Gemini and ask for the code you need. Also at /youtube-frame-extractor.md.

Good to know

  • Live streams that are still live are not supported. Private, deleted, region-locked and age-restricted videos fail with an error.
  • At most 1,000 frames per video in the interval, evenly and chapters modes.
  • Videos without chapters fail in chapters mode, free.

FAQ

Which frame do I get?

The first frame at or after the timestamp, so at most one frame later (up to 33 ms at 30 fps).

What is a contact sheet good for?

A whole video at a glance, or one image to send to an AI vision model instead of many.

Apify or RapidAPI?

Apify for many videos per run and stored files; RapidAPI for direct requests from your own code.