{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Discover / Explore Scraper",
    "description": "Scrape TikTok Explore videos by category. Extract ranked trending videos with creators, captions, plays, likes, comments, shares, hashtags, sound/music metadata and video URLs. No login or cookies required.",
    "version": "1.0",
    "x-build-id": "EVlcN7pD9vdcnfMUg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~tiktok-discover-explore-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-tiktok-discover-explore-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/coregent~tiktok-discover-explore-scraper/runs": {
      "post": {
        "operationId": "runs-sync-coregent-tiktok-discover-explore-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/coregent~tiktok-discover-explore-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-tiktok-discover-explore-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",
        "required": [
          "categories"
        ],
        "properties": {
          "categories": {
            "title": "Explore categories",
            "uniqueItems": true,
            "type": "array",
            "description": "TikTok Explore categories to scrape. Each video is returned once per selected category, with its native Explore rank. ALL = TikTok's mixed Explore feed.",
            "items": {
              "type": "string",
              "enum": [
                "ALL",
                "ANIMATION_COMICS",
                "PERFORMANCE",
                "BEAUTY",
                "GAMING",
                "COMEDY",
                "DAILY_LIFE",
                "FAMILY",
                "RELATIONSHIPS",
                "DRAMA",
                "FASHION",
                "DUBBING",
                "FOOD",
                "SPORTS",
                "ANIMALS",
                "SOCIETY",
                "AUTOMOTIVE",
                "EDUCATION",
                "FITNESS_HEALTH",
                "TECHNOLOGY",
                "SINGING_DANCING"
              ],
              "enumTitles": [
                "All (mixed Explore feed)",
                "Animation & comics",
                "Performance",
                "Beauty",
                "Gaming",
                "Comedy",
                "Daily life",
                "Family",
                "Relationships",
                "Drama",
                "Fashion / dress up",
                "Dubbing",
                "Food",
                "Sports",
                "Animals",
                "Society",
                "Automotive",
                "Education",
                "Fitness & health",
                "Technology",
                "Singing & dancing"
              ]
            },
            "default": [
              "ALL"
            ]
          },
          "maxResultsPerCategory": {
            "title": "Max results per category",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum unique videos to save per category (after filters). Explore is a bounded, rotating feed — a category may return fewer when TikTok stops serving new videos.",
            "default": 100
          },
          "includeVideoUrls": {
            "title": "Include playback URL",
            "type": "boolean",
            "description": "Add playUrl (a playback URL usable without TikTok cookies where available). The canonical videoUrl is always included.",
            "default": true
          },
          "includeCreator": {
            "title": "Include creator",
            "type": "boolean",
            "description": "Add the lightweight creator object (id, secUid, username, display name, profile URL, avatar, verified).",
            "default": true
          },
          "includeHashtags": {
            "title": "Include hashtags & mentions",
            "type": "boolean",
            "description": "Add hashtags[] and mentions[] parsed from the video.",
            "default": true
          },
          "includeMusic": {
            "title": "Include music / sound",
            "type": "boolean",
            "description": "Add the music object (id, title, author, music page URL, audio URL, original-sound flag).",
            "default": true
          },
          "includeSubtitles": {
            "title": "Include subtitles",
            "type": "boolean",
            "description": "Add subtitle track links (language, format, URL) where TikTok provides them.",
            "default": false
          },
          "minViews": {
            "title": "Min views",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep videos with at least this many plays. 0 = off.",
            "default": 0
          },
          "minLikes": {
            "title": "Min likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep videos with at least this many likes. 0 = off.",
            "default": 0
          },
          "minComments": {
            "title": "Min comments",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep videos with at least this many comments. 0 = off.",
            "default": 0
          },
          "minShares": {
            "title": "Min shares",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep videos with at least this many shares. 0 = off.",
            "default": 0
          },
          "postedWithin": {
            "title": "Posted within",
            "enum": [
              "any",
              "24 hours",
              "7 days",
              "30 days",
              "90 days"
            ],
            "type": "string",
            "description": "Only keep videos posted within this window.",
            "default": "any"
          },
          "maxConcurrency": {
            "title": "Category concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many categories to scrape in parallel (pages within a category are always sequential).",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}