{
  "openapi": "3.0.1",
  "info": {
    "title": "Ultra-Fast Social Media Downloader – 21+ Platforms!",
    "description": "Download videos, audio, and photos from 21+ social media platforms including YouTube, TikTok, Instagram, Twitter/X, Reddit, Facebook, Snapchat, Pinterest & more. Supports 144p to 4K quality, MP4/MP3/WebM formats, and up to 50 concurrent downloads for blazing-fast bulk media scraping.",
    "version": "0.0",
    "x-build-id": "2Wet0RfHay3rr4dDc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rover-omniscraper~media-downloader-actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rover-omniscraper-media-downloader-actor",
        "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/rover-omniscraper~media-downloader-actor/runs": {
      "post": {
        "operationId": "runs-sync-rover-omniscraper-media-downloader-actor",
        "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/rover-omniscraper~media-downloader-actor/run-sync": {
      "post": {
        "operationId": "run-sync-rover-omniscraper-media-downloader-actor",
        "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": "Single URL",
            "type": "string",
            "description": "A single URL to download. Use either this or 'urls', not both."
          },
          "urls": {
            "title": "URLs Array",
            "type": "array",
            "description": "Array of URLs to download concurrently. Use either this or 'url', not both.",
            "items": {
              "type": "string"
            }
          },
          "quality": {
            "title": "Video Quality",
            "enum": [
              "144",
              "240",
              "360",
              "480",
              "720",
              "1080",
              "1440",
              "2160"
            ],
            "type": "string",
            "description": "Maximum video quality to download.",
            "default": "1080"
          },
          "downloadMode": {
            "title": "Download Mode",
            "enum": [
              "auto",
              "audio",
              "mute"
            ],
            "type": "string",
            "description": "'auto' downloads video+audio, 'audio' extracts audio only, 'mute' downloads video without audio.",
            "default": "auto"
          },
          "audioFormat": {
            "title": "Audio Format",
            "enum": [
              "best",
              "mp3",
              "ogg",
              "wav",
              "opus"
            ],
            "type": "string",
            "description": "Output audio format when downloading audio.",
            "default": "mp3"
          },
          "audioBitrate": {
            "title": "Audio Bitrate",
            "enum": [
              "320",
              "256",
              "128",
              "96",
              "64"
            ],
            "type": "string",
            "description": "Audio bitrate for conversion.",
            "default": "128"
          },
          "videoCodec": {
            "title": "Video Codec",
            "enum": [
              "h264",
              "av1",
              "vp9"
            ],
            "type": "string",
            "description": "Preferred video codec (mainly affects YouTube).",
            "default": "h264"
          },
          "filenameStyle": {
            "title": "Filename Style",
            "enum": [
              "classic",
              "basic",
              "pretty",
              "nerdy"
            ],
            "type": "string",
            "description": "How output files are named.",
            "default": "basic"
          },
          "tiktokFullAudio": {
            "title": "TikTok: Full Audio",
            "type": "boolean",
            "description": "Download original sound from TikTok without the video's changes.",
            "default": true
          },
          "tiktokH265": {
            "title": "TikTok: H.265 Codec",
            "type": "boolean",
            "description": "Use H.265 for TikTok downloads (better quality, less compatible).",
            "default": false
          },
          "twitterGif": {
            "title": "Twitter: Convert GIFs",
            "type": "boolean",
            "description": "Convert Twitter GIF-style videos to actual GIF format.",
            "default": true
          },
          "youtubeHLS": {
            "title": "YouTube: Use HLS",
            "type": "boolean",
            "description": "Use HLS for YouTube downloads (experimental, may bypass some restrictions).",
            "default": false
          },
          "youtubeDubLang": {
            "title": "YouTube: Dubbed Language",
            "type": "string",
            "description": "Language code for dubbed YouTube audio (e.g., 'en', 'es', 'ja')."
          },
          "disableMetadata": {
            "title": "Disable Metadata",
            "type": "boolean",
            "description": "Don't embed metadata (title, artist, etc.) in downloaded files.",
            "default": false
          },
          "concurrency": {
            "title": "Concurrent Downloads",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of URLs to download simultaneously. Higher = faster but uses more memory.",
            "default": 10
          },
          "cookies": {
            "title": "Service Cookies",
            "type": "object",
            "description": "Cookies for authenticated downloads, keyed by service name. Format: { \"youtube\": [{\"name\": \"...\", \"value\": \"...\"}], \"instagram\": [...] }"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify proxy configuration for routing requests through proxies."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}