---
title: Extract Video Frames API
slug: extract-video-frames
url: https://apyhub.com/martin10291/service/extract-video-frames
provider: Martin Petrov
categories: [Ingestion Kit, Media Kit]
tags: [video-processing, frame-extraction, scene-detection, keyframes, thumbnail-generation]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# Extract Video Frames API

Video Frame Extractor API gets frames from video URLs by count, scenes, interval, or timestamps. Returns count and items. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/extract-video-frames` | What it does Extracts frames from one or more video URLs and returns a JSON object containing the t… | 100 |

## Endpoint reference

### Extract Frames from Video - Keyframes, Scene Detection, MCP

`POST https://api.eu.apyhub.com/martin10291/extract-video-frames` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `mode` | body | string | no | scenes = a frame at every scene change (ffmpeg scene detection). interval = one frame every N seconds. count = N evenly spaced frames. timestamps = exact times you list. One of: count, scenes, interv… |
| `width` | body | integer | no | Resize frames to this width, keeping the aspect ratio. Never upscales. 0 keeps the original size. Example: `1280`. |
| `format` | body | string | no | Image format of the extracted frames. jpg is smallest, png is lossless, webp is a good compromise. One of: jpg, png, webp. Example: `jpg`. |
| `quality` | body | integer | no | Quality for jpg and webp, 1 to 100 (higher = better and bigger files). Ignored for png. Example: `85`. |
| `videoUrls` | body | array of string | no | Direct links to video files (mp4, mov, webm, mkv, m4v). Links must be public and point straight to the file. YouTube, TikTok, Instagram and Facebook page links are not supported and are skipped. Exam… |
| `frameCount` | body | integer | no | Used in count mode: how many evenly spaced frames to extract per video (limited by Max frames per video). Example: `8`. |
| `timestamps` | body | array of string | no | Used in timestamps mode: times to extract, as seconds (12.5) or HH:MM:SS (00:01:02.5). Times beyond the video end are skipped. |
| `contactSheet` | body | boolean | no | Also create one tiled grid image per video with all frames and their timecodes (one extra result row of type contact_sheet). Handy for a quick overview or for sending one image to an AI vision model.… |
| `everySeconds` | body | number | no | Used in interval mode: extract one frame every this many seconds, starting at 0. Example: `10`. |
| `sceneThreshold` | body | number | no | Used in scenes mode: sensitivity from 0.01 to 1. Lower finds more scene changes (0.1 very sensitive), higher only hard cuts. 0.3 is a good default. Example: `0.3`. |
| `maxVideoMinutes` | body | integer | no | Skip videos longer than this many minutes. A safety guard against huge files and surprise cost. Example: `30`. |
| `maxFramesPerVideo` | body | integer | no | Hard cap on frames per video (any mode). You pay per frame, so this caps the cost. Maximum 500. Example: `30`. |

#### Quickstart

Extract a few frames from a video URL using the default count mode.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/extract-video-frames" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "count",
    "format": "jpg",
    "videoUrls": [
      "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4"
    ],
    "frameCount": 8
  }'
```

#### What you'll get back

Returns a JSON object with a `count` integer and an `items` array: one row per extracted frame, plus one contact sheet per video (send `"contactSheet": false` to skip it). Example (shortened to 2 of the 8 frames):

```json
{
  "count": 3,
  "items": [
    {
      "type": "frame",
      "videoUrl": "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4",
      "mode": "count",
      "frameIndex": 0,
      "timestampSec": 0.625,
      "timecode": "00:00:00.625",
      "width": 640,
      "height": 360,
      "imageUrl": "https://radarbg.com/m/f/q0CSpN4g3oH7X6lIC/1-001.jpg?s=e99wycjQG7CPh1PuVXLH",
      "key": "1-001.jpg",
      "sceneScore": null,
      "videoWidth": 640,
      "videoHeight": 360,
      "durationSec": 10,
      "fps": 30,
      "extractedAt": "2026-11-25T10:51:43Z"
    },
    {
      "type": "frame",
      "videoUrl": "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4",
      "mode": "count",
      "frameIndex": 1,
      "timestampSec": 1.875,
      "timecode": "00:00:01.875",
      "width": 640,
      "height": 360,
      "imageUrl": "https://radarbg.com/m/f/q0CSpN4g3oH7X6lIC/1-002.jpg?s=iFkt0pCcFph6LVUCG2EK",
      "key": "1-002.jpg",
      "sceneScore": null,
      "videoWidth": 640,
      "videoHeight": 360,
      "durationSec": 10,
      "fps": 30,
      "extractedAt": "2026-11-25T10:51:43Z"
    },
    {
      "type": "contact_sheet",
      "videoUrl": "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4",
      "mode": "count",
      "frames": 8,
      "width": 1310,
      "height": 378,
      "imageUrl": "https://radarbg.com/m/f/q0CSpN4g3oH7X6lIC/1-sheet.jpg?s=MrXdjOet9Qe9DVP9XHMN",
      "key": "1-sheet.jpg",
      "videoWidth": 640,
      "videoHeight": 360,
      "durationSec": 10,
      "fps": 30,
      "extractedAt": "2026-11-25T10:51:44Z"
    }
  ]
}
```

## About

## What it does

The Video Frame Extractor API returns still frames from one or more video links. Send `mode` as `count`, `scenes`, `interval`, or `timestamps`. Use `frameCount` in count mode, `everySeconds` in interval mode, and `timestamps` for exact times. You can also set `width`, `format`, `quality`, `contactSheet`, `maxVideoMinutes`, and `maxFramesPerVideo`.

Send public links to MP4, MOV, WebM, MKV, or M4V files in `videoUrls`. The API skips non file page links like YouTube or Instagram. `width` keeps the aspect ratio and never upscales. `sceneThreshold` controls how sensitive scene detection is.

Teams use the Video Frame Extractor API to build keyframes for review screens and video search. They also make contact sheets for fast checks and moderation. The response gives the frame count and an items list with the extracted frame results.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/extract-video-frames
