{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Frame Extractor & Media Probe for AI Agents",
    "description": "Give AI agents eyes for video: send direct video or audio file links, get ffprobe metadata (duration, codecs, resolution, fps, rotation, 9:16 check), frames at set times, every N seconds or at scene cuts, a contact sheet for vision models, EBU R128 loudness and MP3 audio.",
    "version": "0.1",
    "x-build-id": "MCNA3am0K363QJ8L9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fluidfaith~media-probe/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fluidfaith-media-probe",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/fluidfaith~media-probe/runs": {
      "post": {
        "operationId": "runs-sync-fluidfaith-media-probe",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/fluidfaith~media-probe/run-sync": {
      "post": {
        "operationId": "run-sync-fluidfaith-media-probe",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "urls": {
            "title": "Video or audio file links",
            "maxItems": 20,
            "type": "array",
            "description": "Direct http(s) links to video or audio files, one per line (up to 20). Each link must return the file itself, not a web page. YouTube, TikTok, Instagram, Facebook, X, Vimeo and other page links are refused. Localhost, private networks and internal hosts are refused.",
            "items": {
              "type": "string"
            }
          },
          "files": {
            "title": "Files (base64)",
            "maxItems": 5,
            "type": "array",
            "description": "For agents that already hold a small file: a list of {\"name\": \"clip.mp4\", \"base64\": \"...\"} objects. Up to 5 files, 6 MB each after decoding (Apify limits the whole input to about 9 MB).",
            "default": []
          },
          "framesMode": {
            "title": "Frames",
            "enum": [
              "none",
              "count",
              "every",
              "times",
              "scene"
            ],
            "type": "string",
            "description": "How to pick frames. count: frameCount frames spread evenly over the file. every: one frame every everyNSeconds starting at 0. times: the times in frameTimes. scene: the first frame plus one frame at every cut (the video is decoded at 5 fps to find cuts). Frames are found by seeking, so long files are not decoded end to end (except in scene mode).",
            "default": "count"
          },
          "frameCount": {
            "title": "Frame count (count mode)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of evenly spaced frames, taken at the middle of equal slices of the file (so never a black first frame).",
            "default": 6
          },
          "everyNSeconds": {
            "title": "Every N seconds (every mode)",
            "minimum": 0.1,
            "maximum": 86400,
            "type": "number",
            "description": "Seconds between frames, starting at 0.",
            "default": 10
          },
          "frameTimes": {
            "title": "Frame times (times mode)",
            "type": "array",
            "description": "Times in seconds (12.5) or as \"mm:ss\" / \"hh:mm:ss\". Times past the end of the file are skipped with a warning. Up to 100.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sceneThreshold": {
            "title": "Scene change sensitivity (scene mode)",
            "minimum": 0.05,
            "maximum": 0.95,
            "type": "number",
            "description": "0.05 to 0.95. Lower finds more cuts (including soft ones); higher finds only hard cuts. 0.3 suits most edited video.",
            "default": 0.3
          },
          "maxFramesPerFile": {
            "title": "Maximum frames per file",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Frames beyond this limit are not taken and not charged.",
            "default": 100
          },
          "frameWidth": {
            "title": "Frame width (px)",
            "minimum": 64,
            "maximum": 3840,
            "type": "integer",
            "description": "Frames are scaled to this width, keeping the aspect ratio, and never upscaled. 768 is a good size for vision models.",
            "default": 768
          },
          "frameFormat": {
            "title": "Frame format",
            "enum": [
              "jpg",
              "webp",
              "png"
            ],
            "type": "string",
            "description": "jpg (small, default), webp (smaller) or png (lossless, larger).",
            "default": "jpg"
          },
          "contactSheet": {
            "title": "Contact sheet",
            "type": "boolean",
            "description": "Also return one grid image of the frames with time labels, at most 1568 px on its long side, so a vision model can see the whole clip in one image. With frames set to none, the sheet uses 9 evenly spaced frames that are not returned separately.",
            "default": false
          },
          "loudness": {
            "title": "Loudness (EBU R128)",
            "type": "boolean",
            "description": "Measure integrated loudness (LUFS), loudness range (LU) and true peak (dBTP) of the first audio track.",
            "default": false
          },
          "extractAudio": {
            "title": "Extract audio as MP3",
            "type": "boolean",
            "description": "Return the first audio track as an MP3 link, for transcription or review. Billed per started minute.",
            "default": false
          },
          "audioQuality": {
            "title": "MP3 quality",
            "enum": [
              "speech",
              "music"
            ],
            "type": "string",
            "description": "speech: mono 64 kbps 22 kHz (an hour is about 28 MB). music: stereo 192 kbps 44.1 kHz.",
            "default": "speech"
          },
          "audioMaxMinutes": {
            "title": "Maximum audio minutes",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Audio is cut after this many minutes (at most 180, or 60 with music quality).",
            "default": 30
          },
          "maxFileSizeMb": {
            "title": "Maximum file size (MB)",
            "minimum": 1,
            "maximum": 2048,
            "type": "integer",
            "description": "Larger files are not downloaded and not charged. Hard limit 2048 MB.",
            "default": 500
          },
          "maxDurationSeconds": {
            "title": "Use only the first N seconds",
            "minimum": 0,
            "maximum": 86400,
            "type": "integer",
            "description": "0 means the whole file. Otherwise frames, scene detection, loudness and audio cover only the first N seconds (metadata always describes the whole file).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Files at the same time",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "1 to 4. Lowered automatically to fit the run memory (one file per GB) and disk.",
            "default": 2
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}