Retrieve analysis results for a completed batch. Optionally filter events by approval status (approved, rejected, pending, or invalid), or return event-level CSV.Documentation Index
Fetch the complete documentation index at: https://docs.nomadicml.com/llms.txt
Use this file to discover all available pages before exploring further.
| Parameter | Type | Description |
|---|---|---|
batch_id | str | ID of the batch to retrieve (required) |
| Parameter | Type | Default | Description |
|---|---|---|---|
filter | str | List[str] | None | Filter events by approval status. Valid values: 'approved', 'rejected', 'pending', 'invalid'. If omitted, returns all events for all videos (including videos with zero events). If provided, only matching events are returned and videos with zero matching events are excluded. |
as_csv | bool | False | If True, returns CSV text instead of JSON. CSV is event-level (one row per event) and does not emit placeholder rows for videos with zero events. |
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: Type of batch ("ask"or"agent")analysis_type: The analysis type usedreview_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 Ask 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 URLStatusConfidenceAnnotated Thumbnail URLImport 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.