Skip to main content
Retrieve analysis results for a completed batch. Optionally filter events by approval status (approved, rejected, pending, or invalid), or return event-level CSV.
Required Parameters: Optional Parameters: Returns (as_csv=False, default): Dict with two keys:
  • batch_metadata: Contains batch information
    • batch_id: The batch identifier
    • batch_viewer_url: URL to view batch results in the web UI
    • batch_type: Internal batch category. Prompt-analysis batches may currently appear as legacy "ask".
    • analysis_type: Internal analysis label used by the backend
    • review_status: Whether the batch analysis have been fully reviewed by someone
    • review_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 dictionaries
    • video_id: ID of the video
    • analysis_id: ID of the analysis
    • mode: Analysis mode used
    • status: Analysis status
    • events: List of detected events (filtered by approval status if specified)
    • Additional fields depending on analysis type
Returns (as_csv=True): str (CSV text)
  • Header row is always included.
  • Rows are event-level (one row per event).
  • Current CSV columns:
    • Query
    • Video
    • Approval Status
    • Timestamp
    • Category
    • Label
    • AI Analysis
    • Severity
    • Video ID
    • Analysis ID
    • Batch ID
    • Batch Viewer URL
    • Status
    • Confidence
    • Import Source URI
    • Summary
Raises:
  • NomadicMLError: If batch is not completed or other API errors occur
  • ValidationError: 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.