{
  "openapi": "3.0.1",
  "info": {
    "title": "Social Media Video Downloader (multi-site)",
    "description": "Social Media Video Downloader (multi-site) SD - Social Media Video Downloader (multi-site) is a video download tool that extracts public videos or audio from TikTok, Instagram, Facebook, X, YouTube and 1,000+ sites, with title, author, stats and a download link.",
    "version": "1.0",
    "x-build-id": "ahSfP3WRScw4phpmx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~social-media-video-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-social-media-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/neuro-scraper~social-media-video-downloader/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-social-media-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/neuro-scraper~social-media-video-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-social-media-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",
        "properties": {
          "urls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Public links, one per line: TikTok videos, Instagram reels / video posts, Facebook videos / reels / watch / share links, X (Twitter) posts with a video, YouTube videos / Shorts, any page of the 1,000+ other sites yt-dlp supports (Dailymotion, Twitch clips, Bilibili ...), or a direct .mp4 / .mp3 file. Profile, channel, page and playlist links are expanded to their newest videos (YouTube channels and playlists, Facebook pages, Instagram profiles - see \"Max videos per profile\").",
            "items": {
              "type": "string"
            }
          },
          "link": {
            "title": "Single URL (optional)",
            "type": "string",
            "description": "One more link - the same as adding a line to Video URLs. Example: https://www.facebook.com/reel/1549207066583030"
          },
          "downloadMode": {
            "title": "Download mode",
            "enum": [
              "auto",
              "audio",
              "mute",
              "none"
            ],
            "type": "string",
            "description": "What is stored in the run's key-value store for each video. \"No file\" stores nothing and returns the platform's own media links (medias) with the metadata - fastest and cheapest; links expire after some hours and TikTok / YouTube links only work from the IP that read them.",
            "default": "auto"
          },
          "quality": {
            "title": "Video quality",
            "enum": [
              "best",
              "2160",
              "1440",
              "1080",
              "720",
              "480",
              "360",
              "240",
              "144"
            ],
            "type": "string",
            "description": "Highest resolution to download, measured on the shorter side (a vertical 720x1280 video counts as 720p). The best file not above the limit is taken; when a platform publishes only larger files, the smallest one is taken. TikTok publishes one file per video.",
            "default": "720"
          },
          "audioFormat": {
            "title": "Audio format",
            "enum": [
              "mp3",
              "m4a"
            ],
            "type": "string",
            "description": "Used with Download mode \"Audio only\". The audio is extracted inside the Actor with ffmpeg.",
            "default": "mp3"
          },
          "audioBitrate": {
            "title": "MP3 bitrate (kbps)",
            "minimum": 64,
            "maximum": 320,
            "type": "integer",
            "description": "Bitrate of re-encoded audio (MP3, or M4A from a non-AAC source), e.g. 128, 192, 320.",
            "default": 192
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 4000,
            "type": "integer",
            "description": "Files above this size are not stored: the row gets status LINKS_ONLY, the reason in error and the media links in medias. Checked before downloading when the platform publishes the size.",
            "default": 500
          },
          "maxDurationMinutes": {
            "title": "Max source duration (minutes)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Videos longer than this are not downloaded (status LINKS_ONLY, metadata and links still returned). 0 = no limit.",
            "default": 0
          },
          "maxItemsPerProfile": {
            "title": "Max videos per profile, channel, page or playlist",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "For profile / channel / page / playlist links: download this many of the newest videos. The list follows the platform's own next-page cursor (YouTube 30 per page). TikTok and X profiles are not listed to logged-out visitors - give their video links.",
            "default": 10
          },
          "downloadThumbnail": {
            "title": "Also store the thumbnail",
            "type": "boolean",
            "description": "Stores each video's cover image in the key-value store too and adds thumbnailFileUrl.",
            "default": false
          },
          "includeFailedItems": {
            "title": "Add a row for failed links",
            "type": "boolean",
            "description": "Off: links that fail are only named in the log. On: each one also gets a row with status ERROR and the reason in error (rows are counted as results).",
            "default": false
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops the run after this many rows. 0 = no total limit.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Pages and metadata are read through this proxy. YouTube answers \"confirm you're not a bot\" to many datacenter IPs and Instagram / Facebook / TikTok limit logged-out visitors per IP, so residential proxies (the default) are the most reliable. TikTok, Instagram, Facebook and X files come straight from the platforms' CDNs; YouTube and other yt-dlp sites download through the proxy (their links are bound to the IP that read them).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}