{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Video Scraper: Transcripts, Stats & MP4 Downloads",
    "description": "Scrape public TikTok videos and photo posts by URL: views, likes, shares, saves, author, sound, hashtags, location, full transcript text with timestamps, and optional MP4, cover and slideshow downloads. No login.",
    "version": "0.2",
    "x-build-id": "dqUNouLzBEtFj5D6l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/transparent_meteorite~tiktok-video-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-transparent_meteorite-tiktok-video-scraper",
        "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/transparent_meteorite~tiktok-video-scraper/runs": {
      "post": {
        "operationId": "runs-sync-transparent_meteorite-tiktok-video-scraper",
        "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/transparent_meteorite~tiktok-video-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-transparent_meteorite-tiktok-video-scraper",
        "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": {
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "TikTok video or photo-post links, one per line. Accepted: https://www.tiktok.com/@user/video/123..., /photo/ links, vm.tiktok.com / vt.tiktok.com / tiktok.com/t/ short links, and bare numeric video IDs. Duplicates are removed. Deleted, private or invalid lines get a free status row.",
            "items": {
              "type": "string"
            }
          },
          "maxVideos": {
            "title": "Max videos",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops after this many URLs from the list. Each video is one page request.",
            "default": 10000
          },
          "includeAuthorProfile": {
            "title": "Exact author stats",
            "type": "boolean",
            "description": "Opens each creator's public profile once per run to return exact follower, following, friend, like and video counts, the bio link and the business category. Turn off for a faster run with the rounded counts shown on the video page. No extra charge.",
            "default": true
          },
          "includeTranscript": {
            "title": "Include transcript",
            "type": "boolean",
            "description": "Adds the spoken-word transcript as plain text plus timed segments, from TikTok's own captions. Videos without captions get transcriptStatus no_captions. No extra charge.",
            "default": true
          },
          "transcriptLanguages": {
            "title": "Transcript languages",
            "type": "array",
            "description": "original = the spoken-language track (default). all = every caption language TikTok lists. Or language codes such as eng-US, es, de. If a requested language is missing, the original track is used.",
            "default": [
              "original"
            ],
            "items": {
              "type": "string"
            }
          },
          "downloadVideos": {
            "title": "Download videos (MP4)",
            "type": "boolean",
            "description": "Saves each MP4 (or every image of a photo slideshow) to the run's key-value store and puts a direct link in videoDownloadUrl / mediaUrls. Charged as a separate media-download event per started 10 MB saved (most TikTok videos are one event), only when the file is saved.",
            "default": false
          },
          "videoQuality": {
            "title": "Video quality",
            "enum": [
              "default",
              "highest",
              "smallest"
            ],
            "type": "string",
            "description": "Which file to save when downloading videos.",
            "default": "default"
          },
          "maxDownloadSizeMB": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Videos larger than this are skipped (downloadStatus says why) and not charged.",
            "default": 150
          },
          "downloadCovers": {
            "title": "Download cover images",
            "type": "boolean",
            "description": "Saves each video's cover image to the key-value store (coverDownloadUrl). No extra charge.",
            "default": false
          },
          "downloadSlideshowImages": {
            "title": "Download slideshow images",
            "type": "boolean",
            "description": "Saves photo-post images. Follows 'Download videos' when left empty."
          },
          "videoKvStoreName": {
            "title": "Key-value store name for downloads",
            "type": "string",
            "description": "Optional named store that keeps files after the run's default storage expires. Leave empty to use the run's own store."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Public TikTok pages usually load without a proxy. Retries switch to Apify Proxy automatically if a request is blocked.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many videos are read at the same time (1-5).",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}