Scrub API
POST/v1/tools/study_videospriced

Study reference videos

Studies a few reference videos, such as the best Shorts in a field, and measures how each is made: when the first words land, every shot and cut, moves within a shot, words on screen and where, music under the voice, the ending. Gives the patterns they share as taste rules a brand keeps, with where each shows.

Takes videos (a list of files, up to 10). Returns rules (the taste rules the videos share, one row each, with the measure it is about and its lowest, usual and highest value among the videos that follow it, how many follow it of how many studied, and where it shows, by video and time), videos (each video measured, one row each, in the order given; times in seconds, moving shots and words on screen as a share of the video in %, music as decibels under the voice (empty where none plays under it)), shots (every shot of every video, one row each, with when it starts and ends, what it shows, how the picture moves and the words on screen with where they sit).

$0.20 a minute of video, up to 30 minutes.

Fields

FieldTypeDefaultWhat it is
videosarrayRequiredA list: A file_id from create_upload, accepting video/*, up to 1 GB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result. All of them are one job.

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/study_videos \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"videos":["w/…/file_id"]}'

Answer

{
  "ok": true,
  "result": {
    "job_id": "job_…",
    "status": "running",
    "price_usd": "$…"
  }
}

It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.

Every call can also answer an error: what comes back. Try it with your key from Account.