{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Search Scraper — Videos by Keyword, No Login",
    "description": "Search TikTok by any keyword and scrape every matching video — no login, no cookies. Get video URL, description, play/like/comment/share/save counts, posting date, creator handle with follower count, music, and hashtags for every result. Multiple keywords per run.",
    "version": "1.0",
    "x-build-id": "QIdGvJW3Sya6aRaTq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~tiktok-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-tiktok-search-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/memo23~tiktok-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-tiktok-search-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/memo23~tiktok-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-tiktok-search-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": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords or phrases to search TikTok for — one per line. Each keyword returns the videos TikTok's search ranks for it, the same results you'd see in the app — around 130–150 for a broad term, capped by Max videos per keyword. Add keyword variations for even wider coverage. Example: [\"specialty coffee\", \"home barista setup\"]. You can also pass drop-in aliases `searchQueries`, `hashtags`, or `query` instead.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "What to search",
            "enum": [
              "videos",
              "photos"
            ],
            "type": "string",
            "description": "Videos is TikTok's video search. Photo posts returns the slideshow posts for the keyword instead, each with its image URLs and the same engagement counts.",
            "default": "videos"
          },
          "maxResultsPerKeyword": {
            "title": "Max videos per keyword",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of videos to collect per keyword. Use it to cap cost or sample results, or raise it for a full sweep. This Actor pages past the ~20-result wall most TikTok search scrapers stop at — around 130–150 per keyword on a broad term, and as deep as this limit allows; niche terms return whatever TikTok has. Defaults to 2000, which keeps an unattended run's cost predictable.",
            "default": 2000
          },
          "maxItems": {
            "title": "Max total items (global run cap)",
            "minimum": 1,
            "type": "integer",
            "description": "Optional global cap on total dataset items across all keywords in the run. Applied before video downloads, Dataset.pushData, and pay-per-event charging so you never overshoot your budget."
          },
          "downloadVideos": {
            "title": "Download videos (watermark-free)",
            "type": "boolean",
            "description": "Also save each video's watermark-free MP4 into the run's key-value store and add its URL to the row as downloadedVideoUrl. Rows that can't be downloaded get downloadError instead (photo posts, for example). $2 per 1,000 downloads on top of the per-result price. Paid Apify plans only. Capped at 500 downloads per run; files over 100 MB are skipped. Default: false.",
            "default": false
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only items with likeCount greater than or equal to this value."
          },
          "maxLikes": {
            "title": "Maximum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only items with likeCount less than or equal to this value."
          },
          "minPlays": {
            "title": "Minimum plays / views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only items with playCount greater than or equal to this value."
          },
          "maxPlays": {
            "title": "Maximum plays / views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only items with playCount less than or equal to this value."
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only items with commentCount greater than or equal to this value."
          },
          "postedAfter": {
            "title": "Posted after (ISO date or relative)",
            "type": "string",
            "description": "Keep only items posted at or after this time. Accepts an ISO date/datetime (e.g. \"2026-06-01\" or \"2026-06-01T12:00:00Z\") or a relative window (\"24h\", \"1d\", \"7d\", \"week\", \"30d\", \"month\", \"90d\", \"180d\", \"365d\"). Enforced pre-billing against each item's parsed createTime."
          },
          "postedBefore": {
            "title": "Posted before (ISO date or relative)",
            "type": "string",
            "description": "Keep only items posted at or before this time. Accepts an ISO date (inclusive of that UTC day, e.g. \"2026-06-30\"), full ISO timestamp, or relative duration (e.g. \"7d\")."
          },
          "dateRange": {
            "title": "Date range / recency window",
            "type": "string",
            "description": "Shorthand recency filter (alias for postedAfter when postedAfter is unset). Accepts \"1d\"/\"24h\", \"7d\"/\"week\", \"30d\"/\"month\", \"90d\", \"180d\", \"365d\", \"all\", or an ISO date. Enforced pre-billing against parsed createTime."
          },
          "uniqueAuthors": {
            "title": "Unique authors only (1 post per creator)",
            "type": "boolean",
            "description": "Keep at most one video/photo per creator across the entire run. Useful for creator discovery and outreach."
          },
          "maxPostsPerAuthor": {
            "title": "Max posts per author",
            "minimum": 1,
            "type": "integer",
            "description": "Cap how many posts from the same creator are kept across the entire run (applied before video downloads and billing)."
          },
          "excludeAuthors": {
            "title": "Exclude authors",
            "type": "array",
            "description": "Creator handles (e.g. \"@brand\" or \"brand\" or profile URLs) to exclude case-insensitively before billing.",
            "items": {
              "type": "string"
            }
          },
          "includeKeywords": {
            "title": "Include keywords (caption / hashtags)",
            "type": "array",
            "description": "Keep only items whose caption, photo title, or hashtags contain at least one of these terms (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords (caption / hashtags)",
            "type": "array",
            "description": "Drop items whose caption, photo title, or hashtags contain any of these terms (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "onlyNewItems": {
            "title": "Only new items (skip previously seen IDs)",
            "type": "boolean",
            "description": "When enabled, loads previously delivered IDs from the named Apify Key-Value Store and skips any already-seen item before video downloads, Dataset.pushData, and billing."
          },
          "monitorStoreName": {
            "title": "Monitor KV store name",
            "type": "string",
            "description": "Name of the persistent Apify Key-Value Store used to remember seen IDs across runs (alphanumeric and hyphens, max 63 chars). Defaults to \"tiktok-search-monitor\"."
          },
          "resetMonitor": {
            "title": "Reset monitor state before run",
            "type": "boolean",
            "description": "Clear all previously saved IDs in monitorStoreName before starting this run."
          },
          "captionMaxLength": {
            "title": "Max caption length",
            "minimum": 1,
            "type": "integer",
            "description": "Truncate each item's description to at most this many characters using Unicode grapheme/surrogate-safe truncation (safe for emoji and CJK)."
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Return a concise row keeping core identity, caption, creator, engagement, duration, cover, music title, and hashtags while omitting verbose/secondary fields (authorId, authorSecUid, collectCount, downloadCount, repostCount, musicId, musicAuthor)."
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Recursively strip null, undefined, empty strings, empty arrays, and empty objects from each output row while strictly preserving 0 and false."
          },
          "searchQueries": {
            "title": "Search queries (alias for keywords)",
            "type": "array",
            "description": "Drop-in alias for keywords. Accepts plain phrases or #hashtags.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags (alias for keywords)",
            "type": "array",
            "description": "Drop-in alias for keywords. Leading # prefixes and tiktok.com/tag/ URLs are normalized cleanly.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Single search query (alias for keywords)",
            "type": "string",
            "description": "Drop-in single-string alias for keywords."
          },
          "searchMode": {
            "title": "Search mode (alias for searchType)",
            "type": "string",
            "description": "Drop-in alias for searchType. Normalizes \"videos\"/\"video\"/\"top\"/\"general\" to \"videos\", and \"photos\"/\"photo\"/\"slideshows\" to \"photos\"."
          },
          "maxItemsPerKeyword": {
            "title": "Max items per keyword (alias for maxResultsPerKeyword)",
            "minimum": 1,
            "type": "integer",
            "description": "Drop-in alias for maxResultsPerKeyword."
          },
          "maxVideosPerKeyword": {
            "title": "Max videos per keyword (alias for maxResultsPerKeyword)",
            "minimum": 1,
            "type": "integer",
            "description": "Drop-in alias for maxResultsPerKeyword."
          },
          "maxProfilesPerQuery": {
            "title": "Max results per query (alias for maxResultsPerKeyword)",
            "minimum": 1,
            "type": "integer",
            "description": "Drop-in alias for maxResultsPerKeyword."
          },
          "maxVideosTotal": {
            "title": "Max videos total (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Drop-in alias for maxItems (global run row cap)."
          },
          "maxResults": {
            "title": "Max results (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Drop-in alias for maxItems (global run row cap)."
          },
          "datePosted": {
            "title": "Date posted (alias for dateRange / postedAfter)",
            "type": "string",
            "description": "Drop-in alias for dateRange / postedAfter (\"24h\", \"7d\", \"30d\", \"90d\", \"180d\", or ISO date)."
          },
          "monitorMode": {
            "title": "Monitor mode (alias for onlyNewItems)",
            "type": "boolean",
            "description": "Drop-in alias for onlyNewItems."
          },
          "textMaxLength": {
            "title": "Max text length (alias for captionMaxLength)",
            "minimum": 1,
            "type": "integer",
            "description": "Drop-in alias for captionMaxLength."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}