Skip to content

Segments

Segments are the core analysis output. Each segment is a timestamped piece of analysis data from a specific module (e.g., a transcription snippet, a visual analysis at a given time range).


List all analysis segments for a video, optionally filtered by module.

Auth: Required

Path ParamTypeRequiredDescription
job_idstringYesThe video’s job ID
Query ParamTypeRequiredDescription
modulestringNoFilter by module name (e.g. transcription)

Response: Segment array, ordered by start_time ASC

[
{
"id": "1",
"job_id": "a1b2c3d4-...",
"module": "visualelements",
"content": "Objects Detected: person, laptop; ...",
"start_time": 0.0,
"end_time": 3.0,
"metadata": null,
"created_at": "2025-01-15T10:05:00"
}
]
Terminal window
curl "https://api.lynxvizion.com/api/videos/a1b2c3d4-.../segments?module=transcription" \
-H "Authorization: $LVZ_KEY"

Delete all analysis segments for a video and reset its status to uploaded so it can be reprocessed.

Auth: Required

Path ParamTypeRequiredDescription
job_idstringYesThe video’s job ID

Response:

{
"ok": true,
"message": "Segments cleared"
}
Terminal window
curl -X DELETE https://api.lynxvizion.com/api/videos/a1b2c3d4-.../segments \
-H "Authorization: $LVZ_KEY"

Get video metadata and all segments grouped by module. This is the primary endpoint for retrieving analysis results.

Auth: Required

Path ParamTypeRequiredDescription
job_idstringYesThe video’s job ID

Response:

{
"job_id": "a1b2c3d4-...",
"video_name": "my-video.mp4",
"duration": 120.5,
"status": "completed",
"processing_time": 45.2,
"segments": [...],
"visualelements": [...],
"transcription": [...],
"scenes": [...]
}

The response includes a flat segments array and also each module’s segments as a top-level key.

Terminal window
curl https://api.lynxvizion.com/api/results/job/a1b2c3d4-... \
-H "Authorization: $LVZ_KEY"

Get all segments grouped by module, optimized for download/export.

Auth: Required

Path ParamTypeRequiredDescription
job_idstringYesThe video’s job ID

Response:

{
"job_id": "a1b2c3d4-...",
"video_name": "my-video.mp4",
"status": "completed",
"total_segments": 342,
"modules": {
"visualelements": [...],
"transcription": [...],
"scenes": [...]
}
}
Terminal window
curl https://api.lynxvizion.com/api/aggregated_results/a1b2c3d4-... \
-H "Authorization: $LVZ_KEY"

Get scene-related segments only (scenes, shots, grouped_shots, video_reasoning).

Auth: Required

Path ParamTypeRequiredDescription
job_idstringYesThe video’s job ID

Response:

{
"job_id": "a1b2c3d4-...",
"video_name": "my-video.mp4",
"total_segments": 28,
"modules": {
"scenes": [...],
"video_reasoning": [...]
}
}
Terminal window
curl https://api.lynxvizion.com/api/scene_grouping/a1b2c3d4-... \
-H "Authorization: $LVZ_KEY"

Download all segments as a JSON report file (Content-Disposition: attachment).

Auth: Required

Path ParamTypeRequiredDescription
job_idstringYesThe video’s job ID

Response: JSON file download

Terminal window
curl -o report.json https://api.lynxvizion.com/api/download/combined-report/a1b2c3d4-... \
-H "Authorization: $LVZ_KEY"

Download segments for a specific module as JSON or CSV.

Auth: Required

Path ParamTypeRequiredDescription
job_idstringYesThe video’s job ID
Query ParamTypeRequiredDescription
modulestringYesModule name (e.g. transcription)
formatstringNojson (default) or csv

Response: JSON or CSV file download

Terminal window
# Download as JSON
curl -o transcription.json \
"https://api.lynxvizion.com/api/download/report/a1b2c3d4-...?module=transcription" \
-H "Authorization: $LVZ_KEY"
# Download as CSV
curl -o transcription.csv \
"https://api.lynxvizion.com/api/download/report/a1b2c3d4-...?module=transcription&format=csv" \
-H "Authorization: $LVZ_KEY"