{
  "openapi": "3.0.1",
  "info": {
    "title": "Ultimate TikTok Scraper (no-limit)",
    "description": "Scrape TikTok profiles, videos, and hashtags to extract key data. Use search queries or direct URLs to gather post details, shares, hearts, followers, music data, and user info.",
    "version": "0.0",
    "x-build-id": "95GXgNGL17HbKTAiZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/novi~tiktok-scraper-ultimate/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-novi-tiktok-scraper-ultimate",
        "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/novi~tiktok-scraper-ultimate/runs": {
      "post": {
        "operationId": "runs-sync-novi-tiktok-scraper-ultimate",
        "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/novi~tiktok-scraper-ultimate/run-sync": {
      "post": {
        "operationId": "run-sync-novi-tiktok-scraper-ultimate",
        "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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Paste the TikTok URLs, and get the results immediately. Video, User, Search, User search, Tag, Music and Place are supported.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum number of items on output",
            "type": "integer",
            "description": "Maximum number of items that you want as output. Min: 20. Default: 200"
          },
          "keywords": {
            "title": "Search Keywords",
            "type": "array",
            "description": "Search keywords/terms you want to search from TikTok.",
            "items": {
              "type": "string"
            }
          },
          "dateRange": {
            "title": "Date Range (Only works in Search)",
            "enum": [
              "DEFAULT",
              "ALL_TIME",
              "YESTERDAY",
              "WEEK",
              "MONTH",
              "THREE_MONTH",
              "SIX_MONTH"
            ],
            "type": "string",
            "description": "Date range for search. It uses the standard date filtering of TikTok search."
          },
          "location": {
            "title": "Location / Region",
            "enum": [
              "AF",
              "AL",
              "DZ",
              "AS",
              "AD",
              "AO",
              "AI",
              "AQ",
              "AG",
              "AR",
              "AM",
              "AW",
              "AU",
              "AT",
              "AZ",
              "BS",
              "BH",
              "BD",
              "BB",
              "BY",
              "BE",
              "BZ",
              "BJ",
              "BM",
              "BT",
              "BO",
              "BQ",
              "BA",
              "BW",
              "BV",
              "BR",
              "IO",
              "BN",
              "BG",
              "BF",
              "BI",
              "CV",
              "KH",
              "CM",
              "CA",
              "KY",
              "CF",
              "TD",
              "CL",
              "CN",
              "CX",
              "CC",
              "CO",
              "KM",
              "CD",
              "CG",
              "CK",
              "CR",
              "HR",
              "CU",
              "CW",
              "CY",
              "CZ",
              "CI",
              "DK",
              "DJ",
              "DM",
              "DO",
              "EC",
              "EG",
              "SV",
              "GQ",
              "ER",
              "EE",
              "SZ",
              "ET",
              "FK",
              "FO",
              "FJ",
              "FI",
              "FR",
              "GF",
              "PF",
              "TF",
              "GA",
              "GM",
              "GE",
              "DE",
              "GH",
              "GI",
              "GR",
              "GL",
              "GD",
              "GP",
              "GU",
              "GT",
              "GG",
              "GN",
              "GW",
              "GY",
              "HT",
              "HM",
              "VA",
              "HN",
              "HK",
              "HU",
              "IS",
              "IN",
              "ID",
              "IR",
              "IQ",
              "IE",
              "IM",
              "IL",
              "IT",
              "JM",
              "JP",
              "JE",
              "JO",
              "KZ",
              "KE",
              "KI",
              "KP",
              "KR",
              "KW",
              "KG",
              "LA",
              "LV",
              "LB",
              "LS",
              "LR",
              "LY",
              "LI",
              "LT",
              "LU",
              "MO",
              "MG",
              "MW",
              "MY",
              "MV",
              "ML",
              "MT",
              "MH",
              "MQ",
              "MR",
              "MU",
              "YT",
              "MX",
              "FM",
              "MD",
              "MC",
              "MN",
              "ME",
              "MS",
              "MA",
              "MZ",
              "MM",
              "NA",
              "NR",
              "NP",
              "NL",
              "NC",
              "NZ",
              "NI",
              "NE",
              "NG",
              "NU",
              "NF",
              "MP",
              "NO",
              "OM",
              "PK",
              "PW",
              "PS",
              "PA",
              "PG",
              "PY",
              "PE",
              "PH",
              "PN",
              "PL",
              "PT",
              "PR",
              "QA",
              "MK",
              "RO",
              "RU",
              "RW",
              "RE",
              "BL",
              "SH",
              "KN",
              "LC",
              "MF",
              "PM",
              "VC",
              "WS",
              "SM",
              "ST",
              "SA",
              "SN",
              "RS",
              "SC",
              "SL",
              "SG",
              "SX",
              "SK",
              "SI",
              "SB",
              "SO",
              "ZA",
              "GS",
              "SS",
              "ES",
              "LK",
              "SD",
              "SR",
              "SJ",
              "SE",
              "CH",
              "SY",
              "TW",
              "TJ",
              "TZ",
              "TH",
              "TL",
              "TG",
              "TK",
              "TO",
              "TT",
              "TN",
              "TR",
              "TM",
              "TC",
              "TV",
              "UG",
              "UA",
              "AE",
              "GB",
              "UM",
              "US",
              "UY",
              "UZ",
              "VU",
              "VE",
              "VN",
              "VG",
              "VI",
              "WF",
              "EH",
              "YE",
              "ZM",
              "ZW",
              "AX"
            ],
            "type": "string",
            "description": "Enables the actor to retrieve the results from that specific region/location, given by an ISO 3166-1 alpha-2 country code."
          },
          "sortType": {
            "title": "Sort Type",
            "enum": [
              "DEFAULT",
              "RELEVANCE",
              "MOST_LIKED",
              "MOST_RECENT"
            ],
            "type": "string",
            "description": "Sort type for search."
          },
          "customMapFunction": {
            "title": "Custom map function",
            "type": "string",
            "description": "Function that takes each of the objects as argument and returns data that will be mapped by the function itself. This function is not intended for filtering, please don't use it for filtering purposes or you will get banned automatically."
          },
          "includeSearchKeywords": {
            "title": "Include Search Keywords",
            "type": "boolean",
            "description": "If selected, a field will be added to each video with the search keyword that was used to find it."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "raw",
              "clean",
              "ai"
            ],
            "type": "string",
            "description": "raw: full TikTok object. clean: flat object with computed metrics (engagement rate, views per hour, save-to-like ratio). ai: smallest, made for LLMs. customMapFunction receives the formatted item.",
            "default": "raw"
          },
          "includeTranscript": {
            "title": "Include transcript (add-on)",
            "type": "boolean",
            "description": "Adds transcriptText, transcriptLanguage and transcriptSegments from the native TikTok captions. Charged only for videos that have captions."
          },
          "transcriptLanguage": {
            "title": "Transcript language",
            "type": "string",
            "description": "Preferred caption language code, e.g. en. Falls back to the original captions."
          },
          "commentsPerPost": {
            "title": "Comments per video",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Adds a comments array to each video. Every comment and reply is charged as one result."
          },
          "maxRepliesPerComment": {
            "title": "Replies per comment",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Adds replies to each comment. Needs commentsPerPost."
          },
          "downloadVideos": {
            "title": "Download videos (add-on)",
            "type": "boolean",
            "description": "Saves the MP4 without watermark to a key-value store and adds its URL to media.videoUrl."
          },
          "downloadCovers": {
            "title": "Download covers (add-on)",
            "type": "boolean",
            "description": "Saves the cover image to a key-value store and adds its URL to media.coverUrl."
          },
          "mediaKvStoreName": {
            "title": "Media key-value store name",
            "type": "string",
            "description": "Named key-value store for downloaded files. Empty: the default store of the run, which Apify deletes after the retention period."
          },
          "excludePinnedPosts": {
            "title": "Exclude pinned posts",
            "type": "boolean",
            "description": "Skip pinned posts on profiles.",
            "default": false
          },
          "oldestPostDateUnified": {
            "title": "Published after",
            "type": "string",
            "description": "YYYY-MM-DD, ISO date-time, or a number of days (1 = today, UTC)."
          },
          "newestPostDate": {
            "title": "Published before",
            "type": "string",
            "description": "YYYY-MM-DD (inclusive, UTC), ISO date-time, or a number of days."
          },
          "leastDiggs": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep videos with at least this many likes."
          },
          "mostDiggs": {
            "title": "Maximum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep videos with fewer likes than this number."
          },
          "onlyAiGenerated": {
            "title": "Only AI-generated",
            "type": "boolean",
            "description": "Keep videos labeled by TikTok as AI-generated.",
            "default": false
          },
          "maxScanItems": {
            "title": "Max scanned items",
            "minimum": 1,
            "type": "integer",
            "description": "With filters, stop after scanning this many items per URL or keyword. Default: 5 x maxItems, at least 300."
          },
          "searchType": {
            "title": "Search type",
            "enum": [
              "video",
              "user"
            ],
            "type": "string",
            "description": "What the keywords search for."
          },
          "followerRange": {
            "title": "Follower range",
            "enum": [
              "DEFAULT",
              "TO_1K",
              "TO_10K",
              "TO_100K",
              "OVER_100K"
            ],
            "type": "string",
            "description": "User search only.",
            "default": "DEFAULT"
          },
          "profileType": {
            "title": "Profile type",
            "enum": [
              "DEFAULT",
              "VERIFIED"
            ],
            "type": "string",
            "description": "User search only.",
            "default": "DEFAULT"
          },
          "searchField": {
            "title": "Search field",
            "enum": [
              "DEFAULT",
              "USERNAME"
            ],
            "type": "string",
            "description": "User search only.",
            "default": "DEFAULT"
          },
          "includeErrorItems": {
            "title": "Include error items",
            "type": "boolean",
            "description": "Also push failed inputs to the dataset as { isError, errorCode, errorMessage, inputType, input }. Not charged. They are always saved in the ERRORS record.",
            "default": false
          },
          "proxyUrl": {
            "title": "Proxy URL",
            "type": "string",
            "description": "Optional. Use it when TikTok only shows content to visitors from a specific country (e.g. trending videos from the home page URL for some regions, or region-restricted videos). Format: http://username:password@host:port (http, https, socks4 or socks5). Supported providers: Bright Data, Oxylabs, Decodo (Smartproxy), IPRoyal, Webshare, SOAX. Set the proxy country to match the target region."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}