{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Converter & Compressor — MP4, WebM, MP3, GIF, Thumbnails",
    "description": "Convert and compress video or audio files by URL: MP4 (H.264), WebM, MP3, M4A, animated GIF, resize to 1080p/720p/480p, trim, mute, and extract thumbnails. Public download links. Pay per minute.",
    "version": "0.1",
    "x-build-id": "qNX5WBgAYBUzBCiOG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/openregistry~video-converter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-openregistry-video-converter",
        "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/openregistry~video-converter/runs": {
      "post": {
        "operationId": "runs-sync-openregistry-video-converter",
        "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/openregistry~video-converter/run-sync": {
      "post": {
        "operationId": "run-sync-openregistry-video-converter",
        "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",
        "required": [
          "mediaUrls"
        ],
        "properties": {
          "mediaUrls": {
            "title": "Video or audio file URLs",
            "type": "array",
            "description": "Direct public links to video or audio files: MP4, MOV, MKV, WebM, AVI, M4V, MP3, WAV, M4A, FLAC, OGG… Up to 2 GB each. YouTube, TikTok, Instagram and other platform pages are not supported: the link must return the file itself.",
            "items": {
              "type": "string"
            }
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "mp4",
              "webm",
              "mp3",
              "m4a",
              "gif",
              "none"
            ],
            "type": "string",
            "description": "Format of the converted file. MP3 and M4A extract the audio track from videos. Choose None to only extract thumbnails.",
            "default": "mp4"
          },
          "resolution": {
            "title": "Resolution",
            "enum": [
              "original",
              "1080",
              "720",
              "480",
              "360",
              "240"
            ],
            "type": "string",
            "description": "Target size of the short side (height for landscape, width for portrait videos). Videos are never upscaled; output is limited to 1080p. Lower resolutions give smaller files and a lower price.",
            "default": "original"
          },
          "quality": {
            "title": "Quality / compression",
            "enum": [
              "high",
              "medium",
              "low"
            ],
            "type": "string",
            "description": "Compression level for video (constant-quality encoding) and audio bitrate (192/128/96 kbps for MP3 and M4A).",
            "default": "medium"
          },
          "startTime": {
            "title": "Start time",
            "type": "string",
            "description": "Optional. Cut the media from this point: seconds (90) or timestamp (1:30, 00:01:30.5). Only the kept part is billed."
          },
          "endTime": {
            "title": "End time",
            "type": "string",
            "description": "Optional. Cut the media at this point: seconds or timestamp. Leave empty to keep everything until the end."
          },
          "removeAudio": {
            "title": "Remove audio",
            "type": "boolean",
            "description": "Produce a silent video (MP4 and WebM only).",
            "default": false
          },
          "keepHighFrameRate": {
            "title": "Keep 60 fps",
            "type": "boolean",
            "description": "By default the output frame rate is limited to 30 fps (smaller files, enough for most uses). Turn on to keep 50/60 fps videos smooth; minutes above 30 fps are billed twice.",
            "default": false
          },
          "thumbnailCount": {
            "title": "Thumbnails: number of frames",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Extract this many still frames, evenly spread over the video (or over the trimmed part). 0 = none. Takes precedence over the interval.",
            "default": 0
          },
          "thumbnailInterval": {
            "title": "Thumbnails: one frame every X seconds",
            "minimum": 0,
            "maximum": 86400,
            "type": "number",
            "description": "Extract one frame every X seconds instead (for example 10 for one frame every 10 s). Max 500 frames per file. 0 = off.",
            "default": 0
          },
          "thumbnailFormat": {
            "title": "Thumbnail format",
            "enum": [
              "jpg",
              "png"
            ],
            "type": "string",
            "description": "Image format of the extracted frames.",
            "default": "jpg"
          },
          "thumbnailWidth": {
            "title": "Thumbnail width (px)",
            "minimum": 0,
            "maximum": 3840,
            "type": "integer",
            "description": "Resize frames to this width, keeping the aspect ratio (never upscaled). 0 = original video size.",
            "default": 0
          },
          "gifFps": {
            "title": "GIF frames per second",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Frame rate of animated GIFs. Lower values give smaller files.",
            "default": 12
          },
          "gifWidth": {
            "title": "GIF width (px)",
            "minimum": 64,
            "maximum": 1080,
            "type": "integer",
            "description": "Width of animated GIFs, keeping the aspect ratio (never upscaled). GIFs cover at most 60 seconds from the start time.",
            "default": 480
          },
          "maxFiles": {
            "title": "Max files",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many processed files. To cap the cost, also set the maximum charge per run in Apify.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}