{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Profile Scraper & Data Extractor: Full Search Results",
    "description": "No login or cookies needed. Scrapes TikTok videos, profiles, hashtags and search results. Give it video links, profile names, hashtags or search words plus an optional date range; get each video's text, likes, plays, comments, author and music as rows.",
    "version": "0.1",
    "x-build-id": "MiTTRexaCGwTjN9cT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/h1018y~anvil-tiktok-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-h1018y-anvil-tiktok-api",
        "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/h1018y~anvil-tiktok-api/runs": {
      "post": {
        "operationId": "runs-sync-h1018y-anvil-tiktok-api",
        "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/h1018y~anvil-tiktok-api/run-sync": {
      "post": {
        "operationId": "run-sync-h1018y-anvil-tiktok-api",
        "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": {
          "profiles": {
            "title": "Profiles",
            "type": "array",
            "description": "TikTok profile names or links to read videos from, one per line, for example tiktok or https://www.tiktok.com/@tiktok.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Hashtags to read videos from, without the # sign, one per line, for example fyp.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Words to search TikTok videos for, one per line, for example cooking pasta.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postURLs": {
            "title": "Video links",
            "type": "array",
            "description": "Direct links to TikTok videos, for example https://www.tiktok.com/@tiktok/video/7106594312292453675.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "resultsPerPage": {
            "title": "Videos per profile, hashtag or search",
            "minimum": 1,
            "type": "integer",
            "description": "How many videos to return for each profile, hashtag or search query, for example 20.",
            "default": 1
          },
          "profileScrapeSections": {
            "title": "Profile sections",
            "type": "array",
            "description": "Which part of a profile to read: videos. Reposts are not supported and are ignored.",
            "default": [
              "videos"
            ],
            "items": {
              "type": "string"
            }
          },
          "profileSorting": {
            "title": "Profile sorting",
            "enum": [
              "latest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Order of a profile's videos: latest (default), popular (most likes first) or oldest. Popular and oldest look at about three times the asked number of videos first.",
            "default": "latest"
          },
          "excludePinnedPosts": {
            "title": "Exclude pinned posts",
            "type": "boolean",
            "description": "Turn on to leave out the videos a creator pinned to the top of the profile.",
            "default": false
          },
          "oldestPostDateUnified": {
            "title": "Oldest post date",
            "type": "string",
            "description": "Only videos from this date on, written as 2025-06-30 or as a span like 7 days or 1 month. The page is scrolled until videos get older than this.",
            "default": ""
          },
          "newestPostDate": {
            "title": "Newest post date",
            "type": "string",
            "description": "Only videos up to this date, written as 2025-06-30 or as a span like 7 days. Empty means no limit.",
            "default": ""
          },
          "mostDiggs": {
            "title": "Most likes",
            "type": "integer",
            "description": "Skip videos with more likes than this number, for example 100000."
          },
          "leastDiggs": {
            "title": "Least likes",
            "type": "integer",
            "description": "Skip videos with fewer likes than this number, for example 1000."
          },
          "maxFollowersPerProfile": {
            "title": "Max followers per profile",
            "type": "integer",
            "description": "Kept for compatibility: follower lists need a login and are not returned.",
            "default": 0
          },
          "maxFollowingPerProfile": {
            "title": "Max following per profile",
            "type": "integer",
            "description": "Kept for compatibility: following lists need a login and are not returned.",
            "default": 0
          },
          "searchSection": {
            "title": "Search section",
            "enum": [
              "",
              "/video",
              "/user"
            ],
            "type": "string",
            "description": "Where to search: /video for videos or /user for accounts. Empty means videos.",
            "default": ""
          },
          "maxProfilesPerQuery": {
            "title": "Max profiles per query",
            "type": "integer",
            "description": "Kept for compatibility: account search results are not returned yet.",
            "default": 10
          },
          "videoSearchSorting": {
            "title": "Video search sorting",
            "type": "string",
            "description": "Kept for compatibility: TikTok decides the order of search results.",
            "default": "0"
          },
          "videoSearchDateFilter": {
            "title": "Video search date filter",
            "type": "string",
            "description": "Kept for compatibility: use the post date fields to filter by date.",
            "default": "0"
          },
          "scrapeRelatedSearchWords": {
            "title": "Related search words",
            "type": "boolean",
            "description": "Kept for compatibility: related words are not returned.",
            "default": false
          },
          "scrapeRelatedVideos": {
            "title": "Related videos",
            "type": "boolean",
            "description": "Kept for compatibility: related videos are not returned.",
            "default": false
          },
          "scrapeAdditionalAuthorMeta": {
            "title": "Extra author details",
            "type": "boolean",
            "description": "Kept for compatibility: author details that the public page shows are always returned.",
            "default": false
          },
          "shouldDownloadVideos": {
            "title": "Download videos",
            "type": "boolean",
            "description": "Kept for compatibility: files are not downloaded, links are returned instead.",
            "default": false
          },
          "shouldDownloadCovers": {
            "title": "Download covers",
            "type": "boolean",
            "description": "Kept for compatibility: files are not downloaded, links are returned instead.",
            "default": false
          },
          "shouldDownloadSlideshowImages": {
            "title": "Download slideshow images",
            "type": "boolean",
            "description": "Kept for compatibility: files are not downloaded, links are returned instead.",
            "default": false
          },
          "shouldDownloadAvatars": {
            "title": "Download avatars",
            "type": "boolean",
            "description": "Kept for compatibility: files are not downloaded, links are returned instead.",
            "default": false
          },
          "shouldDownloadMusicCovers": {
            "title": "Download music covers",
            "type": "boolean",
            "description": "Kept for compatibility: files are not downloaded, links are returned instead.",
            "default": false
          },
          "videoKvStoreIdOrName": {
            "title": "Video store",
            "type": "string",
            "description": "Kept for compatibility: not used because videos are not downloaded."
          },
          "downloadSubtitlesOptions": {
            "title": "Subtitles",
            "type": "string",
            "description": "Kept for compatibility: subtitles are not returned.",
            "default": "NEVER_DOWNLOAD_SUBTITLES"
          },
          "aiVideoDescription": {
            "title": "AI video description",
            "type": "boolean",
            "description": "Kept for compatibility: AI descriptions are not produced.",
            "default": false
          },
          "aiVideoSummary": {
            "title": "AI video summary",
            "type": "boolean",
            "description": "Kept for compatibility: AI summaries are not produced.",
            "default": false
          },
          "commentsPerPost": {
            "title": "Comments per post",
            "type": "integer",
            "description": "Kept for compatibility: comments are not returned, the comment count is.",
            "default": 0
          },
          "topLevelCommentsPerPost": {
            "title": "Top-level comments per post",
            "type": "integer",
            "description": "Kept for compatibility: comments are not returned, the comment count is.",
            "default": 0
          },
          "maxRepliesPerComment": {
            "title": "Replies per comment",
            "type": "integer",
            "description": "Kept for compatibility: comments are not returned, the comment count is.",
            "default": 0
          },
          "proxyCountryCode": {
            "title": "Proxy country",
            "type": "string",
            "description": "Kept for compatibility: the Apify proxy picks the country; leave the default.",
            "default": "None"
          },
          "useApifyProxy": {
            "title": "Use Apify proxy",
            "type": "boolean",
            "description": "Send requests through the Apify proxy; the site usually refuses plain data center traffic.",
            "default": true
          },
          "proxyGroups": {
            "title": "Proxy groups",
            "type": "array",
            "description": "Optional Apify proxy groups to use, for example RESIDENTIAL. Leave empty for the default.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new",
            "type": "boolean",
            "description": "Turn on to return only results not seen in the previous run with the same input; good for a schedule.",
            "default": false
          },
          "webhookUrl": {
            "title": "Send results to (webhook URL)",
            "type": "string",
            "description": "Optional. An https address - your own system, Zapier, Make or a Slack incoming webhook - that gets each run's results as JSON (with 'only new' on: just the new ones). Example: https://hooks.slack.com/services/T000/B000/XXXX"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}