{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Search Scraper",
    "description": "TikTok Search Scraper SD - TikTok Search Scraper is a social media tool that extracts TikTok videos for any keyword: views, likes, comments, shares, saves, author, music, hashtags, video links and keyword insights. No login.",
    "version": "1.0",
    "x-build-id": "8ImjMxI2eJaPsfGLd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~tiktok-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~tiktok-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~tiktok-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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": "Keywords",
            "type": "array",
            "description": "Search words, one per line (e.g. funny cats, paris travel, skincare routine). Each keyword is searched separately.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerKeyword": {
            "title": "Max videos per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many videos to save for EACH keyword (TikTok shows about 96 per keyword to visitors).",
            "default": 20
          },
          "sortType": {
            "title": "Sort",
            "enum": [
              "relevance",
              "most-liked",
              "most-viewed",
              "newest"
            ],
            "type": "string",
            "description": "Order of the saved videos of each keyword.",
            "default": "relevance"
          },
          "datePosted": {
            "title": "Posted after",
            "type": "string",
            "description": "Keep only videos posted after this date (2026-01-31) or within a period (7 days, 3 months)."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos with at least this many views.",
            "default": 0
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos with at least this many likes.",
            "default": 0
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos with at least this many comments.",
            "default": 0
          },
          "minDurationSec": {
            "title": "Minimum duration (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos at least this long.",
            "default": 0
          },
          "strictKeywordMatch": {
            "title": "Strict keyword match",
            "type": "boolean",
            "description": "Keep only videos whose caption, hashtags, author or sound contain a word of the keyword.",
            "default": false
          },
          "uniqueAuthors": {
            "title": "One video per author",
            "type": "boolean",
            "description": "Keep only the first video of each creator per keyword.",
            "default": false
          },
          "deduplicateAcrossKeywords": {
            "title": "Remove duplicates across keywords",
            "type": "boolean",
            "description": "Save a video only for the first keyword that found it.",
            "default": false
          },
          "includeKeywordInsights": {
            "title": "Keyword insights",
            "type": "boolean",
            "description": "Add keyword-level numbers to every row: result count, average / median / max views, average likes and engagement, verified / ad / slideshow ratios, top hashtags, top creators, posting hours.",
            "default": true
          },
          "includeVideoDetails": {
            "title": "Full video details",
            "type": "boolean",
            "description": "Open every video for the fields the keyword list leaves out (caption language, country, reposts, ad and pinned flags, subtitles). Costs a little time, runs in parallel.",
            "default": true
          },
          "detailConcurrency": {
            "title": "Parallel video pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many video pages are opened at the same time when Full video details is on.",
            "default": 8
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "video"
            ],
            "type": "string",
            "description": "What to search. Videos (users and LIVE need a signed request TikTok gives only to its own app).",
            "default": "video"
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "2-letter country code (US, GB, DE ...): TikTok shows the results people in that country see (the proxy country follows it)."
          },
          "expansion": {
            "title": "Related keyword expansion",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Also search up to this many of TikTok's related searches (autocomplete) for every keyword. 0 = off.",
            "default": 0
          },
          "includeSearchTerms": {
            "title": "Related search terms",
            "type": "boolean",
            "description": "Add TikTok's related search terms (autocomplete) of each keyword to its rows (relatedSearchTerms).",
            "default": true
          },
          "relevanceThreshold": {
            "title": "Relevance threshold",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "0-1: keep only videos whose caption / hashtags / author / sound contain at least this share of the keyword words. 0 = off.",
            "default": 0
          },
          "includeDownloadUrl": {
            "title": "Video download links",
            "type": "boolean",
            "description": "Include the video file links. Off = the link columns stay empty (smaller dataset).",
            "default": true
          },
          "videoDownloadQuality": {
            "title": "Download quality",
            "enum": [
              "default",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Which of TikTok's video renditions the download link points to.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max videos in total",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on all saved videos of the run.",
            "default": 100000
          },
          "maxConcurrency": {
            "title": "Parallel keywords",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many keywords are searched at the same time.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default and recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}