{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Video Scraper — Profiles, Hashtags & URLs (cheap)",
    "description": "Low-cost TikTok scraper with the same input and output fields as the popular TikTok scraper: videos from hashtags, profiles and video URLs with views, likes, comments, shares, author, music, hashtags and subtitles. Export JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "qY3EaSRyWDCbJixCk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/istmobot~tiktok-scraper-cheap/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-istmobot-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/istmobot~tiktok-scraper-cheap/runs": {
      "post": {
        "operationId": "runs-sync-istmobot-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/istmobot~tiktok-scraper-cheap/run-sync": {
      "post": {
        "operationId": "run-sync-istmobot-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": {
          "hashtags": {
            "title": "#️⃣ Videos with this hashtag",
            "type": "array",
            "description": "TikTok hashtags to scrape videos from, with or without #, e.g. \"fyp\" or \"#cats\". Hashtag page URLs work too.",
            "items": {
              "type": "string"
            }
          },
          "resultsPerPage": {
            "title": "💯 Number of videos per hashtag or profile",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many videos to scrape for each hashtag and each profile. Same field name and meaning as the popular TikTok scraper.",
            "default": 1
          },
          "shouldDownloadVideos": {
            "title": "⬇️ Download video files",
            "type": "boolean",
            "description": "On: each video's MP4 file is saved to the run's key-value store and its link is added to `mediaUrls`. Charged per file delivered (event `video-download`); videos whose file cannot be fetched are not charged. Off: data only.",
            "default": false
          },
          "profiles": {
            "title": "Usernames",
            "type": "array",
            "description": "TikTok usernames (\"nasa\", \"@nasa\") or profile URLs. Scrapes the profile's videos, newest first, with full author data.",
            "items": {
              "type": "string"
            }
          },
          "excludePinnedPosts": {
            "title": "Exclude pinned posts",
            "type": "boolean",
            "description": "Skip pinned posts (usually the first videos on a profile).",
            "default": false
          },
          "oldestPostDateUnified": {
            "title": "📅 Only videos published after [date]",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Optional. Only videos uploaded on or after this date, e.g. 2025-01-31, or a relative value like \"7 days\" or \"2 weeks\". For profiles, scraping stops once older videos are reached. No extra charge."
          },
          "newestPostDate": {
            "title": "📅 Only videos published before [date]",
            "type": "string",
            "description": "Optional. Only videos uploaded on or before this date (YYYY-MM-DD). No extra charge."
          },
          "leastDiggs": {
            "title": "⭐ Only videos with hearts ≥ [number]",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Minimum number of likes (hearts). No extra charge."
          },
          "mostDiggs": {
            "title": "⭐ Only videos with hearts < [number]",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Only videos with fewer likes (hearts) than this. No extra charge."
          },
          "postURLs": {
            "title": "Direct URLs for scraping specific tiktoks",
            "type": "array",
            "description": "TikTok video or photo URLs, e.g. https://www.tiktok.com/@nasa/video/7665075736742530317. Short vm.tiktok.com links work too.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries (not supported)",
            "type": "array",
            "description": "Accepted for compatibility only. TikTok search requires a logged-in account, so each query returns a free error item with errorCode SEARCH_NOT_SUPPORTED. Use hashtags instead.",
            "items": {
              "type": "string"
            }
          },
          "profileSorting": {
            "title": "Profile video sorting",
            "enum": [
              "latest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Accepted for compatibility. Only \"latest\" is supported; other values fall back to latest.",
            "default": "latest"
          },
          "profileScrapeSections": {
            "title": "Profile sections to scrape",
            "type": "array",
            "description": "Accepted for compatibility. Only \"videos\" is supported.",
            "items": {
              "type": "string",
              "enum": [
                "videos",
                "reposts",
                "stories"
              ],
              "enumTitles": [
                "Videos",
                "Reposts",
                "Stories"
              ]
            },
            "default": [
              "videos"
            ]
          },
          "trendingCountries": {
            "title": "Countries",
            "type": "array",
            "description": "2-letter country codes, e.g. MX, CO, AR, BR, ES, US. The Actor takes each country's trending hashtags of the last 7 days (TikTok Creative Center) and scrapes their videos. Rows get `trendingCountry` and `trendingRank`. Available: US, FR, DE, IT, ES, GB, AR, AU, BR, CA, CO, EG, ID, IL, JP, KR, MY, MX, PH, SA, SG, ZA, TW, TH, TR, AE, VN.",
            "items": {
              "type": "string"
            }
          },
          "trendingHashtagsPerCountry": {
            "title": "Trending hashtags per country",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many trending hashtags to take per country, e.g. 10. Each one returns up to \"Number of videos per hashtag or profile\" videos.",
            "default": 10
          },
          "proxyCountryCode": {
            "title": "Proxy country",
            "enum": [
              "None",
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "BR",
              "MX",
              "AR",
              "CO",
              "IN",
              "ID",
              "JP",
              "KR",
              "PH",
              "TR",
              "SA",
              "AE"
            ],
            "type": "string",
            "description": "Country of the residential IP used to browse TikTok. Hashtag feeds differ by country; logged-out US hashtag feeds are capped by TikTok at a few videos, so \"None\" uses the United Kingdom (about 100 videos per hashtag). Profiles and video URLs return the same data everywhere. No extra charge. With \"Trending by country\" and \"None\", the first trending country is used.",
            "default": "None"
          },
          "proxyConfiguration": {
            "title": "Custom proxy (advanced)",
            "type": "object",
            "description": "Optional. Leave empty to use Apify residential proxy (recommended: TikTok blocks datacenter IPs after one or two requests)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}