{
  "openapi": "3.0.1",
  "info": {
    "title": "Tiktok Viral Video Finder",
    "description": "TikTok Viral Video Finder finds high-performing TikTok videos by trend, keyword, hashtag, or creator, with views, likes, comments, shares, and viral scoring. Use it for content research, competitor monitoring, creator scouting, and trend analysis.",
    "version": "0.2",
    "x-build-id": "ZoKPSzn2e3NO6NEBE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~tiktok-viral-video-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-tiktok-viral-video-finder",
        "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-viral-video-finder/runs": {
      "post": {
        "operationId": "runs-sync-coregent-tiktok-viral-video-finder",
        "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-viral-video-finder/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-tiktok-viral-video-finder",
        "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": {
          "queries": {
            "title": "Search — keyword, #hashtag, @creator, or sound URL",
            "type": "array",
            "description": "One entry per line. The type of each entry is detected automatically, so you can mix them in a single run:\n\n• Keyword or niche — e.g. skincare routine\n• #Hashtag — e.g. #beautytok (or a full /tag/ URL)\n• @Creator — e.g. @mikaylanogueira (or a profile URL)\n• Sound / music — paste a /music/ URL or a sound ID to get every clip using that audio\n\nPaste TikTok URLs directly — no need to say which is which.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "viralPreset": {
            "title": "Viral Preset",
            "enum": [
              "",
              "fast-rising",
              "small-creator-breakouts",
              "most-shared",
              "competitor-winners",
              "early-emerging",
              "exclude-established"
            ],
            "type": "string",
            "description": "Optional one-click goal that tunes ranking and recency for you. Leave as None to keep it simple.",
            "default": ""
          },
          "includeTrending": {
            "title": "Include Trending Feed",
            "type": "boolean",
            "description": "Also pull TikTok's public trending/explore feed. If Search is empty, trending is used automatically.",
            "default": false
          },
          "maxVideos": {
            "title": "Max Videos",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of video rows to return after ranking. Start small (20-50) for a fast, cheap first run.",
            "default": 50
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Optional 2-letter country hint such as AU or US. Soft preference: ranks clips from this country first and never removes videos (TikTok rarely tags a public region, so it is a hint, not a hard filter).",
            "default": ""
          },
          "timePeriod": {
            "title": "Time Period",
            "enum": [
              "1d",
              "7d",
              "30d",
              "90d",
              "all"
            ],
            "type": "string",
            "description": "Only include videos published within the selected period. Videos older than this are excluded (fewer results are returned rather than padding with older clips). Select \"All\" to apply no publication-date restriction. Note: the trending feed is not date-filtered, since trending content is current by nature.",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "breakoutScore",
              "viewsPerHour",
              "playCount",
              "likeCount",
              "commentCount",
              "shareCount",
              "createTime"
            ],
            "type": "string",
            "description": "Order the results. Breakout Score ranks the most viral/rising clips first.",
            "default": "breakoutScore"
          },
          "minViews": {
            "title": "Minimum Views",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep clips with at least this many views.",
            "default": 0
          },
          "minShares": {
            "title": "Minimum Shares",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep clips with at least this many shares.",
            "default": 0
          },
          "minEngagementRate": {
            "title": "Minimum Engagement Rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Minimum approximate engagement rate as a percentage — (likes + comments + shares + saves) ÷ views × 100. Enter a whole number, e.g. 5 for 5%. Range 0–100.",
            "default": 0
          },
          "minFollowers": {
            "title": "Minimum Creator Followers",
            "minimum": 0,
            "type": "integer",
            "description": "Include videos from creators with at least this many followers. Videos with unavailable follower counts are retained.",
            "default": 0
          },
          "maxFollowers": {
            "title": "Maximum Creator Followers",
            "minimum": 0,
            "type": "integer",
            "description": "Include videos from creators with no more than this many followers. Useful for finding small-creator breakouts. Videos with unavailable follower counts are retained.",
            "default": 0
          },
          "languageHint": {
            "title": "Language",
            "type": "string",
            "description": "Optional language filter such as en, es, or fr. Best-effort: applied only when TikTok provides a real language for a video.",
            "default": ""
          },
          "verifiedCreatorsOnly": {
            "title": "Verified Creators Only",
            "type": "boolean",
            "description": "Only return videos from verified creators.",
            "default": false
          },
          "excludeAds": {
            "title": "Exclude Ads",
            "type": "boolean",
            "description": "Drop videos detected as ads or paid partnerships.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}