{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Downloader: TikTok No Watermark, Instagram, YouTube, X",
    "description": "Download videos from TikTok (no watermark), Instagram Reels, YouTube, X, Facebook, Threads, Reddit, Kwai, Douyin and 1,000+ sites as MP4 that plays everywhere (H.264 + AAC, converted when needed), with stable links, any resolution, audio only or clips. $0.005 per video, failed links never charged.",
    "version": "1.0",
    "x-build-id": "hXcMznvtyWcdlAGCY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pomlabs~video-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pomlabs-video-downloader",
        "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/pomlabs~video-downloader/runs": {
      "post": {
        "operationId": "runs-sync-pomlabs-video-downloader",
        "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/pomlabs~video-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-pomlabs-video-downloader",
        "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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Public video links: TikTok, Instagram Reels/posts, YouTube videos/Shorts, X/Twitter, Facebook, Threads, Reddit, Kwai, Vimeo, Snapchat Spotlight, Bilibili, Pinterest, LinkedIn, Bluesky, Twitch clips, Dailymotion, VK, Telegram posts, Streamable and 1,000+ other sites. Mix freely; duplicates are removed.",
            "default": [
              "https://x.com/historyinmemes/status/1790637656616943991"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Delivery",
            "enum": [
              "file",
              "link",
              "info"
            ],
            "type": "string",
            "description": "file: we download the video and save it as one MP4 in the run's key-value store, with a stable link (fileUrl) that does not expire with the platform's CDN. link: only the direct media link (downloadUrl), cheaper and instant; Instagram/Facebook links expire (see linkExpiresAt). info: nothing is downloaded; you get the title, author, counters and the list of every resolution and format on offer (with the direct link of each when the site allows), so you can choose. TikTok, YouTube and Bilibili links only open from the IP or session that requested them, so in link mode they are saved as files.",
            "default": "file"
          },
          "quality": {
            "title": "Resolution",
            "enum": [
              "best",
              "2160",
              "1440",
              "1080",
              "720",
              "480",
              "360",
              "240",
              "144",
              "smallest"
            ],
            "type": "string",
            "description": "The best resolution up to this one (short side: 1080 = 1080p, also for vertical 1080x1920 videos). 'best' takes the highest the site has; 'smallest' takes the lightest file. Each item reports the resolution delivered (quality, width, height) and all the ones on offer (availableQualities).",
            "default": "1080"
          },
          "compatibleMp4": {
            "title": "Plays everywhere (H.264 + AAC MP4)",
            "type": "boolean",
            "description": "Prefer H.264 video with AAC audio in an .mp4, which plays on every phone, browser and editor. TikTok and Facebook often serve their highest resolution as HEVC/H.265 or VP9; with this on you may get a lower resolution but a file that always plays. Each item reports videoCodec and compatibleMp4.",
            "default": true
          },
          "audio": {
            "title": "Sound",
            "enum": [
              "video",
              "none",
              "only"
            ],
            "type": "string",
            "description": "video: the video with its sound (default). none: the video without sound (muted MP4; no audio is downloaded when the site has separate tracks). only: just the sound, in the Audio format below.",
            "default": "video"
          },
          "audioFormat": {
            "title": "Audio format",
            "enum": [
              "m4a",
              "mp3",
              "wav"
            ],
            "type": "string",
            "description": "Used when Sound is 'only'. m4a keeps the original AAC track when the site has one (no quality loss); mp3 and wav are converted.",
            "default": "m4a"
          },
          "audioBitrate": {
            "title": "Audio bitrate (kbps)",
            "enum": [
              "",
              "64",
              "96",
              "128",
              "192",
              "256",
              "320"
            ],
            "type": "string",
            "description": "Optional, for mp3 (default 192) or to re-encode the m4a. Leave empty to keep the original quality.",
            "default": ""
          },
          "clipStart": {
            "title": "Clip start",
            "type": "string",
            "description": "Optional. Download only a part of the video: start time in seconds or mm:ss (e.g. 1:30). Works best on YouTube, X and sites with seekable streams."
          },
          "clipEnd": {
            "title": "Clip end",
            "type": "string",
            "description": "Optional. End time in seconds or mm:ss."
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Skip (and don't charge) files bigger than this.",
            "default": 500
          },
          "maxRetries": {
            "title": "Retries per video",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Attempts with a new IP before giving up.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}