
Youtube Comment Scrapper
Pay $1.80 for 1,000 comments

Youtube Comment Scrapper
Pay $1.80 for 1,000 comments
Scrape comments on Youtube Video Pages. Just specify the video page urls to visit and how many comments you would like to collect. We'll get all meaningful information: comment text, author, publication date, number of likes and replies and video+channel url and id
Actor Metrics
13 monthly users
5.0 / 5 (1)
9 bookmarks
>99% runs succeeded
Created in Oct 2023
Modified 11 days ago
You can access the Youtube Comment Scrapper programmatically from your own applications by using the Apify API. You can also 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": "erqMElmLeCoWclsJT"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/deeper~youtube-comment-scrapper/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-deeper-youtube-comment-scrapper",
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/deeper~youtube-comment-scrapper/runs": {
50 "post": {
51 "operationId": "runs-sync-deeper-youtube-comment-scrapper",
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/deeper~youtube-comment-scrapper/run-sync": {
93 "post": {
94 "operationId": "run-sync-deeper-youtube-comment-scrapper",
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 "required": [
134 "start_urls"
135 ],
136 "properties": {
137 "start_urls": {
138 "title": "Start URLs",
139 "type": "array",
140 "description": "URLs to start with. It could be either a channel url (we will collect info about the top videos on the channel) or a video url",
141 "items": {
142 "type": "object",
143 "required": [
144 "url"
145 ],
146 "properties": {
147 "url": {
148 "type": "string",
149 "title": "URL of a web page",
150 "format": "uri"
151 }
152 }
153 }
154 },
155 "details": {
156 "title": "Scrap details for each video",
157 "type": "boolean",
158 "description": "Scrapping details allows to get the full video description, comment counts and view counts",
159 "default": true
160 },
161 "dateFilter": {
162 "title": "Collect only video more recent than",
163 "type": "string",
164 "description": "Select a date cutoff to collect only video more recent than this one. In any case, the most recent video is always returned for every channel.",
165 "default": ""
166 },
167 "max_videos": {
168 "title": "Number of videos to scrap details for each channel",
169 "minimum": 0,
170 "maximum": 30,
171 "type": "integer",
172 "description": "We will scrap the details (and possibly comments) of that amount of video found on the channel. Use low value to have run executing faster. Use 30 to get all data.",
173 "default": 30
174 },
175 "max_comments": {
176 "title": "Number of comments to retrieve for each video",
177 "minimum": 0,
178 "maximum": 1000,
179 "type": "integer",
180 "description": "Keep scrolling the page down until we've reach at least that number of comments. This number is not strict, if we get more comments by scrolling the page, they will be returned as well. This is applicable only if 'details' is set to True.",
181 "default": 20
182 },
183 "scrap_captions": {
184 "title": "Scrap caption for each video",
185 "type": "boolean",
186 "description": "Scrapping caption allows to get the transcript of the video (there is one extra result by caption language loaded)",
187 "default": false
188 },
189 "caption_languages": {
190 "title": "Caption language code to collect",
191 "type": "array",
192 "description": "List of caption languages to collect (i.e. : ['en','fr']), pass an empty array to collect all available languages",
193 "items": {
194 "type": "string"
195 }
196 }
197 }
198 },
199 "runsResponseSchema": {
200 "type": "object",
201 "properties": {
202 "data": {
203 "type": "object",
204 "properties": {
205 "id": {
206 "type": "string"
207 },
208 "actId": {
209 "type": "string"
210 },
211 "userId": {
212 "type": "string"
213 },
214 "startedAt": {
215 "type": "string",
216 "format": "date-time",
217 "example": "2025-01-08T00:00:00.000Z"
218 },
219 "finishedAt": {
220 "type": "string",
221 "format": "date-time",
222 "example": "2025-01-08T00:00:00.000Z"
223 },
224 "status": {
225 "type": "string",
226 "example": "READY"
227 },
228 "meta": {
229 "type": "object",
230 "properties": {
231 "origin": {
232 "type": "string",
233 "example": "API"
234 },
235 "userAgent": {
236 "type": "string"
237 }
238 }
239 },
240 "stats": {
241 "type": "object",
242 "properties": {
243 "inputBodyLen": {
244 "type": "integer",
245 "example": 2000
246 },
247 "rebootCount": {
248 "type": "integer",
249 "example": 0
250 },
251 "restartCount": {
252 "type": "integer",
253 "example": 0
254 },
255 "resurrectCount": {
256 "type": "integer",
257 "example": 0
258 },
259 "computeUnits": {
260 "type": "integer",
261 "example": 0
262 }
263 }
264 },
265 "options": {
266 "type": "object",
267 "properties": {
268 "build": {
269 "type": "string",
270 "example": "latest"
271 },
272 "timeoutSecs": {
273 "type": "integer",
274 "example": 300
275 },
276 "memoryMbytes": {
277 "type": "integer",
278 "example": 1024
279 },
280 "diskMbytes": {
281 "type": "integer",
282 "example": 2048
283 }
284 }
285 },
286 "buildId": {
287 "type": "string"
288 },
289 "defaultKeyValueStoreId": {
290 "type": "string"
291 },
292 "defaultDatasetId": {
293 "type": "string"
294 },
295 "defaultRequestQueueId": {
296 "type": "string"
297 },
298 "buildNumber": {
299 "type": "string",
300 "example": "1.0.0"
301 },
302 "containerUrl": {
303 "type": "string"
304 },
305 "usage": {
306 "type": "object",
307 "properties": {
308 "ACTOR_COMPUTE_UNITS": {
309 "type": "integer",
310 "example": 0
311 },
312 "DATASET_READS": {
313 "type": "integer",
314 "example": 0
315 },
316 "DATASET_WRITES": {
317 "type": "integer",
318 "example": 0
319 },
320 "KEY_VALUE_STORE_READS": {
321 "type": "integer",
322 "example": 0
323 },
324 "KEY_VALUE_STORE_WRITES": {
325 "type": "integer",
326 "example": 1
327 },
328 "KEY_VALUE_STORE_LISTS": {
329 "type": "integer",
330 "example": 0
331 },
332 "REQUEST_QUEUE_READS": {
333 "type": "integer",
334 "example": 0
335 },
336 "REQUEST_QUEUE_WRITES": {
337 "type": "integer",
338 "example": 0
339 },
340 "DATA_TRANSFER_INTERNAL_GBYTES": {
341 "type": "integer",
342 "example": 0
343 },
344 "DATA_TRANSFER_EXTERNAL_GBYTES": {
345 "type": "integer",
346 "example": 0
347 },
348 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
349 "type": "integer",
350 "example": 0
351 },
352 "PROXY_SERPS": {
353 "type": "integer",
354 "example": 0
355 }
356 }
357 },
358 "usageTotalUsd": {
359 "type": "number",
360 "example": 0.00005
361 },
362 "usageUsd": {
363 "type": "object",
364 "properties": {
365 "ACTOR_COMPUTE_UNITS": {
366 "type": "integer",
367 "example": 0
368 },
369 "DATASET_READS": {
370 "type": "integer",
371 "example": 0
372 },
373 "DATASET_WRITES": {
374 "type": "integer",
375 "example": 0
376 },
377 "KEY_VALUE_STORE_READS": {
378 "type": "integer",
379 "example": 0
380 },
381 "KEY_VALUE_STORE_WRITES": {
382 "type": "number",
383 "example": 0.00005
384 },
385 "KEY_VALUE_STORE_LISTS": {
386 "type": "integer",
387 "example": 0
388 },
389 "REQUEST_QUEUE_READS": {
390 "type": "integer",
391 "example": 0
392 },
393 "REQUEST_QUEUE_WRITES": {
394 "type": "integer",
395 "example": 0
396 },
397 "DATA_TRANSFER_INTERNAL_GBYTES": {
398 "type": "integer",
399 "example": 0
400 },
401 "DATA_TRANSFER_EXTERNAL_GBYTES": {
402 "type": "integer",
403 "example": 0
404 },
405 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
406 "type": "integer",
407 "example": 0
408 },
409 "PROXY_SERPS": {
410 "type": "integer",
411 "example": 0
412 }
413 }
414 }
415 }
416 }
417 }
418 }
419 }
420 }
421}
Youtube Comment Scrapper 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 Youtube Comment Scrapper 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: