Optional Parameters:
Returns (
as_csv=False, default): Dict with two keys:
-
batch_metadata: Contains batch informationbatch_id: The batch identifierbatch_viewer_url: URL to view batch results in the web UIbatch_type: Internal batch category. Prompt-analysis batches may currently appear as legacy"ask".analysis_type: Internal analysis label used by the backendreview_status: Whether the batch analysis have been fully reviewed by someonereview_status_updated_at: Time the batch analysis review status was updated, N/A if not reviewed yet.metadata: Dictionary of custom metadata key-value pairs (empty dict if no metadata exists)- Configuration details (for prompt batches:
prompt,category, etc.)
-
results: List of per-video analysis dictionariesvideo_id: ID of the videoanalysis_id: ID of the analysismode: Analysis mode usedstatus: Analysis statusevents: List of detected events (filtered by approval status if specified)- Additional fields depending on analysis type
as_csv=True): str (CSV text)
- Header row is always included.
- Rows are event-level (one row per event).
- Current CSV columns:
QueryVideoApproval StatusTimestampCategoryLabelAI AnalysisSeverityVideo IDAnalysis IDBatch IDBatch Viewer URLStatusConfidenceImport Source URISummary
NomadicMLError: If batch is not completed or other API errors occurValidationError: If filter contains invalid values
The batch must be completed before you can retrieve its results. If you need to check batch status first, use the batch viewer URL.