{
  "openapi": "3.0.1",
  "info": {
    "title": "Podcast Loudness Normalizer (LUFS, True Peak) for AI Agents",
    "description": "Loudness normalization API for podcasts, video and broadcast. Send a URL, get MP3, M4A, WAV, FLAC or MP4 at -16, -14, -23 or -24 LUFS with a -1 dBTP true-peak ceiling and a measured before/after report. Batch. No DAW or plugins. MCP, n8n, Make, API. Failed files free.",
    "version": "0.1",
    "x-build-id": "tbQYPBUC1uLOyBL0W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ent-e~podcast-loudness-normalizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ent-e-podcast-loudness-normalizer",
        "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/ent-e~podcast-loudness-normalizer/runs": {
      "post": {
        "operationId": "runs-sync-ent-e-podcast-loudness-normalizer",
        "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/ent-e~podcast-loudness-normalizer/run-sync": {
      "post": {
        "operationId": "run-sync-ent-e-podcast-loudness-normalizer",
        "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": {
          "url": {
            "title": "Audio or video URL",
            "type": "string",
            "description": "Direct, publicly downloadable URL of ONE audio or video file (http/https; redirects followed). Any FFmpeg-readable format: mp3, wav, m4a, aac, flac, ogg, opus, mp4, mov, mkv, webm... Max 2 GB. Must be the media file itself, not a YouTube/Spotify/web page. The first audio stream is normalized. Example: https://download.samplelib.com/mp3/sample-15s.mp3"
          },
          "files": {
            "title": "Batch of files",
            "type": "array",
            "description": "Optional batch, processed sequentially. Array of objects {\"url\": string (required), plus any of preset, targetLufs, truePeakDbtp, loudnessRange, outputFormat, sampleRate, channels to override the top-level values for that file}. Plain URL strings are also accepted. Example: [{\"url\":\"https://example.com/ep1.wav\"},{\"url\":\"https://example.com/ep1-clip.mp4\",\"preset\":\"youtube\",\"outputFormat\":\"mp4\"}]. Failed items return status=error and are not charged."
          },
          "preset": {
            "title": "Loudness target preset",
            "enum": [
              "podcast",
              "apple",
              "spotify",
              "youtube",
              "ebu-r128",
              "atsc-a85",
              "custom"
            ],
            "type": "string",
            "description": "Integrated loudness target. podcast/apple = -16 LUFS (Apple Podcasts and most podcast hosts recommend -16 stereo); spotify/youtube = -14 LUFS (streaming platforms); ebu-r128 = -23 LUFS (European broadcast); atsc-a85 = -24 LUFS (US TV); custom = the value in targetLufs. Default: podcast. If the true-peak ceiling cannot be honoured at the target (very peaky audio), the ceiling wins and the result may land slightly below target (see normalizationType=dynamic in the output).",
            "default": "podcast"
          },
          "targetLufs": {
            "title": "Custom target (LUFS)",
            "minimum": -70,
            "maximum": -5,
            "type": "number",
            "description": "Integrated loudness target in LUFS, used only when preset=custom (e.g. -18 for audiobooks/ACX-style voice, -19 for mono podcasts). Range -70 to -5. Ignored for other presets."
          },
          "truePeakDbtp": {
            "title": "True-peak ceiling (dBTP)",
            "minimum": -9,
            "maximum": 0,
            "type": "number",
            "description": "Maximum true peak in dBTP (inter-sample peaks, measured with 4x oversampling). Default -1 dBTP (Apple/Spotify/YouTube recommendation). Use -2 for content that will be re-encoded at low bitrates, -1.5 for extra safety. The encoded output is re-measured and re-rendered with a tighter ceiling if lossy encoding pushed it over. Range -9 to 0.",
            "default": -1
          },
          "loudnessRange": {
            "title": "Loudness range target (LU)",
            "minimum": 1,
            "maximum": 50,
            "type": "number",
            "description": "Target loudness range (LRA) in LU passed to loudnorm. Default 11 (FFmpeg default; leaves natural dynamics). Lower values (e.g. 7) compress dynamics more for noisy listening environments, but only take effect if the input LRA is larger. Range 1-50.",
            "default": 11
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "mp3",
              "m4a",
              "wav",
              "flac",
              "mp4"
            ],
            "type": "string",
            "description": "Output container/codec. mp3 = MP3 CBR 192 kbps (universal podcast delivery); m4a = AAC 192 kbps; wav = 24-bit PCM (for further editing); flac = lossless; mp4 = keeps the input video stream untouched (no re-encode) and replaces the audio with normalized AAC 192 kbps - requires a video input. Audio formats drop any video. Default: mp3.",
            "default": "mp3"
          },
          "sampleRate": {
            "title": "Output sample rate (Hz)",
            "minimum": 8000,
            "maximum": 192000,
            "type": "integer",
            "description": "Optional output sample rate in Hz, e.g. 44100 or 48000. Default: same as the input (mp3 is capped at 48000). Leave empty unless your platform requires a specific rate."
          },
          "channels": {
            "title": "Channels",
            "enum": [
              "keep",
              "mono",
              "stereo"
            ],
            "type": "string",
            "description": "Output channel layout. keep = same as input (default); mono = downmix to 1 channel (smaller files for voice-only shows); stereo = 2 channels.",
            "default": "keep"
          },
          "maxDurationSeconds": {
            "title": "Max input duration (s)",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap in seconds on input duration (default 14400 = 4 hours). Longer inputs are rejected with status=error and are not charged. Billing is per started minute of input audio.",
            "default": 14400
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}