Skip to main content

Piggyback Learning API

Piggyback Learning (0.1.0)

Download OpenAPI specification:Download

List Kids Videos

Return JSON of all locally available kids videos

Responses

Response samples

Content type
application/json
null

Get Final Questions

Loads final_questions.json for the given video_id. Returns the best LLM-ranked question per segment (lowest llm_ranking) that is not trashed. If trashed=True, skip to the next question.

path Parameters
video_id
required
string (Video Id)

Responses

Response samples

Content type
application/json
null

Check Answer

Request Body schema: application/json
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
null

Transcribe Audio

Accepts audio (webm, wav, mp3, etc), sends to Whisper, no temp file saved (in-memory BytesIO).

Request Body schema: multipart/form-data
file
required
string <binary> (File)

Responses

Response samples

Content type
application/json
null

Get Config

Responses

Response samples

Content type
application/json
null

Admin Page

Responses

Api Download

Request Body schema: application/x-www-form-urlencoded
url
required
string (Url)

Responses

Response samples

Content type
application/json
null

Api Extract Frames

path Parameters
video_id
required
string (Video Id)

Responses

Response samples

Content type
application/json
null

Admin List Downloaded Videos

Provide a lightweight manifest of downloaded videos so admins can reuse them.

query Parameters
include_without_frames
boolean (Include Without Frames)
Default: false

Responses

Response samples

Content type
application/json
null

Submit Questions

Submit and save finalized questions (admin 'Submit' in UI). Saves to downloads//questions/.json

Request Body schema: application/json
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
null

Home Page

Home page with user type selection

Responses

Home Redirect

Alternative home page route

Responses

Children Page

Children's learning interface - no password required

Responses

Verify Password

Verify password for admin/expert access

Request Body schema: application/x-www-form-urlencoded
user_type
required
string (User Type)
password
required
string (Password)

Responses

Response samples

Content type
application/json
null

Expert Preview

query Parameters
File (string) or File (null) (File)
Video (string) or Video (null) (Video)
Mode (string) or Mode (null) (Mode)
Default: "review"

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Save Expert Annotation

Request Body schema: application/json
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
null

List Videos

List all downloaded videos with title, thumbnail, duration, and question counts.

Responses

Response samples

Content type
application/json
null

Get Expert Questions

path Parameters
video_id
required
string (Video Id)

Responses

Response samples

Content type
application/json
null

Save Expert Question

Request Body schema: application/json
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
null

Save Final Questions

Save final reviewed questions to a dedicated folder

Request Body schema: application/json
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
null

Synthesize Tts

Generate speech audio via OpenAI TTS.

Request Body schema: application/json
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
null