{
  "openapi": "3.0.1",
  "info": {
    "title": "Tiktok Scraper ALL",
    "description": "Scrapes TikTok posts from profiles, hashtags, sounds, or video URLs. Extracts detailed post data including stats, captions, dates, hashtags, music info, and more—fast, reliable, and optimized for automation.",
    "version": "0.0",
    "x-build-id": "FxGCYfRKuo1yAVymN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scraping_solutions~tiktok-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scraping_solutions-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/scraping_solutions~tiktok-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scraping_solutions-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/scraping_solutions~tiktok-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scraping_solutions-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": {
          "resultsLimit": {
            "title": "Number of posts to scrape",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of posts to scrape per selected option. Applies ONLY to post scraping.",
            "default": 50
          },
          "timelineConfig": {
            "title": "Profile Posts Configuration",
            "type": "object",
            "description": "Configure how posts are scraped from profile timelines. These settings do NOT affect other scraping options.",
            "properties": {
              "username": {
                "title": "Profile(s)",
                "type": "array",
                "description": "List of TikTok usernames to scrape posts from. One username per line.",
                "editor": "stringList",
                "prefill": [
                  "google"
                ]
              },
              "FilterVideoPinned": {
                "title": "Pinned posts only",
                "type": "string",
                "description": "If enabled, only pinned posts will be scraped (posts only).",
                "editor": "select",
                "enum": [
                  "Yes",
                  "No"
                ],
                "default": "No"
              },
              "TypeVideo": {
                "title": "Post type",
                "type": "string",
                "description": "Choose whether to scrape regular posts or reposted content from the profile.",
                "editor": "select",
                "enum": [
                  "Videos",
                  "Reposts"
                ],
                "default": "Videos"
              },
              "TypeSorter": {
                "title": "Post sorting",
                "type": "string",
                "description": "Define how profile posts should be sorted before scraping.",
                "editor": "select",
                "enum": [
                  "Simple",
                  "Popular",
                  "Oldest",
                  "Liked"
                ],
                "default": "Simple"
              },
              "minDate": {
                "title": "Minimum post date",
                "type": "string",
                "description": "Scrape only posts published on or after this date.",
                "editor": "datepicker",
                "dateType": "absolute"
              },
              "maxDate": {
                "title": "Maximum post date",
                "type": "string",
                "description": "Scrape only posts published on or before this date.",
                "editor": "datepicker",
                "dateType": "absolute"
              }
            }
          },
          "hashtagConfig": {
            "title": "Hashtag Posts Configuration",
            "type": "object",
            "description": "Scrape TikTok posts by hashtag. Filters do NOT affect profile, sound, or video scraping.",
            "properties": {
              "hashtag": {
                "title": "Hashtag(s)",
                "description": "Enter one or more hashtags to scrape posts from.",
                "type": "array",
                "editor": "stringList"
              }
            }
          },
          "SoundsConfig": {
            "title": "Sound Posts Configuration",
            "type": "object",
            "description": "Scrape posts associated with specific TikTok sounds. Example: https://www.tiktok.com/music/xxxx",
            "properties": {
              "sound": {
                "title": "Sound ID(s)",
                "description": "Enter one or more TikTok sound IDs to scrape posts from.",
                "type": "array",
                "editor": "stringList"
              }
            }
          },
          "VideoConfig": {
            "title": "Single Video Configuration",
            "type": "object",
            "description": "Scrape detailed data from specific TikTok videos. Other filters do not apply.",
            "properties": {
              "video": {
                "title": "Video ID(s)",
                "description": "Enter one or more TikTok video IDs to scrape.",
                "type": "array",
                "editor": "stringList"
              }
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}