{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Scraper",
    "description": "TikTok Scraper SD - TikTok Scraper is a social video data tool that extracts TikTok videos from keywords, hashtags, profiles and video URLs: caption, date, plays, hearts, comments, shares, saves, author, sound, hashtags, mentions, cover, subtitles, logged out, with optional media files.",
    "version": "1.0",
    "x-build-id": "xO46o2MS7IRnYb2NL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~tiktok-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-tiktok-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-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-tiktok-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-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-tiktok-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords, one per line, e.g. funny cats. Read from TikTok's public keyword pages (tiktok.com/discover/<keyword>): about 96 videos per keyword. A keyword TikTok has no page for is logged and skipped.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Hashtags without # (e.g. nasa), one per line. Each row carries the tag's total views and video count (searchHashtag). Videos come from TikTok's public keyword list for the tag word; see 'Only videos with the hashtag'.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles",
            "type": "array",
            "description": "TikTok usernames or profile URLs, e.g. nasa or https://www.tiktok.com/@nasa. The profile's videos are the ones Google has indexed (TikTok's own profile list needs a login-grade signed request); each video is then read in full from TikTok. Needs the Apify GOOGLE_SERP proxy.",
            "items": {
              "type": "string"
            }
          },
          "postURLs": {
            "title": "Video URLs",
            "type": "array",
            "description": "Direct TikTok video or photo-post links, e.g. https://www.tiktok.com/@europeanspaceagency/video/7623933268957744406. Short links (vm.tiktok.com / vt.tiktok.com) are followed.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Any TikTok URLs",
            "type": "array",
            "description": "Mixed TikTok links: video, profile (/@user), hashtag (/tag/<name>) or keyword page (/discover/<keyword>). Each is routed to the matching mode above.",
            "items": {
              "type": "string"
            }
          },
          "resultsPerPage": {
            "title": "Videos per hashtag, profile or search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many videos to return for each search query, hashtag and profile. The keyword list is paged 16 at a time until this number or TikTok's end (about 96 per keyword).",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum videos in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many rows in the whole run (all inputs together).",
            "default": 50
          },
          "onlyTaggedVideos": {
            "title": "Only videos with the hashtag",
            "type": "boolean",
            "description": "Hashtags: keep only videos whose caption carries #<tag> (measured 2026-10-08: 17 of 30 for #nasa). Off = every video of TikTok's keyword list for the tag word.",
            "default": true
          },
          "oldestPostDateUnified": {
            "title": "Published after",
            "type": "string",
            "description": "Only videos published on or after this date: 2026-01-31, or relative like 30 days, 2 weeks, 6 months. Applied to the videos TikTok returns (all modes)."
          },
          "newestPostDate": {
            "title": "Published before",
            "type": "string",
            "description": "Only videos published before this date: 2026-06-30, or relative like 7 days. Applied to the videos TikTok returns (all modes)."
          },
          "leastDiggs": {
            "title": "Minimum hearts",
            "minimum": 0,
            "type": "integer",
            "description": "Only videos with at least this many hearts (likes), e.g. 1000."
          },
          "mostDiggs": {
            "title": "Fewer hearts than",
            "minimum": 0,
            "type": "integer",
            "description": "Only videos with fewer hearts than this, e.g. 50000 (find smaller creators)."
          },
          "scrapeAdditionalAuthorMeta": {
            "title": "Full author profile data",
            "type": "boolean",
            "description": "Read each author's profile page once to add bio link, account creation date, organisation / seller flags, language and exact follower counts to authorMeta. One extra page per author.",
            "default": false
          },
          "downloadSubtitlesOptions": {
            "title": "Subtitles",
            "enum": [
              "NEVER_DOWNLOAD_SUBTITLES",
              "DOWNLOAD_SUBTITLES"
            ],
            "type": "string",
            "description": "Subtitle links (WebVTT, often TikTok's auto captions) are always in videoMeta.subtitleLinks. Download = also store each file in the key-value store (downloadLink).",
            "default": "NEVER_DOWNLOAD_SUBTITLES"
          },
          "shouldDownloadVideos": {
            "title": "Download videos",
            "type": "boolean",
            "description": "Store each MP4 (up to 9 MB) in the key-value store; links in mediaUrls. TikTok binds the file to the session that opened the video, so it is saved in that session.",
            "default": false
          },
          "shouldDownloadCovers": {
            "title": "Download covers",
            "type": "boolean",
            "description": "Store each video's cover image; videoMeta.coverUrl then points to the stored copy (originalCoverUrl keeps TikTok's link, which expires).",
            "default": false
          },
          "shouldDownloadAvatars": {
            "title": "Download avatars",
            "type": "boolean",
            "description": "Store each author's profile picture once; authorMeta.avatar then points to the stored copy.",
            "default": false
          },
          "shouldDownloadMusicCovers": {
            "title": "Download sound covers",
            "type": "boolean",
            "description": "Store each sound's cover image; musicMeta.coverMediumUrl then points to the stored copy.",
            "default": false
          },
          "shouldDownloadSlideshowImages": {
            "title": "Download slideshow images",
            "type": "boolean",
            "description": "Photo posts: store every image; slideshowImageLinks[].downloadLink points to the stored copy.",
            "default": false
          },
          "videoKvStoreIdOrName": {
            "title": "Key-value store for files",
            "type": "string",
            "description": "Name of a key-value store to keep downloaded files in (kept until you delete it). Empty = the run's own store (deleted with the run's data after the retention period)."
          },
          "maxConcurrency": {
            "title": "Video pages in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Video pages (video URLs and profile videos) read at the same time, each in its own session and proxy IP.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default. The proxy country is TikTok's region for keyword lists (US by default; pick another country for local results).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}