{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Scraper - Videos, Profiles, Hashtags & Trends",
    "description": "Extract TikTok videos, profiles, hashtags, and search results without login. Filter by date range, likes, and engagement. Get captions, stats, music info, and optional AI transcription. Export structured JSON/CSV. Fast, reliable, no authentication required.",
    "version": "0.0",
    "x-build-id": "DsehidQoBEfn8ExsS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aiscraperdev~scrape-tiktok-videos-profiles-hashtags/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aiscraperdev-scrape-tiktok-videos-profiles-hashtags",
        "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/aiscraperdev~scrape-tiktok-videos-profiles-hashtags/runs": {
      "post": {
        "operationId": "runs-sync-aiscraperdev-scrape-tiktok-videos-profiles-hashtags",
        "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/aiscraperdev~scrape-tiktok-videos-profiles-hashtags/run-sync": {
      "post": {
        "operationId": "run-sync-aiscraperdev-scrape-tiktok-videos-profiles-hashtags",
        "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": [
          "proxyConfiguration"
        ],
        "properties": {
          "profiles": {
            "title": "TikTok Profiles (Usernames)",
            "type": "array",
            "description": "List of TikTok usernames to scrape (without the @ symbol).",
            "default": [
              "khaby.lame"
            ],
            "items": {
              "type": "string"
            }
          },
          "postURLs": {
            "title": "Direct TikTok Video URLs",
            "type": "array",
            "description": "List of direct TikTok video URLs (processed with highest priority if provided).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "List of hashtag names to scrape (without the # symbol).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "List of search terms to query on TikTok search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchSection": {
            "title": "Search Section",
            "enum": [
              "/video",
              "/user"
            ],
            "type": "string",
            "description": "Search tab section to target. Required if searchQueries is used.",
            "default": "/video"
          },
          "resultsPerPage": {
            "title": "Results Limit per Target",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of video posts/items to extract per profile or target.",
            "default": 100
          },
          "excludePinnedPosts": {
            "title": "Exclude Pinned Posts",
            "type": "boolean",
            "description": "Exclude pinned posts from the scraped video feed.",
            "default": false
          },
          "oldestPostDateUnified": {
            "title": "Oldest Post Date / Relative Age",
            "type": "string",
            "description": "Filter out posts older than this date (ISO string 'YYYY-MM-DD' or relative age like '7 days', '2 weeks', '1 month').",
            "default": ""
          },
          "newestPostDate": {
            "title": "Newest Post Date",
            "type": "string",
            "description": "Filter out posts newer than this date (ISO string 'YYYY-MM-DD').",
            "default": ""
          },
          "mostDiggs": {
            "title": "Maximum Likes (mostDiggs)",
            "type": "integer",
            "description": "Maximum number of diggs/likes for posts to include (null or empty for unlimited)."
          },
          "leastDiggs": {
            "title": "Minimum Likes (leastDiggs)",
            "type": "integer",
            "description": "Minimum number of diggs/likes required for posts to include."
          },
          "shouldDownloadVideos": {
            "title": "Download Videos",
            "type": "boolean",
            "description": "Download full-resolution video binaries and store in Key-Value Store.",
            "default": false
          },
          "shouldDownloadCovers": {
            "title": "Download Covers",
            "type": "boolean",
            "description": "Download video thumbnail covers and store in Key-Value Store.",
            "default": false
          },
          "shouldDownloadAvatars": {
            "title": "Download Avatars",
            "type": "boolean",
            "description": "Download profile avatar images and store in Key-Value Store.",
            "default": false
          },
          "shouldDownloadMusicCovers": {
            "title": "Download Music Covers",
            "type": "boolean",
            "description": "Download audio track cover images and store in Key-Value Store.",
            "default": false
          },
          "downloadSubtitlesOptions": {
            "title": "AI Transcription / Subtitles",
            "enum": [
              "NONE",
              "TRANSCRIBE_ALL_VIDEOS"
            ],
            "type": "string",
            "description": "Optional AI transcription mode for generating or extracting audio subtitles.",
            "default": "NONE"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy configuration for anti-bot bypass and IP rotation.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}