{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Scraper: Videos, Profiles & Hashtags $0.25/1K",
    "description": "Scrape public TikTok videos, profiles, hashtags, search results and comments: views, likes, shares, captions, music and author stats. $0.25 per 1,000 videos; 100 profile videos cost $0.025. $0.08 browser setup only for hashtag and search runs that use a browser. No login.",
    "version": "1.0",
    "x-build-id": "tuDVzO5I4baJADjIN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vant47~tiktok-scraper-cheap/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vant47-tiktok-scraper-cheap",
        "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/vant47~tiktok-scraper-cheap/runs": {
      "post": {
        "operationId": "runs-sync-vant47-tiktok-scraper-cheap",
        "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/vant47~tiktok-scraper-cheap/run-sync": {
      "post": {
        "operationId": "run-sync-vant47-tiktok-scraper-cheap",
        "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": "Public profiles",
            "type": "array",
            "description": "Public TikTok usernames, @handles or HTTPS profile URLs. Videos are read newest first. Example: duolingo.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Public hashtags or TikTok tag URLs, for example coffee or #booktok. Returns the public tag ordering.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Video search phrases, for example coffee recipes. Signed-out search availability depends on the source and connection.",
            "items": {
              "type": "string"
            }
          },
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Public TikTok video or photo URLs, short TikTok share links, or video IDs. Each distinct video is saved once.",
            "items": {
              "type": "string"
            }
          },
          "resultsPerPage": {
            "title": "Videos per source",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum videos from each profile, hashtag or query, across every source page. Default 20. Also accepts maxVideosPerProfile; the smaller supplied value wins."
          },
          "maxItems": {
            "title": "Maximum videos in the run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Total distinct video limit across all inputs. Prefill 20. Without this field, the per-source limit times the number of inputs applies, up to 5,000. maxResults is an alias; the smaller supplied cap wins."
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Save public top-level comments as separate comment rows. Each delivered comment has its own price.",
            "default": false
          },
          "maxCommentsPerVideo": {
            "title": "Comments per video",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum top-level comments per delivered video. Default 100. commentsPerPost is an alias; the smaller supplied cap wins."
          },
          "includeProfileInfo": {
            "title": "Save profile rows",
            "type": "boolean",
            "description": "Save a separately priced profile row for each explicit profile, with public follower, following, bio and video counts. Author information inside video rows is included in the video price.",
            "default": false
          },
          "profileOnly": {
            "title": "Profiles only",
            "type": "boolean",
            "description": "Save explicit public profiles and skip their videos. Each profile row is separately priced.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Automatic: use Apify default datacenter first, with residential retries only when needed. An empty automatic proxy selection permits fallback. Explicit proxy disable, custom URLs, groups and country are respected.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxResults": {
            "title": "Maximum videos (alias)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Alias for maxItems. When both caps are present the smaller one wins."
          },
          "maxVideosPerProfile": {
            "title": "Videos per source (alias)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Alias for resultsPerPage. The smaller supplied cap wins."
          },
          "commentsPerPost": {
            "title": "Comments per video (alias)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Alias for maxCommentsPerVideo. The smaller supplied cap wins."
          },
          "postURLs": {
            "title": "Post URLs (alias)",
            "type": "array",
            "description": "Additional video URLs, merged and deduplicated with videoUrls.",
            "items": {
              "type": "string"
            }
          },
          "creators": {
            "title": "Creators (alias)",
            "type": "array",
            "description": "Additional profile handles, merged with profiles.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Usernames (alias)",
            "type": "array",
            "description": "Additional public usernames, merged with profiles.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (alias)",
            "type": "array",
            "description": "Additional search phrases, merged with searchQueries.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms (alias)",
            "type": "array",
            "description": "Additional search phrases, merged with searchQueries.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (alias)",
            "type": "array",
            "description": "HTTPS TikTok profile or video URLs, merged with profiles and videoUrls.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}