{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok AI Detector — AI-Generated Videos & Quality Scraper",
    "description": "🤖 TikTok AI detector — detect AI-generated TikToks, including UNDISCLOSED AI TikTok flagged but the creator never labeled. Reads TikTok's native AI-content labels + video quality score, filters & effects. Scan any keyword, niche or the trending feed. No login, no proxy.",
    "version": "0.1",
    "x-build-id": "U52kDyWsOjj4WCLQ5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yumitori~tiktok-ai-signals-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yumitori-tiktok-ai-signals-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/yumitori~tiktok-ai-signals-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yumitori-tiktok-ai-signals-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/yumitori~tiktok-ai-signals-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yumitori-tiktok-ai-signals-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": {
          "niches": {
            "title": "🎯 Niches to scan",
            "type": "array",
            "description": "Pick one or more popular niches to analyse — no typing needed. Every video comes back with TikTok's own AI-generated flag (incl. <b>undisclosed</b> AI), quality score, filters, language & category. You can combine niches with your own keywords below.",
            "items": {
              "type": "string",
              "enum": [
                "skincare",
                "makeup",
                "fitness",
                "recipes",
                "fashion",
                "gaming",
                "anime",
                "art",
                "pets",
                "cars",
                "tech gadgets",
                "home decor",
                "travel",
                "finance",
                "motivation",
                "comedy",
                "asmr",
                "storytime",
                "ai art",
                "ai animation"
              ],
              "enumTitles": [
                "Skincare",
                "Makeup",
                "Fitness",
                "Recipes",
                "Fashion",
                "Gaming",
                "Anime",
                "Art",
                "Pets",
                "Cars",
                "Tech gadgets",
                "Home decor",
                "Travel",
                "Finance",
                "Motivation",
                "Comedy",
                "ASMR",
                "Storytime",
                "AI art",
                "AI animation"
              ]
            },
            "default": []
          },
          "keywords": {
            "title": "🔎 …or type keywords / hashtags",
            "type": "array",
            "description": "Any topic, hashtag, or search term — each becomes its own query. <b>Examples:</b> <code>ai influencer</code>, <code>faceless channel</code>, <code>product demo</code>, <code>ai voiceover</code>, <code>beauty filter</code>. One per line.",
            "items": {
              "type": "string"
            }
          },
          "trendingVideos": {
            "title": "🔥 …or scan the live Trending feed (no keyword)",
            "type": "boolean",
            "description": "Analyse the videos TikTok is pushing on the For-You feed <b>right now</b> — a live read on how much of what's going viral is AI-generated and how it scores on quality. Works with no keyword; can also be combined with niches/keywords above.",
            "default": false
          },
          "aiOnly": {
            "title": "🤖 AI-generated videos only",
            "type": "boolean",
            "description": "<b>ON:</b> return only the videos TikTok flags as AI-generated (disclosed or detected) — ideal for building a pure AI-content dataset, or auditing which creators post <b>undisclosed</b> AI. <b>OFF (default):</b> analyse everything so you also get the AI % of the niche.",
            "default": false
          },
          "postedWithin": {
            "title": "📅 Posted within",
            "enum": [
              "0",
              "1",
              "7",
              "30",
              "90",
              "180"
            ],
            "type": "string",
            "description": "Only keep videos posted within this window — great for measuring <b>how fresh</b> the AI content is, or catching a spike in AI/undisclosed-AI in the last week. Leave on <b>Any time</b> for no date filter. (Applied to the videos TikTok returns, so tighter windows may return fewer results.)",
            "default": "0"
          },
          "maxVideos": {
            "title": "Videos per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many videos to analyse per niche/keyword (max 200 — TikTok's search limit per term). <b>Tip:</b> to scale, add more niches/keywords rather than maxing this out — 20 keywords × 200 = ~4,000 videos in one run.",
            "default": 40
          },
          "onePerVideo": {
            "title": "Output shape: one row per video",
            "type": "boolean",
            "description": "<b>ON (default):</b> one dataset row per video, with every AI/quality signal — best for building a dataset. <b>OFF:</b> one summary row per query — AI %, <b>undisclosed-AI %</b>, avg quality score, quality breakdown, top filters, top languages, top AI creators — best for a quick at-a-glance read.",
            "default": true
          },
          "concurrency": {
            "title": "Speed (parallel queries)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many niches/keywords to process at the same time. Higher = faster on big runs; leave at 4 for normal use.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}