{
  "openapi": "3.0.1",
  "info": {
    "title": "Mute Video & Replace Audio – Remove Sound or Add Music to MP4",
    "description": "Remove the audio track from videos in bulk without re-encoding, or replace it with your own MP3/WAV, or mix background music under the original sound with auto-ducking and fade-out. The video stream is copied: no quality loss, fast. MP4, MOV, WebM and MKV from URLs. From $2 per 1,000 videos.",
    "version": "0.1",
    "x-build-id": "yL2jQkiyOnpkW4ObV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~video-audio-remover/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-video-audio-remover",
        "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/gazidev~video-audio-remover/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-video-audio-remover",
        "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/gazidev~video-audio-remover/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-video-audio-remover",
        "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": {
          "videos": {
            "title": "Video URLs",
            "type": "array",
            "description": "Direct links to video FILES (MP4, MOV, WebM, MKV, M4V, TS...). YouTube/TikTok/Instagram pages are refused: this Actor edits files you own or may edit, it is not a downloader. Private-network addresses are refused too.",
            "default": [
              "https://download.samplelib.com/mp4/sample-5s.mp4"
            ],
            "items": {
              "type": "string"
            }
          },
          "bulkText": {
            "title": "Bulk list (URLs or CSV)",
            "type": "string",
            "description": "One URL per line, or a CSV with a `url` column."
          },
          "datasetId": {
            "title": "Read video URLs from an Apify dataset",
            "type": "string",
            "description": "Every item's URL field (below) is processed."
          },
          "datasetField": {
            "title": "Dataset field with the video URL",
            "type": "string",
            "description": "Field name in that dataset.",
            "default": "url"
          },
          "uploadedFiles": {
            "title": "Upload videos from your computer",
            "type": "array",
            "description": "This Actor runs with limited permissions, so ALSO select the store you uploaded into in 'Key-value store with your uploads'. When you upload files, the pre-filled demo video is ignored."
          },
          "uploadStore": {
            "title": "Key-value store with your uploads",
            "type": "string",
            "description": "Grants this run read access to that store only. If `uploadedFiles` points into it, only those files are processed; otherwise every media file in the store is (up to 1,000)."
          },
          "mode": {
            "title": "What to do with the sound",
            "enum": [
              "mute",
              "replace",
              "mix"
            ],
            "type": "string",
            "description": "The VIDEO stream is always copied unchanged (no quality loss). `mute` drops the audio track. `replace` and `mix` encode only the new audio (AAC, or Opus in WebM).",
            "default": "mute"
          },
          "audioUrl": {
            "title": "Audio / music URL (replace & mix)",
            "type": "string",
            "description": "Direct link to an MP3, WAV, M4A, OGG or FLAC file (or a video: its audio is used). Downloaded once for all videos. You must hold the rights to the music you add."
          },
          "musicVolume": {
            "title": "Music volume (mix)",
            "minimum": 0,
            "maximum": 2,
            "type": "number",
            "description": "1 = unchanged, 0.25 = quiet background. Used in `mix` mode only (`replace` keeps the track at full volume).",
            "default": 0.25
          },
          "duck": {
            "title": "Auto-duck the music while people talk (mix)",
            "type": "boolean",
            "description": "The original sound drives a compressor on the music (sidechain): the music dips under speech and comes back in pauses.",
            "default": true
          },
          "fadeOutSec": {
            "title": "Fade out the new audio (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Fade-out at the end of the video (replace & mix). 0 = off.",
            "default": 2
          },
          "loopAudio": {
            "title": "Loop the audio if it is shorter than the video",
            "type": "boolean",
            "description": "Off: the rest of the video has no new audio.",
            "default": true
          },
          "outputFormat": {
            "title": "Output container",
            "enum": [
              "same",
              "mp4"
            ],
            "type": "string",
            "description": "`mp4` re-wraps MOV/MKV/WebM into MP4 (video codecs H.264, HEVC, AV1, VP9; others get a free error row).",
            "default": "same"
          },
          "maxFileSizeMb": {
            "title": "Max input file size (MB)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Larger files are skipped (free). Files above 100 MB add the `large-file-100mb` event per started 100 MB beyond the first 100 MB. Above ~2,000 MB give the run more memory (disk).",
            "default": 500
          },
          "maxConcurrency": {
            "title": "Videos in parallel",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many videos are downloaded and processed at once.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Only for hosts that block datacenter IPs (HTTP 403).",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}