{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Comments Scraper — Comments & Replies by Video URL",
    "description": "Paste TikTok video URLs and get their public comments and replies: text, likes, reply count, date, commenter and thread IDs, plus optional video stats. No login or cookies. $0.625 per 1,000 comments on the Free plan, platform usage included. CSV, JSON, API.",
    "version": "0.5",
    "x-build-id": "vJTvPZgC0J7GSrdhx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/peerless_columbine~tiktok-video-scraper-independent/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-peerless_columbine-tiktok-video-scraper-independent",
        "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/peerless_columbine~tiktok-video-scraper-independent/runs": {
      "post": {
        "operationId": "runs-sync-peerless_columbine-tiktok-video-scraper-independent",
        "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/peerless_columbine~tiktok-video-scraper-independent/run-sync": {
      "post": {
        "operationId": "run-sync-peerless_columbine-tiktok-video-scraper-independent",
        "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": {
          "postURLs": {
            "title": "Direct URL(s) for scraping specific video(s)",
            "minItems": 0,
            "maxItems": 100,
            "type": "array",
            "description": "Main input: TikTok videos to scrape and collect comments from. Accepts canonical URLs (https://www.tiktok.com/@user/video/<id> or /photo/<id>), vm.tiktok.com / vt.tiktok.com / tiktok.com/t/ share links, or numeric video IDs. Max 100 per run; duplicates are collected once. For runs that use only profiles/hashtags/searchQueries, set this explicitly to [] - otherwise the default video is scraped too.",
            "items": {
              "type": "string"
            },
            "default": [
              "https://www.tiktok.com/@apifylife/video/7200360993149553925"
            ]
          },
          "scrapeRelatedVideos": {
            "title": "Scrape related videos",
            "type": "boolean",
            "description": "When true, also scrape TikTok's related-video list for each video in postURLs (up to resultsPerPage per video). Experimental: this source is often unavailable and then fails with an error for that input.",
            "default": false
          },
          "resultsPerPage": {
            "title": "Videos per profile, hashtag, search or related input",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum videos returned per discovery input (each profile, hashtag, search query or related list). Does not limit postURLs. With the default profileDiscoveryMode=public-recent-sample it must be 10 or less. Allowed range: 1–1,000,000.",
            "default": 1
          },
          "shouldDownloadVideos": {
            "title": "Store video files",
            "type": "boolean",
            "description": "When true, saves each video's MP4 file to the key-value store and links it in the row; billed as the video-download add-on per delivered file. Files larger than maxMediaBytes fail. Not allowed with commentsOnly.",
            "default": false
          },
          "shouldDownloadCovers": {
            "title": "Include thumbnails",
            "type": "boolean",
            "description": "When true, saves each video's cover image (thumbnail) to the key-value store and links it in the row. No extra fee, but slower. Not allowed with commentsOnly.",
            "default": false
          },
          "downloadSubtitlesOptions": {
            "title": "Subtitles & Transcription",
            "enum": [
              "NEVER_DOWNLOAD_SUBTITLES",
              "DOWNLOAD_SUBTITLES",
              "DOWNLOAD_AND_TRANSCRIBE_VIDEOS_WITHOUT_SUBTITLES",
              "TRANSCRIBE_ALL_VIDEOS"
            ],
            "type": "string",
            "description": "Subtitles/transcripts per video. Accepted values: NEVER_DOWNLOAD_SUBTITLES (none); DOWNLOAD_SUBTITLES (TikTok's own subtitles, only if present); DOWNLOAD_AND_TRANSCRIBE_VIDEOS_WITHOUT_SUBTITLES (subtitles, else local speech-to-text); TRANSCRIBE_ALL_VIDEOS (speech-to-text for all). Speech-to-text is billed per started minute, needs 1024 MB memory and videos up to maxTranscriptionSeconds. Not allowed with commentsOnly.",
            "default": "NEVER_DOWNLOAD_SUBTITLES"
          },
          "shouldDownloadSlideshowImages": {
            "title": "Download slideshow images",
            "type": "boolean",
            "description": "When true, saves the images of photo/slideshow posts to the key-value store and links them in the row. No extra fee, but slower. Not allowed with commentsOnly.",
            "default": false
          },
          "videoKvStoreIdOrName": {
            "title": "✍️ Name your storage for videos",
            "pattern": "^[a-zA-Z0-9-]+$",
            "type": "string",
            "description": "Optional key-value store for downloaded media: a 17-character store ID or a store name (a named store is created if missing and is kept after the run). Leave empty to use the run's default store. Only matters when a download option is on. Example: `tiktok-media`."
          },
          "allowPartialResults": {
            "title": "Keep real rows when an optional media download fails",
            "type": "boolean",
            "description": "When true, a video row is still output (and billed) even if an optional part failed (e.g. media download, transcript, AI, incomplete profile list); its coverage field shows what is missing. When false (default), such a video is reported as an error instead.",
            "default": false
          },
          "dnsResolver": {
            "title": "DNS resolver",
            "enum": [
              "system",
              "google-doh"
            ],
            "type": "string",
            "description": "Leave at default (system). Accepted values: system, google-doh. google-doh resolves hostnames via Google DNS-over-HTTPS; only needed when local DNS returns fake addresses (e.g. a local proxy tool).",
            "default": "system"
          },
          "maxConcurrency": {
            "title": "Concurrent video requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Leave at default unless tuning: number of videos processed in parallel; all requests still share one pacing interval. Allowed range: 1–10.",
            "default": 2
          },
          "maxRequests": {
            "title": "Source request ceiling",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum TikTok requests for the whole run, including redirects, comment and reply pages (up to 20 comments each) and media downloads. The default 50 is small - raise it for many videos or comments. When reached, collection stops and the run is marked incomplete. Allowed range: 1–1000.",
            "default": 50
          },
          "maxRunSeconds": {
            "title": "Collection deadline",
            "minimum": 10,
            "maximum": 3600,
            "type": "integer",
            "description": "Time budget in seconds for collecting data; after it no new work starts and the summary is saved. Keep the Apify run timeout longer than this. Raise it for many comments, transcription (e.g. 300) or AI analysis (e.g. 450). Allowed range: 10–3600.",
            "default": 100
          },
          "requestTimeoutSeconds": {
            "title": "Request timeout",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Leave at default unless tuning: timeout per TikTok request, in seconds (also limited by the remaining maxRunSeconds). Allowed range: 1–60.",
            "default": 15
          },
          "requestIntervalMillis": {
            "title": "Minimum request spacing (ms)",
            "minimum": 200,
            "maximum": 10000,
            "type": "integer",
            "description": "Leave at default unless tuning: minimum pause between the starts of TikTok requests, in milliseconds. Allowed range: 200–10,000.",
            "default": 500
          },
          "maxRetries": {
            "title": "Transient retries",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Leave at default unless tuning: retries for network errors and HTTP 5xx. Access denials and bot challenges are never retried. Allowed range: 0–2.",
            "default": 1
          },
          "maxMediaBytes": {
            "title": "Maximum bytes per media file",
            "minimum": 1000,
            "maximum": 50000000,
            "type": "integer",
            "description": "Maximum size of each downloaded media file, in bytes (default 10 MB); larger files fail with an error instead of being saved. Allowed range: 1000–50,000,000.",
            "default": 10000000
          },
          "saveSourceEvidence": {
            "title": "Save public page evidence",
            "type": "boolean",
            "description": "Debugging only, leave off: also saves the raw TikTok pages and comment API responses to the key-value store (keys SOURCE-*, Base64 JSON); with AI analysis on, also the source MP4 and sampled frame PNGs.",
            "default": false
          },
          "commentsPerPost": {
            "title": "Maximum comments per video (including replies)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum comments per video, replies included. 0 = no comments, video data only (the API default when omitted). Set above 0 to collect public comments; required for every other comment option. Allowed range: 0–5000.",
            "default": 0
          },
          "maxRepliesPerComment": {
            "title": "Maximum replies per top-level comment",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum replies fetched per top-level comment; replies count toward commentsPerPost. 0 = top-level comments only. Each reply row includes its parent and root comment IDs. Allowed range: 0–1000.",
            "default": 0
          },
          "topLevelCommentsPerPost": {
            "title": "Maximum top-level comments per video",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional extra cap on top-level (non-reply) comments per video, e.g. to leave room in commentsPerPost for replies. Leave empty to use commentsPerPost. Allowed range: 0–5000. Example: `20`."
          },
          "commentsOnly": {
            "title": "Output comments as Dataset rows",
            "type": "boolean",
            "description": "When true, each dataset row is one comment or reply (no video rows; only comment fees). Requires commentsPerPost > 0 and all download, subtitle and AI options off. When false, comments are attached to video rows (see commentsOutputMode).",
            "default": false
          },
          "commentPageSize": {
            "title": "Comment page size",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Leave at default unless tuning: comments requested per page, for both comments and replies. Allowed range: 1–20.",
            "default": 20
          },
          "maxConsecutiveEmptyCommentPages": {
            "title": "Maximum consecutive comment pages without new results",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Leave at default unless tuning: how many comment pages in a row without new comments are tolerated before comment paging stops for that video. 0 = stop at the first such page. Allowed range: 0–10.",
            "default": 3
          },
          "hashtags": {
            "title": "#️⃣ Videos with this hashtag",
            "maxItems": 100,
            "type": "array",
            "description": "Experimental, usually leave empty: hashtag names without # to find videos from the hashtag page (up to resultsPerPage each). This source is currently unreliable and often fails with DISCOVERY_SOURCE_UNAVAILABLE. Example: `[\"cooking\"]`.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "profiles": {
            "title": "Usernames",
            "maxItems": 100,
            "type": "array",
            "description": "TikTok usernames (with or without @) or profile URLs https://www.tiktok.com/@username to get recent videos from. With the default profileDiscoveryMode=public-recent-sample: up to 10 recent videos per profile (resultsPerPage at most 10, latest sorting, no date/likes/pinned filters). Set postURLs to [] if you only want profile videos. Example: `[\"nasa\"]`.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "profileScrapeSections": {
            "title": "Profile sections to scrape",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Leave as [\"videos\"]: only the videos section is supported. Accepted values: videos, reposts, stories - but reposts and stories are rejected with an error.",
            "items": {
              "type": "string",
              "enum": [
                "videos",
                "reposts",
                "stories"
              ],
              "enumTitles": [
                "Videos",
                "Reposts",
                "Stories"
              ]
            },
            "default": [
              "videos"
            ]
          },
          "profileSorting": {
            "title": "Profile video sorting",
            "enum": [
              "latest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Order of profile videos. Accepted values: latest (default), popular, oldest. popular and oldest need profileDiscoveryMode=complete (currently unreliable); date filters cannot be combined with popular. TikTok limits popular to roughly 400-500 videos per profile.",
            "default": "latest"
          },
          "excludePinnedPosts": {
            "title": "Exclude pinned posts",
            "type": "boolean",
            "description": "When true, skips pinned videos on profiles. Requires profileDiscoveryMode=complete.",
            "default": false
          },
          "oldestPostDateUnified": {
            "title": "📅 Date filter - scrape profile videos published after [date] ($)",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Only profile videos published on or after this date: YYYY-MM-DD (UTC), a number of days (1 = today only, 2 = yesterday and today), or a relative period like `3 weeks`. Requires profileDiscoveryMode=complete; cannot be combined with likes filters or popular sorting. Example: `2026-10-01`."
          },
          "newestPostDate": {
            "title": "📅 Date filter - scrape profile videos published before [date] ($)",
            "type": "string",
            "description": "Only profile videos published on or before this date, YYYY-MM-DD (UTC, the whole day is included). Requires profileDiscoveryMode=complete; cannot be combined with likes filters or popular sorting. Example: `2026-10-31`."
          },
          "mostDiggs": {
            "title": "⭐ Popularity filter - scrape videos with number of hearts < [number] ($)",
            "minimum": 1,
            "type": "integer",
            "description": "Only profile videos with fewer likes (hearts) than this number. Requires profileDiscoveryMode=complete; cannot be combined with date filters; must be greater than leastDiggs. Minimum: 1. Example: `100000`."
          },
          "leastDiggs": {
            "title": "⭐ Popularity filter - scrape videos with number of hearts ≥ [number] ($)",
            "minimum": 1,
            "type": "integer",
            "description": "Only profile videos with at least this many likes (hearts). Requires profileDiscoveryMode=complete; cannot be combined with date filters. Minimum: 1. Example: `1000`."
          },
          "maxFollowersPerProfile": {
            "title": "🗂️ Maximum number of followers profiles ($)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Not supported, keep at 0: follower lists are not implemented and any other value is rejected. Allowed range: 0–5000.",
            "default": 0
          },
          "maxFollowingPerProfile": {
            "title": "🗂️ Maximum number of following profiles ($)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Not supported, keep at 0: following lists are not implemented and any other value is rejected. Allowed range: 0–5000.",
            "default": 0
          },
          "searchQueries": {
            "title": "Search queries",
            "maxItems": 100,
            "type": "array",
            "description": "Experimental, usually leave empty: keywords to search TikTok videos for (up to resultsPerPage each). Requires searchSection=`/video` with default sorting and date filter. Currently unreliable and may fail with DISCOVERY_SOURCE_UNAVAILABLE. Example: `[\"street food\"]`.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "searchSection": {
            "title": "Search (currently unavailable): Top/Video/Profile section",
            "enum": [
              "",
              "/video",
              "/user"
            ],
            "type": "string",
            "description": "Only used with searchQueries, and must then be `/video` (video search). Accepted values: `` (Top), `/video`, `/user` (profiles) - Top and profile search are not supported and are rejected.",
            "default": ""
          },
          "maxProfilesPerQuery": {
            "title": "Number of profiles per query",
            "minimum": 1,
            "type": "integer",
            "description": "Not used: profile search is not supported. Leave at default. Minimum: 1.",
            "default": 10
          },
          "videoSearchSorting": {
            "title": "Search (currently unavailable): 🎯 Video search sorting ($)",
            "enum": [
              "MOST_RELEVANT",
              "MOST_LIKED",
              "LATEST"
            ],
            "type": "string",
            "description": "Only used with searchQueries; only MOST_RELEVANT is supported, other values are rejected. Accepted values: MOST_RELEVANT, MOST_LIKED, LATEST.",
            "default": "MOST_RELEVANT"
          },
          "videoSearchDateFilter": {
            "title": "Search (currently unavailable): 📅 Video search date filter ($)",
            "enum": [
              "ALL_TIME",
              "PAST_24_HOURS",
              "PAST_WEEK",
              "PAST_MONTH",
              "LAST_3_MONTHS",
              "LAST_6_MONTHS"
            ],
            "type": "string",
            "description": "Only used with searchQueries; only ALL_TIME is supported, other values are rejected. Accepted values: ALL_TIME, PAST_24_HOURS, PAST_WEEK, PAST_MONTH, LAST_3_MONTHS, LAST_6_MONTHS.",
            "default": "ALL_TIME"
          },
          "scrapeRelatedSearchWords": {
            "title": "Scrape related search words",
            "type": "boolean",
            "description": "Not supported, keep false: true is rejected with an error.",
            "default": false
          },
          "scrapeAdditionalAuthorMeta": {
            "title": "Scrape additional author profile metadata",
            "type": "boolean",
            "description": "When true, fetches the author's profile page for each directly supplied video to add fuller author data (e.g. account creation time, live room ID). One extra request per video. Profile-discovered videos already include it.",
            "default": false
          },
          "shouldDownloadAvatars": {
            "title": "Include profile avatars",
            "type": "boolean",
            "description": "When true, saves each author's profile picture to the key-value store and links it in the row. No extra fee. Not allowed with commentsOnly.",
            "default": false
          },
          "shouldDownloadMusicCovers": {
            "title": "Include sound covers",
            "type": "boolean",
            "description": "When true, saves each video's sound/music cover image to the key-value store and links it in the row. No extra fee. Not allowed with commentsOnly.",
            "default": false
          },
          "aiVideoDescription": {
            "title": "AI video description",
            "type": "boolean",
            "description": "Experimental: timestamped English captions from sampled video frames plus recognized speech, saved under videoMeta.aiVideoDescription. Runs locally (no external API), billed per started second of video. Needs 2048 MB memory, a longer maxRunSeconds (e.g. 450) and videos up to maxVisualSeconds. Accuracy not guaranteed. Not allowed with commentsOnly.",
            "default": false
          },
          "aiVideoSummary": {
            "title": "AI video summary",
            "type": "boolean",
            "description": "Experimental: short English summary built from representative frame captions and recognized speech, saved under videoMeta.aiVideoSummary. Runs locally, billed per started second of video. Needs 2048 MB memory and a longer maxRunSeconds. May miss content. Not allowed with commentsOnly.",
            "default": false
          },
          "proxyCountryCode": {
            "title": "Scraping exit country",
            "enum": [
              "None",
              "AF",
              "AL",
              "DZ",
              "AS",
              "AD",
              "AO",
              "AI",
              "AG",
              "AR",
              "AM",
              "AU",
              "AT",
              "AZ",
              "BS",
              "BH",
              "BB",
              "BY",
              "BE",
              "BZ",
              "BJ",
              "BM",
              "BT",
              "BO",
              "BA",
              "BW",
              "BR",
              "VG",
              "BN",
              "BG",
              "BF",
              "BI",
              "KH",
              "CM",
              "CA",
              "CV",
              "KY",
              "TD",
              "CL",
              "CO",
              "CK",
              "CR",
              "HR",
              "CY",
              "CZ",
              "CD",
              "DK",
              "DJ",
              "DO",
              "EC",
              "EG",
              "SV",
              "EE",
              "ET",
              "FK",
              "FJ",
              "FI",
              "FR",
              "PF",
              "GA",
              "GE",
              "DE",
              "GH",
              "GI",
              "GR",
              "GL",
              "GD",
              "GP",
              "GT",
              "GN",
              "GW",
              "GY",
              "HN",
              "HU",
              "IS",
              "ID",
              "IQ",
              "IE",
              "IM",
              "IL",
              "IT",
              "CI",
              "JM",
              "JP",
              "JE",
              "KZ",
              "KE",
              "XK",
              "KW",
              "LA",
              "LV",
              "LB",
              "LS",
              "LR",
              "LY",
              "LT",
              "LU",
              "MO",
              "MG",
              "MW",
              "MY",
              "MV",
              "ML",
              "MT",
              "MH",
              "MQ",
              "MR",
              "MU",
              "MX",
              "MD",
              "MC",
              "MN",
              "ME",
              "MA",
              "MZ",
              "MM",
              "NA",
              "NR",
              "NP",
              "NL",
              "NZ",
              "NI",
              "NG",
              "MK",
              "NO",
              "OM",
              "PS",
              "PA",
              "PG",
              "PY",
              "PE",
              "PH",
              "PL",
              "PT",
              "PR",
              "QA",
              "CG",
              "RO",
              "RU",
              "RW",
              "RE",
              "KN",
              "LC",
              "MF",
              "PM",
              "VC",
              "SM",
              "SA",
              "SN",
              "RS",
              "SL",
              "SG",
              "SX",
              "SK",
              "SB",
              "SO",
              "ZA",
              "KR",
              "ES",
              "LK",
              "SR",
              "SZ",
              "SE",
              "CH",
              "TW",
              "TJ",
              "TZ",
              "TH",
              "TG",
              "TO",
              "TT",
              "TN",
              "TR",
              "TC",
              "TV",
              "VI",
              "UG",
              "UA",
              "AE",
              "GB",
              "US",
              "UY",
              "VE",
              "VN",
              "WF",
              "YE",
              "ZM",
              "ZW",
              "AX"
            ],
            "type": "string",
            "description": "Country the requests come from, as a 2-letter ISO code (e.g. `US`, `GB`) - uses Apify residential proxy. `None` (default) = direct connection, no proxy. It does not filter content by country. If an exit in that country cannot be verified, the run stops (no fallback).",
            "default": "None"
          },
          "emitErrorRows": {
            "title": "Include competitor-style error items",
            "type": "boolean",
            "description": "When true (default), failed inputs are written to the dataset as error rows (recordType error, with errorCode, input, url, error) at no charge. Set false to keep only successful rows; details remain in the SUMMARY record.",
            "default": true
          },
          "commentsOutputMode": {
            "title": "Comment storage",
            "enum": [
              "nested",
              "separate"
            ],
            "type": "string",
            "description": "Where comments go when commentsOnly is false. Accepted values: nested (default; comments array inside each video row), separate (comments saved in a separate dataset per video, linked via commentsDatasetUrl). Ignored when commentsOnly is true.",
            "default": "nested"
          },
          "maxPagesPerDiscovery": {
            "title": "Maximum pages per discovery input",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Leave at default unless tuning: maximum list pages read per profile, hashtag, search or related input. Allowed range: 1–100.",
            "default": 20
          },
          "maxDiscoveredVideos": {
            "title": "Maximum discovered video IDs",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Leave at default unless tuning: maximum video IDs listed per discovery input before filters and sorting are applied. Allowed range: 1–5000.",
            "default": 500
          },
          "asrModel": {
            "title": "Local speech model",
            "enum": [
              "tiny",
              "base"
            ],
            "type": "string",
            "description": "Speech-to-text model (local faster-whisper on CPU, downloaded on first use). Accepted values: tiny (default, faster), base (more accurate, slower). Only used when transcribing or with AI analysis.",
            "default": "tiny"
          },
          "asrLanguage": {
            "title": "Speech language",
            "pattern": "^[a-z]{2,3}$",
            "type": "string",
            "description": "Optional spoken-language code for speech-to-text, ISO 639-1. Leave empty to auto-detect. Only used when transcribing or with AI analysis. Example: `en`."
          },
          "maxTranscriptionSeconds": {
            "title": "Maximum video duration for transcription",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Videos longer than this many seconds are not transcribed (error for that video). Allowed range: 1–300.",
            "default": 60
          },
          "maxVisualSeconds": {
            "title": "Maximum video duration for AI analysis",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Videos longer than this many seconds are not AI-analyzed (error for that video). Only used with aiVideoDescription/aiVideoSummary. Allowed range: 1–120.",
            "default": 60
          },
          "visualFrameCount": {
            "title": "Sampled frames for AI analysis",
            "minimum": 0,
            "maximum": 128,
            "type": "integer",
            "description": "Advanced, AI analysis only: 0 (default) samples the whole video every visualSampleIntervalSeconds plus scene cuts and first/last frame. A positive number instead samples exactly that many evenly spaced frames (faster, less coverage). Allowed range: 0–128.",
            "default": 0
          },
          "visualSampleIntervalSeconds": {
            "title": "AI maximum regular sampling interval",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Advanced, AI analysis only: seconds between sampled frames when visualFrameCount is 0. Allowed range: 1–5.",
            "default": 1
          },
          "maxVisualFrames": {
            "title": "AI sampled-frame ceiling",
            "minimum": 8,
            "maximum": 256,
            "type": "integer",
            "description": "Advanced, AI analysis only: maximum frames analyzed per video; if sampling needs more, analysis of that video fails rather than silently skipping frames. Allowed range: 8–256.",
            "default": 128
          },
          "profileDiscoveryMode": {
            "title": "Profile acquisition scope",
            "enum": [
              "complete",
              "public-recent-sample"
            ],
            "type": "string",
            "description": "How profile videos are found. Accepted values: public-recent-sample (default; up to 10 recent videos from TikTok's public creator embed, latest order, no filters), complete (full profile listing with sorting, date, likes and pinned filters; currently unreliable and may fail).",
            "default": "public-recent-sample"
          },
          "proxyConfiguration": {
            "title": "Apify Proxy (optional)",
            "type": "object",
            "description": "Advanced, usually leave empty: Apify Proxy settings. Empty + proxyCountryCode None = direct connection; setting only proxyCountryCode uses residential proxy. Use this to pick your own residential or datacenter groups; custom proxy URLs, SERP/Unblocker groups and a country different from proxyCountryCode are rejected."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}