TikTok Data Extractor avatar

TikTok Data Extractor

Try for free

Pay $4.00 for 1,000 results

Go to Store
TikTok Data Extractor

TikTok Data Extractor

clockworks/free-tiktok-scraper
Try for free

Pay $4.00 for 1,000 results

Extract data about videos, users, and channels based on hashtags or scrape full user profiles including posts, total likes, name, nickname, numbers of comments, shares, followers, following, and more.

You can access the TikTok Data Extractor programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "0.0",
5    "x-build-id": "fKbm87Q5UhiUbO4mU"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/clockworks~free-tiktok-scraper/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-clockworks-free-tiktok-scraper",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/clockworks~free-tiktok-scraper/runs": {
50      "post": {
51        "operationId": "runs-sync-clockworks-free-tiktok-scraper",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/clockworks~free-tiktok-scraper/run-sync": {
93      "post": {
94        "operationId": "run-sync-clockworks-free-tiktok-scraper",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "properties": {
134          "hashtags": {
135            "title": "#️⃣ Videos with this hashtag",
136            "type": "array",
137            "description": "Just add one or more TikTok hashtags and the scraper will collect data about videos containing this hashtag: likes, users, followers and more. <br> You can enter the hashtags one by one, or use the <strong>Bulk edit</strong> section to add a prepared list.",
138            "items": {
139              "type": "string"
140            }
141          },
142          "resultsPerPage": {
143            "title": "💯 Number of videos per hashtag, profile or search",
144            "minimum": 1,
145            "maximum": 1000000,
146            "type": "integer",
147            "description": "Add the number of tiktoks you want to scrape per hashtag, profile, or search query. This field is applicable to <strong>#️⃣ Hashtags</strong>, <strong>😎 Profiles</strong>, and <strong>🔍 Search</strong>.",
148            "default": 1
149          },
150          "profiles": {
151            "title": "Usernames",
152            "type": "array",
153            "description": "Add one or multiple TikTok usernames you want to scrape. You can enter the usernames one by one, or use the <strong>Bulk edit</strong> section to add a prepared list.",
154            "items": {
155              "type": "string"
156            }
157          },
158          "profileScrapeSections": {
159            "title": "Profile sections to scrape",
160            "minItems": 1,
161            "uniqueItems": true,
162            "type": "array",
163            "description": "If a profile has reposted videos, you can scrape them by selecting 'Reposts'",
164            "items": {
165              "type": "string",
166              "enum": [
167                "videos",
168                "reposts"
169              ],
170              "enumTitles": [
171                "Videos",
172                "Reposts"
173              ]
174            },
175            "default": [
176              "videos"
177            ]
178          },
179          "profileSorting": {
180            "title": "Profile video sorting",
181            "enum": [
182              "latest",
183              "popular",
184              "oldest"
185            ],
186            "type": "string",
187            "description": "Select Latest to scrape the most recent videos first, Oldest - the oldest videos first, Popular - the most popular videos first. Date filters only work with Latest and Oldest. Only supported for Videos section",
188            "default": "latest"
189          },
190          "oldestPostDate": {
191            "title": "Scrape profile videos newer than [date]",
192            "type": "string",
193            "description": "Optional filter. Only videos uploaded after or on this date will be scraped."
194          },
195          "scrapeLastNDays": {
196            "title": "Scrape profile videos from the last [X] days",
197            "minimum": 0,
198            "type": "integer",
199            "description": "Optional filter. Specify how old the scraped videos should be (in days). Putting <code>1</code> will get you only today's posts, <code>2</code> - tomorrow's and today's, and so on. If the <strong>Scrape videos newer than</strong> field above was set, the most recent videos will be scraped."
200          },
201          "newestPostDate": {
202            "title": "Scrape profile videos older than [date]",
203            "type": "string",
204            "description": "Optional filter. Only videos uploaded before or on this date will be scraped."
205          },
206          "excludePinnedPosts": {
207            "title": "Exclude pinned posts",
208            "type": "boolean",
209            "description": "Tick to exclude pinned posts from profiles. Pinned posts are usually the first videos on a profile's page.",
210            "default": false
211          },
212          "searchQueries": {
213            "title": "Search queries",
214            "type": "array",
215            "description": "Your keyword will apply to both videos <strong>and</strong> profiles. Use the <strong>Search sorting</strong> field below to specify whether you want your search to apply to top content, videos or users. <br> As for your query's format, you can use any query that works on TikTok.",
216            "items": {
217              "type": "string"
218            }
219          },
220          "searchSection": {
221            "title": "Search sorting",
222            "enum": [
223              "",
224              "/video",
225              "/user"
226            ],
227            "type": "string",
228            "description": "By default, this scraper will sort the search results by whatever shows up in the <strong>Top</strong> section of TikTok search. <br> But you can narrow it down: if you want to apply your search query to just videos, use <strong>Video</strong>, just profiles - <strong>Profile</strong>.",
229            "default": ""
230          },
231          "maxProfilesPerQuery": {
232            "title": "Number of profiles per query",
233            "minimum": 1,
234            "type": "integer",
235            "description": "Only applies to profile searches. In this case ignore the <strong> 💯 Number of videos </strong> section and choose the number of profiles you want to scrape here.",
236            "default": 10
237          },
238          "postURLs": {
239            "title": "Direct URLs for scraping specific tiktoks",
240            "type": "array",
241            "description": "Add the URLs of tiktok videos you want to scrape. You can paste video URLs one by one, or use the <strong>Bulk edit</strong> section to add a prepared list.",
242            "items": {
243              "type": "string"
244            }
245          },
246          "shouldDownloadVideos": {
247            "title": "Include videos",
248            "type": "boolean",
249            "description": "Tick to download TikTok videos. Note that this will increase time and costs needed to extract the data.",
250            "default": false
251          },
252          "shouldDownloadCovers": {
253            "title": "Include thumbnails",
254            "type": "boolean",
255            "description": "Tick to download TikTok video cover images (thumbnails). Note that this will increase time and costs needed to extract the data.",
256            "default": false
257          },
258          "shouldDownloadSubtitles": {
259            "title": "Include subtitles",
260            "type": "boolean",
261            "description": "Tick to download TikTok video subtitles (only when present on the video). Note that this will increase time and costs needed to extract the data.",
262            "default": false
263          },
264          "shouldDownloadSlideshowImages": {
265            "title": "Download slideshow images",
266            "type": "boolean",
267            "description": "Tick to download TikTok slideshow images. Note that this will increase costs and time required for scraping.",
268            "default": false
269          },
270          "videoKvStoreIdOrName": {
271            "title": "✍️ Name your storage for videos",
272            "pattern": "^[a-zA-Z0-9-]+$",
273            "type": "string",
274            "description": "Name (or ID) of the Key Value Store where the videos and other media like thumbnails will be stored. Omit to store in the default one. Using this option will provide a named Key-Value store can help bypass data retention and store the content forever until the store is manually deleted.<br><br>The Key-Value store's name can consist of a versatile combination of uppercase letters, lowercase letters, digits, or hyphens, all without any spaces."
275          }
276        }
277      },
278      "runsResponseSchema": {
279        "type": "object",
280        "properties": {
281          "data": {
282            "type": "object",
283            "properties": {
284              "id": {
285                "type": "string"
286              },
287              "actId": {
288                "type": "string"
289              },
290              "userId": {
291                "type": "string"
292              },
293              "startedAt": {
294                "type": "string",
295                "format": "date-time",
296                "example": "2025-01-08T00:00:00.000Z"
297              },
298              "finishedAt": {
299                "type": "string",
300                "format": "date-time",
301                "example": "2025-01-08T00:00:00.000Z"
302              },
303              "status": {
304                "type": "string",
305                "example": "READY"
306              },
307              "meta": {
308                "type": "object",
309                "properties": {
310                  "origin": {
311                    "type": "string",
312                    "example": "API"
313                  },
314                  "userAgent": {
315                    "type": "string"
316                  }
317                }
318              },
319              "stats": {
320                "type": "object",
321                "properties": {
322                  "inputBodyLen": {
323                    "type": "integer",
324                    "example": 2000
325                  },
326                  "rebootCount": {
327                    "type": "integer",
328                    "example": 0
329                  },
330                  "restartCount": {
331                    "type": "integer",
332                    "example": 0
333                  },
334                  "resurrectCount": {
335                    "type": "integer",
336                    "example": 0
337                  },
338                  "computeUnits": {
339                    "type": "integer",
340                    "example": 0
341                  }
342                }
343              },
344              "options": {
345                "type": "object",
346                "properties": {
347                  "build": {
348                    "type": "string",
349                    "example": "latest"
350                  },
351                  "timeoutSecs": {
352                    "type": "integer",
353                    "example": 300
354                  },
355                  "memoryMbytes": {
356                    "type": "integer",
357                    "example": 1024
358                  },
359                  "diskMbytes": {
360                    "type": "integer",
361                    "example": 2048
362                  }
363                }
364              },
365              "buildId": {
366                "type": "string"
367              },
368              "defaultKeyValueStoreId": {
369                "type": "string"
370              },
371              "defaultDatasetId": {
372                "type": "string"
373              },
374              "defaultRequestQueueId": {
375                "type": "string"
376              },
377              "buildNumber": {
378                "type": "string",
379                "example": "1.0.0"
380              },
381              "containerUrl": {
382                "type": "string"
383              },
384              "usage": {
385                "type": "object",
386                "properties": {
387                  "ACTOR_COMPUTE_UNITS": {
388                    "type": "integer",
389                    "example": 0
390                  },
391                  "DATASET_READS": {
392                    "type": "integer",
393                    "example": 0
394                  },
395                  "DATASET_WRITES": {
396                    "type": "integer",
397                    "example": 0
398                  },
399                  "KEY_VALUE_STORE_READS": {
400                    "type": "integer",
401                    "example": 0
402                  },
403                  "KEY_VALUE_STORE_WRITES": {
404                    "type": "integer",
405                    "example": 1
406                  },
407                  "KEY_VALUE_STORE_LISTS": {
408                    "type": "integer",
409                    "example": 0
410                  },
411                  "REQUEST_QUEUE_READS": {
412                    "type": "integer",
413                    "example": 0
414                  },
415                  "REQUEST_QUEUE_WRITES": {
416                    "type": "integer",
417                    "example": 0
418                  },
419                  "DATA_TRANSFER_INTERNAL_GBYTES": {
420                    "type": "integer",
421                    "example": 0
422                  },
423                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
424                    "type": "integer",
425                    "example": 0
426                  },
427                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
428                    "type": "integer",
429                    "example": 0
430                  },
431                  "PROXY_SERPS": {
432                    "type": "integer",
433                    "example": 0
434                  }
435                }
436              },
437              "usageTotalUsd": {
438                "type": "number",
439                "example": 0.00005
440              },
441              "usageUsd": {
442                "type": "object",
443                "properties": {
444                  "ACTOR_COMPUTE_UNITS": {
445                    "type": "integer",
446                    "example": 0
447                  },
448                  "DATASET_READS": {
449                    "type": "integer",
450                    "example": 0
451                  },
452                  "DATASET_WRITES": {
453                    "type": "integer",
454                    "example": 0
455                  },
456                  "KEY_VALUE_STORE_READS": {
457                    "type": "integer",
458                    "example": 0
459                  },
460                  "KEY_VALUE_STORE_WRITES": {
461                    "type": "number",
462                    "example": 0.00005
463                  },
464                  "KEY_VALUE_STORE_LISTS": {
465                    "type": "integer",
466                    "example": 0
467                  },
468                  "REQUEST_QUEUE_READS": {
469                    "type": "integer",
470                    "example": 0
471                  },
472                  "REQUEST_QUEUE_WRITES": {
473                    "type": "integer",
474                    "example": 0
475                  },
476                  "DATA_TRANSFER_INTERNAL_GBYTES": {
477                    "type": "integer",
478                    "example": 0
479                  },
480                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
481                    "type": "integer",
482                    "example": 0
483                  },
484                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
485                    "type": "integer",
486                    "example": 0
487                  },
488                  "PROXY_SERPS": {
489                    "type": "integer",
490                    "example": 0
491                  }
492                }
493              }
494            }
495          }
496        }
497      }
498    }
499  }
500}

TikTok Data Extractor OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for TikTok Data Extractor from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Developer
Maintained by Apify

Actor Metrics

  • 2.4k monthly users

  • 378 bookmarks

  • >99% runs succeeded

  • 14 hours response time

  • Created in Feb 2022

  • Modified 4 hours ago