
TikTok Scraper
4 days trial then $45.00/month - No credit card required now

TikTok Scraper
4 days trial then $45.00/month - No credit card required now
Extract data from TikTok videos, hashtags, and users. Use URLs or search queries to scrape TikTok profiles, hashtags, posts, URLs, shares, followers, hearts, names, video, and music-related data. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.
You can access the TikTok Scraper 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": "AeKZ1FdtztH5piPEx"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/clockworks~tiktok-scraper/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-clockworks-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~tiktok-scraper/runs": {
50 "post": {
51 "operationId": "runs-sync-clockworks-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~tiktok-scraper/run-sync": {
93 "post": {
94 "operationId": "run-sync-clockworks-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> - yesterday'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 "shouldDownloadAvatars": {
271 "title": "Include profile avatars",
272 "type": "boolean",
273 "description": "Tick to download authors' profile pictures. Note that this will increase time and costs needed to extract the data.",
274 "default": false
275 },
276 "shouldDownloadMusicCovers": {
277 "title": "Include sound covers",
278 "type": "boolean",
279 "description": "Tick to download cover images of sounds used in posts. Note that this will increase time and costs needed to extract the data.",
280 "default": false
281 },
282 "videoKvStoreIdOrName": {
283 "title": "✍️ Name your storage for videos",
284 "pattern": "^[a-zA-Z0-9-]+$",
285 "type": "string",
286 "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."
287 },
288 "proxyCountryCode": {
289 "title": "Proxy country",
290 "enum": [
291 "None",
292 "AF",
293 "AL",
294 "DZ",
295 "AS",
296 "AD",
297 "AO",
298 "AI",
299 "AQ",
300 "AG",
301 "AR",
302 "AM",
303 "AW",
304 "AU",
305 "AT",
306 "AZ",
307 "BS",
308 "BH",
309 "BD",
310 "BB",
311 "BY",
312 "BE",
313 "BZ",
314 "BJ",
315 "BM",
316 "BT",
317 "BO",
318 "BQ",
319 "BA",
320 "BW",
321 "BV",
322 "BR",
323 "IO",
324 "VG",
325 "BN",
326 "BG",
327 "BF",
328 "BI",
329 "KH",
330 "CM",
331 "CA",
332 "CV",
333 "KY",
334 "CF",
335 "TD",
336 "CL",
337 "CN",
338 "CX",
339 "CC",
340 "CO",
341 "KM",
342 "CK",
343 "CR",
344 "HR",
345 "CU",
346 "CW",
347 "CY",
348 "CZ",
349 "CD",
350 "DK",
351 "DJ",
352 "DM",
353 "DO",
354 "TL",
355 "EC",
356 "EG",
357 "SV",
358 "GQ",
359 "ER",
360 "EE",
361 "ET",
362 "FK",
363 "FO",
364 "FJ",
365 "FI",
366 "FR",
367 "GF",
368 "PF",
369 "TF",
370 "GA",
371 "GM",
372 "GE",
373 "DE",
374 "GH",
375 "GI",
376 "GR",
377 "GL",
378 "GD",
379 "GP",
380 "GU",
381 "GT",
382 "GG",
383 "GN",
384 "GW",
385 "GY",
386 "HT",
387 "HM",
388 "HN",
389 "HK",
390 "HU",
391 "IS",
392 "IN",
393 "ID",
394 "IR",
395 "IQ",
396 "IE",
397 "IM",
398 "IL",
399 "IT",
400 "CI",
401 "JM",
402 "JP",
403 "JE",
404 "JO",
405 "KZ",
406 "KE",
407 "KI",
408 "XK",
409 "KW",
410 "KG",
411 "LA",
412 "LV",
413 "LB",
414 "LS",
415 "LR",
416 "LY",
417 "LI",
418 "LT",
419 "LU",
420 "MO",
421 "MG",
422 "MW",
423 "MY",
424 "MV",
425 "ML",
426 "MT",
427 "MH",
428 "MQ",
429 "MR",
430 "MU",
431 "YT",
432 "MX",
433 "FM",
434 "MD",
435 "MC",
436 "MN",
437 "ME",
438 "MS",
439 "MA",
440 "MZ",
441 "MM",
442 "NA",
443 "NR",
444 "NP",
445 "NL",
446 "NC",
447 "NZ",
448 "NI",
449 "NE",
450 "NG",
451 "NU",
452 "NF",
453 "KP",
454 "MK",
455 "MP",
456 "NO",
457 "OM",
458 "PK",
459 "PW",
460 "PS",
461 "PA",
462 "PG",
463 "PY",
464 "PE",
465 "PH",
466 "PN",
467 "PL",
468 "PT",
469 "PR",
470 "QA",
471 "CG",
472 "RO",
473 "RU",
474 "RW",
475 "RE",
476 "BL",
477 "SH",
478 "KN",
479 "LC",
480 "MF",
481 "PM",
482 "VC",
483 "WS",
484 "SM",
485 "SA",
486 "SN",
487 "RS",
488 "SC",
489 "SL",
490 "SG",
491 "SX",
492 "SK",
493 "SI",
494 "SB",
495 "SO",
496 "ZA",
497 "GS",
498 "KR",
499 "SS",
500 "ES",
501 "LK",
502 "SD",
503 "SR",
504 "SJ",
505 "SZ",
506 "SE",
507 "CH",
508 "SY",
509 "ST",
510 "TW",
511 "TJ",
512 "TZ",
513 "TH",
514 "TG",
515 "TK",
516 "TO",
517 "TT",
518 "TN",
519 "TR",
520 "TM",
521 "TC",
522 "TV",
523 "UM",
524 "VI",
525 "UG",
526 "UA",
527 "AE",
528 "GB",
529 "US",
530 "UY",
531 "UZ",
532 "VU",
533 "VA",
534 "VE",
535 "VN",
536 "WF",
537 "EH",
538 "YE",
539 "ZM",
540 "ZW",
541 "AX"
542 ],
543 "type": "string",
544 "description": "Country to use with proxy. Use it in case you want to scrape posts only available for some country. Proxies here use RESIDENTIAL group, which is slower and more expensive.",
545 "default": "None"
546 }
547 }
548 },
549 "runsResponseSchema": {
550 "type": "object",
551 "properties": {
552 "data": {
553 "type": "object",
554 "properties": {
555 "id": {
556 "type": "string"
557 },
558 "actId": {
559 "type": "string"
560 },
561 "userId": {
562 "type": "string"
563 },
564 "startedAt": {
565 "type": "string",
566 "format": "date-time",
567 "example": "2025-01-08T00:00:00.000Z"
568 },
569 "finishedAt": {
570 "type": "string",
571 "format": "date-time",
572 "example": "2025-01-08T00:00:00.000Z"
573 },
574 "status": {
575 "type": "string",
576 "example": "READY"
577 },
578 "meta": {
579 "type": "object",
580 "properties": {
581 "origin": {
582 "type": "string",
583 "example": "API"
584 },
585 "userAgent": {
586 "type": "string"
587 }
588 }
589 },
590 "stats": {
591 "type": "object",
592 "properties": {
593 "inputBodyLen": {
594 "type": "integer",
595 "example": 2000
596 },
597 "rebootCount": {
598 "type": "integer",
599 "example": 0
600 },
601 "restartCount": {
602 "type": "integer",
603 "example": 0
604 },
605 "resurrectCount": {
606 "type": "integer",
607 "example": 0
608 },
609 "computeUnits": {
610 "type": "integer",
611 "example": 0
612 }
613 }
614 },
615 "options": {
616 "type": "object",
617 "properties": {
618 "build": {
619 "type": "string",
620 "example": "latest"
621 },
622 "timeoutSecs": {
623 "type": "integer",
624 "example": 300
625 },
626 "memoryMbytes": {
627 "type": "integer",
628 "example": 1024
629 },
630 "diskMbytes": {
631 "type": "integer",
632 "example": 2048
633 }
634 }
635 },
636 "buildId": {
637 "type": "string"
638 },
639 "defaultKeyValueStoreId": {
640 "type": "string"
641 },
642 "defaultDatasetId": {
643 "type": "string"
644 },
645 "defaultRequestQueueId": {
646 "type": "string"
647 },
648 "buildNumber": {
649 "type": "string",
650 "example": "1.0.0"
651 },
652 "containerUrl": {
653 "type": "string"
654 },
655 "usage": {
656 "type": "object",
657 "properties": {
658 "ACTOR_COMPUTE_UNITS": {
659 "type": "integer",
660 "example": 0
661 },
662 "DATASET_READS": {
663 "type": "integer",
664 "example": 0
665 },
666 "DATASET_WRITES": {
667 "type": "integer",
668 "example": 0
669 },
670 "KEY_VALUE_STORE_READS": {
671 "type": "integer",
672 "example": 0
673 },
674 "KEY_VALUE_STORE_WRITES": {
675 "type": "integer",
676 "example": 1
677 },
678 "KEY_VALUE_STORE_LISTS": {
679 "type": "integer",
680 "example": 0
681 },
682 "REQUEST_QUEUE_READS": {
683 "type": "integer",
684 "example": 0
685 },
686 "REQUEST_QUEUE_WRITES": {
687 "type": "integer",
688 "example": 0
689 },
690 "DATA_TRANSFER_INTERNAL_GBYTES": {
691 "type": "integer",
692 "example": 0
693 },
694 "DATA_TRANSFER_EXTERNAL_GBYTES": {
695 "type": "integer",
696 "example": 0
697 },
698 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
699 "type": "integer",
700 "example": 0
701 },
702 "PROXY_SERPS": {
703 "type": "integer",
704 "example": 0
705 }
706 }
707 },
708 "usageTotalUsd": {
709 "type": "number",
710 "example": 0.00005
711 },
712 "usageUsd": {
713 "type": "object",
714 "properties": {
715 "ACTOR_COMPUTE_UNITS": {
716 "type": "integer",
717 "example": 0
718 },
719 "DATASET_READS": {
720 "type": "integer",
721 "example": 0
722 },
723 "DATASET_WRITES": {
724 "type": "integer",
725 "example": 0
726 },
727 "KEY_VALUE_STORE_READS": {
728 "type": "integer",
729 "example": 0
730 },
731 "KEY_VALUE_STORE_WRITES": {
732 "type": "number",
733 "example": 0.00005
734 },
735 "KEY_VALUE_STORE_LISTS": {
736 "type": "integer",
737 "example": 0
738 },
739 "REQUEST_QUEUE_READS": {
740 "type": "integer",
741 "example": 0
742 },
743 "REQUEST_QUEUE_WRITES": {
744 "type": "integer",
745 "example": 0
746 },
747 "DATA_TRANSFER_INTERNAL_GBYTES": {
748 "type": "integer",
749 "example": 0
750 },
751 "DATA_TRANSFER_EXTERNAL_GBYTES": {
752 "type": "integer",
753 "example": 0
754 },
755 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
756 "type": "integer",
757 "example": 0
758 },
759 "PROXY_SERPS": {
760 "type": "integer",
761 "example": 0
762 }
763 }
764 }
765 }
766 }
767 }
768 }
769 }
770 }
771}
🎵 TikTok Scraper 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 Scraper 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:
Actor Metrics
3.2k monthly users
-
0 No bookmarks yet
>99% runs succeeded
4.9 days response time
Created in Sep 2021
Modified a day ago