Scrub API
POST/v1/tools/find_momentspriced

Find the moments

Finds the moments in a recording that stand alone as clips, from its transcription: up to so many or exactly so many, each a run of whole sentences between a shortest and a longest length, with a title, when it is said, its opening words and why it stands alone, as a table.

Takes transcript (file). Returns moments (the moments, one row each in the order they are said, with its title, when it starts and ends, how many seconds it runs, its opening line and why it stands alone).

$0.10 an hour of recording, up to 10 hours.

Fields

FieldTypeDefaultWhat it is
transcriptstringRequiredA file_id from create_upload, accepting application/vnd.scrub.transcript+json, application/json, up to 16 MB. 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. Without one, transcribe (Transcribe a video) makes one, or transcribe_audio (Transcribe audio) makes one: run it first and pass its job_id here.
momentsnumber5The most moments it finds; fewer when fewer stand alone.
exactlybooleanfalseFinds exactly that many moments, where the recording holds them.
shortestnumber20The shortest a moment runs, in seconds.
longestnumber60Greater than shortest.

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/find_moments \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"transcript":"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.