Douyin Scraper avatar

Douyin Scraper

Try for free

3 days trial then $35.00/month - No credit card required now

Go to Store
Douyin Scraper

Douyin Scraper

natanielsantos/douyin-scraper
Try for free

3 days trial then $35.00/month - No credit card required now

This powerful tool enables you to extract data from Douyin, the Chinese version of TikTok. Use it to scrape post data, like URLs, numbers of followers, hearts, video, music-related data and more. Download Douyin data as a HTML, JSON, CSV, Excel, or XML doc.

You can access the Douyin 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.5",
5    "x-build-id": "ATw0bRMbFlZnUvHRs"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/natanielsantos~douyin-scraper/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-natanielsantos-douyin-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/natanielsantos~douyin-scraper/runs": {
50      "post": {
51        "operationId": "runs-sync-natanielsantos-douyin-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/natanielsantos~douyin-scraper/run-sync": {
93      "post": {
94        "operationId": "run-sync-natanielsantos-douyin-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          "searchTermsOrHashtags": {
135            "title": "Search Terms or Hashtags",
136            "uniqueItems": true,
137            "type": "array",
138            "description": "List of search terms or hashtags you want to scrape. For example `#chinesetiktok` or `anime edit`.",
139            "items": {
140              "type": "string"
141            }
142          },
143          "maxItemsPerUrl": {
144            "title": "Max number of posts per search term/hashtag",
145            "minimum": 0,
146            "type": "integer",
147            "description": "Maximum number of items you want to scrape per hashtag or profile.",
148            "default": 0
149          },
150          "postUrls": {
151            "title": "Post URLs",
152            "type": "array",
153            "description": "Should be a list of post URLs you want to scrape.",
154            "items": {
155              "type": "object",
156              "required": [
157                "url"
158              ],
159              "properties": {
160                "url": {
161                  "type": "string",
162                  "title": "URL of a web page",
163                  "format": "uri"
164                }
165              }
166            }
167          },
168          "shouldDownloadVideos": {
169            "title": "Should Download Videos",
170            "type": "boolean",
171            "description": "Whether to download Douyin video files. Note that this will increase time required for the scrape.",
172            "default": false
173          },
174          "shouldDownloadCovers": {
175            "title": "Should Download Covers",
176            "type": "boolean",
177            "description": "Whether or not to download the video covers.",
178            "default": false
179          },
180          "maxDownloadSize": {
181            "title": "Don't download videos larger than",
182            "type": "integer",
183            "description": "Maximum size in megabytes of the video that will be stored in Key-Value store. Videos larger than this won't be downloaded.",
184            "default": 50
185          },
186          "storageName": {
187            "title": "Name your storage",
188            "type": "string",
189            "description": "Name of the Key-Value Store where the videos and covers will be stored. Note that if you leave this empty, an unnamed Key-value store will be created and eventually deleted (keeping time depends on your plan)."
190          }
191        }
192      },
193      "runsResponseSchema": {
194        "type": "object",
195        "properties": {
196          "data": {
197            "type": "object",
198            "properties": {
199              "id": {
200                "type": "string"
201              },
202              "actId": {
203                "type": "string"
204              },
205              "userId": {
206                "type": "string"
207              },
208              "startedAt": {
209                "type": "string",
210                "format": "date-time",
211                "example": "2025-01-08T00:00:00.000Z"
212              },
213              "finishedAt": {
214                "type": "string",
215                "format": "date-time",
216                "example": "2025-01-08T00:00:00.000Z"
217              },
218              "status": {
219                "type": "string",
220                "example": "READY"
221              },
222              "meta": {
223                "type": "object",
224                "properties": {
225                  "origin": {
226                    "type": "string",
227                    "example": "API"
228                  },
229                  "userAgent": {
230                    "type": "string"
231                  }
232                }
233              },
234              "stats": {
235                "type": "object",
236                "properties": {
237                  "inputBodyLen": {
238                    "type": "integer",
239                    "example": 2000
240                  },
241                  "rebootCount": {
242                    "type": "integer",
243                    "example": 0
244                  },
245                  "restartCount": {
246                    "type": "integer",
247                    "example": 0
248                  },
249                  "resurrectCount": {
250                    "type": "integer",
251                    "example": 0
252                  },
253                  "computeUnits": {
254                    "type": "integer",
255                    "example": 0
256                  }
257                }
258              },
259              "options": {
260                "type": "object",
261                "properties": {
262                  "build": {
263                    "type": "string",
264                    "example": "latest"
265                  },
266                  "timeoutSecs": {
267                    "type": "integer",
268                    "example": 300
269                  },
270                  "memoryMbytes": {
271                    "type": "integer",
272                    "example": 1024
273                  },
274                  "diskMbytes": {
275                    "type": "integer",
276                    "example": 2048
277                  }
278                }
279              },
280              "buildId": {
281                "type": "string"
282              },
283              "defaultKeyValueStoreId": {
284                "type": "string"
285              },
286              "defaultDatasetId": {
287                "type": "string"
288              },
289              "defaultRequestQueueId": {
290                "type": "string"
291              },
292              "buildNumber": {
293                "type": "string",
294                "example": "1.0.0"
295              },
296              "containerUrl": {
297                "type": "string"
298              },
299              "usage": {
300                "type": "object",
301                "properties": {
302                  "ACTOR_COMPUTE_UNITS": {
303                    "type": "integer",
304                    "example": 0
305                  },
306                  "DATASET_READS": {
307                    "type": "integer",
308                    "example": 0
309                  },
310                  "DATASET_WRITES": {
311                    "type": "integer",
312                    "example": 0
313                  },
314                  "KEY_VALUE_STORE_READS": {
315                    "type": "integer",
316                    "example": 0
317                  },
318                  "KEY_VALUE_STORE_WRITES": {
319                    "type": "integer",
320                    "example": 1
321                  },
322                  "KEY_VALUE_STORE_LISTS": {
323                    "type": "integer",
324                    "example": 0
325                  },
326                  "REQUEST_QUEUE_READS": {
327                    "type": "integer",
328                    "example": 0
329                  },
330                  "REQUEST_QUEUE_WRITES": {
331                    "type": "integer",
332                    "example": 0
333                  },
334                  "DATA_TRANSFER_INTERNAL_GBYTES": {
335                    "type": "integer",
336                    "example": 0
337                  },
338                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
339                    "type": "integer",
340                    "example": 0
341                  },
342                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
343                    "type": "integer",
344                    "example": 0
345                  },
346                  "PROXY_SERPS": {
347                    "type": "integer",
348                    "example": 0
349                  }
350                }
351              },
352              "usageTotalUsd": {
353                "type": "number",
354                "example": 0.00005
355              },
356              "usageUsd": {
357                "type": "object",
358                "properties": {
359                  "ACTOR_COMPUTE_UNITS": {
360                    "type": "integer",
361                    "example": 0
362                  },
363                  "DATASET_READS": {
364                    "type": "integer",
365                    "example": 0
366                  },
367                  "DATASET_WRITES": {
368                    "type": "integer",
369                    "example": 0
370                  },
371                  "KEY_VALUE_STORE_READS": {
372                    "type": "integer",
373                    "example": 0
374                  },
375                  "KEY_VALUE_STORE_WRITES": {
376                    "type": "number",
377                    "example": 0.00005
378                  },
379                  "KEY_VALUE_STORE_LISTS": {
380                    "type": "integer",
381                    "example": 0
382                  },
383                  "REQUEST_QUEUE_READS": {
384                    "type": "integer",
385                    "example": 0
386                  },
387                  "REQUEST_QUEUE_WRITES": {
388                    "type": "integer",
389                    "example": 0
390                  },
391                  "DATA_TRANSFER_INTERNAL_GBYTES": {
392                    "type": "integer",
393                    "example": 0
394                  },
395                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
396                    "type": "integer",
397                    "example": 0
398                  },
399                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
400                    "type": "integer",
401                    "example": 0
402                  },
403                  "PROXY_SERPS": {
404                    "type": "integer",
405                    "example": 0
406                  }
407                }
408              }
409            }
410          }
411        }
412      }
413    }
414  }
415}

Douyin 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 Douyin 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:

Developer
Maintained by Community

Actor Metrics

  • 17 monthly users

  • 10 bookmarks

  • 99% runs succeeded

  • 27 days response time

  • Created in Nov 2023

  • Modified 4 months ago