Skip to main content
Version: v1.2

Get Task Status

Use this API to check the status of a video parsing task and retrieve the list of video IDs associated with that task.

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_video_ids_by_task_id


Request Example

import requests

headers = {"Authorization": "<API_KEY>"}

params = {
"task_id": "4b2d85ea-8b61-4689-96c3-75d907140242_84f9d9b4b6e5940b67e67e2d17ef1f97",
"unique_id": "1"
}

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

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

Request Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYesYour API key for authentication
task_idquerystringYesThe unique task ID returned when you created the parsing task
unique_idquerystringNoCorrelation identifier; defaults to "default" if not set

Response Example

{
"code": "0000",
"msg": "success",
"data": {
"taskId": "4b2d85ea-8b61-4689-96c3-75d907140242_84f9d9b4b6e5940b67e67e2d17ef1f97",
"video_ids": [
"PI-603068775285264430",
"PI-603068775285264431"
]
},
"failed": false,
"success": true
}

Response Structure

NameTypeDescription
codestringResponse status code
msgstringHuman-readable status message
dataobjectResponse data container
» taskIdstringThe unique task ID
» video_idsarrayList of video IDs generated by the uploading task
failedbooleanIndicates whether the request failed
successbooleanIndicates whether the request succeeded

Explanation of task_id and Responses

  • The "video_ids" field in the response indicates the progress of the task:
    • If the value is an empty list [], the system is still downloading the video(s) from the platform.
    • If the field contains one or more video IDs (e.g., "PI-603068775285264430"), the video(s) have been successfully downloaded and are now in the indexing process.