Skip to main content
Version: v1.2

Get Video Transcription from a public video

Use this API to retrieve the transcription result for a video from public video sources.

uploadupload

Prerequisites

  • You’re familiar with the concepts described on the Platform overview page.
  • You have a valid memories.ai API key.

Host URL

  • https://api.memories.ai

Endpoint

GET /serve/api/v1/get_public_video_transcription


Request Example

import requests

headers = {"Authorization": KEY}
params = {"video_no": "PI-594031499251159058"}

response = requests.get("https://api.memories.ai/serve/api/v1/get_public_video_transcription", headers=headers, params=params)

print("Status:", response.status_code)
try:
print("Video Transcription Response:", response.json())
except Exception:
print("Response Text:", response.text)

Request Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYesYour API key for authentication
video_noquerystringYesUnique video number returned after upload

Response Example

Status code 200

{
"code": "0000",
"msg": "success",
"data": {
"videoNo": "PI-594031499251159058",
"transcriptions": [
{
"index": 0,
"content": "A person with bright pink hair is standing, holding a blue and orange 'ALDI' shopping bag with the text 'Shop differentli. Shop-aldi.us' printed on it, and introduces a 'vintage liquidation sale try on haul'.",
"startTime": "0",
"endTime": "3"
},
{
"index": 1,
"content": "The person holds up a black bag with the text 'eurogirl'.",
"startTime": "6",
"endTime": "8"
},
{
"index": 2,
"content": "The person is now wearing a short, black leather skirt with two silver buckles on each side.",
"startTime": "9",
"endTime": "14"
},
{
"index": 3,
"content": "The person is now wearing a white short-sleeved shirt with 'That Bitch' written in pink cursive.",
"startTime": "15",
"endTime": "23"
},
{
"index": 4,
"content": "The person models a gold, sequined butterfly top.",
"startTime": "24",
"endTime": "29"
},
{
"index": 5,
"content": "A person with bright-pink hair is wearing a butterfly-shaped, sequined, gold top and jean shorts; she raises her right arm and has her mouth open.",
"startTime": "30",
"endTime": "31"
},
{
"index": 6,
"content": "The person is now wearing a strapless, black bustier with an intricate, repeating pattern and the same jean shorts.",
"startTime": "31",
"endTime": "34"
},
{
"index": 7,
"content": "The person slightly moves their hands, and they turn to show the bustier's back.",
"startTime": "34",
"endTime": "37"
},
{
"index": 8,
"content": "The person now has their arms outstretched with open hands.",
"startTime": "37",
"endTime": "42"
},
{
"index": 9,
"content": "The person wears a brown tank top and camouflage pants, and they appear to be buttoning the pants.",
"startTime": "42",
"endTime": "51"
},
{
"index": 10,
"content": "The person wears a black t-shirt with white sleeves and the printed words 'NIKE JUST DO IT' over a Nike swoosh, and the shirt has a drawstring.",
"startTime": "51",
"endTime": "56"
},
{
"index": 11,
"content": "The person is wearing a black sports bra and a white t-shirt with a graphic of Britney Spears surrounded by blue butterflies and the name 'Britney' in a stylized font. They show the graphic with their hands, palms up.",
"startTime": "56",
"endTime": "59"
},
{
"index": 12,
"content": "A person with pink hair is initially wearing a white top with a picture of Britney Spears along with denim shorts. The person then has changed into a black dress with flames on the lower half. The person waves, and then holds up a black bag with silver handles and silver linings.",
"startTime": "60",
"endTime": "71"
},
{
"index": 13,
"content": "The person holds up a seashell decor, and then a framed picture of Marilyn Monroe with the word 'OCTOBER' above Marilyn Monroe's head. Finally, the person holds up a book and flips through the pages.",
"startTime": "75",
"endTime": "89"
},
{
"index": 14,
"content": "A person with pink hair wearing a black top and a long black skirt with orange flames is flipping through a large book that has orange and green accents.",
"startTime": "90",
"endTime": "97"
},
{
"index": 15,
"content": "The person is holding the book closed showing a black cover with a green and pink skull. She is wearing a black, fitted, floor-length dress that has orange flames along the lower portion. Text appears on the screen: 'guess how much i paid for this haul in the comments!'.",
"startTime": "97",
"endTime": "102"
}
]
}
}

Response Structure

NameTypeDescription
codestringResponse status code
msgstringHuman-readable status message
dataobjectResponse data container
» videoNostringThe unique video ID
» transcriptionslist of objectsList of transcription segments
»» startTimefloatSegment start time in seconds
»» endTimefloatSegment end time in seconds
»» contentstringTranscribed speech content for that time segment
»» indexintindex of the segment