
YouTube Comments Scraper
1 day trial then $12.00/month - No credit card required now

YouTube Comments Scraper
1 day trial then $12.00/month - No credit card required now
YouTube comment scraper is a powerful tool that extracts valuable data from any YouTube video's comment section. Gather all comments, authors, posting dates, votes, reply counts. Use CSV or Excel or HTML tables, JSON...
You can access the YouTube Comments 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": "2utRHdkI9FIfD7MxW"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/karamelo~youtube-comments-scraper/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-karamelo-youtube-comments-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/karamelo~youtube-comments-scraper/runs": {
50 "post": {
51 "operationId": "runs-sync-karamelo-youtube-comments-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/karamelo~youtube-comments-scraper/run-sync": {
93 "post": {
94 "operationId": "run-sync-karamelo-youtube-comments-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 "required": [
134 "url",
135 "number"
136 ],
137 "properties": {
138 "url": {
139 "title": "URL of the video you want to extract the comments from.",
140 "type": "string",
141 "description": "The URL of the video you want to extract the comments from."
142 },
143 "number": {
144 "title": "Number of comments",
145 "type": "integer",
146 "description": "How many comments do you want to extract from the video comment section."
147 },
148 "sorting": {
149 "title": "Sort by Top or Newest comments",
150 "enum": [
151 "Top comments first",
152 "Newest comments first"
153 ],
154 "type": "string",
155 "description": "You can sort the comments by Top Comments first or by Newest comments first."
156 }
157 }
158 },
159 "runsResponseSchema": {
160 "type": "object",
161 "properties": {
162 "data": {
163 "type": "object",
164 "properties": {
165 "id": {
166 "type": "string"
167 },
168 "actId": {
169 "type": "string"
170 },
171 "userId": {
172 "type": "string"
173 },
174 "startedAt": {
175 "type": "string",
176 "format": "date-time",
177 "example": "2025-01-08T00:00:00.000Z"
178 },
179 "finishedAt": {
180 "type": "string",
181 "format": "date-time",
182 "example": "2025-01-08T00:00:00.000Z"
183 },
184 "status": {
185 "type": "string",
186 "example": "READY"
187 },
188 "meta": {
189 "type": "object",
190 "properties": {
191 "origin": {
192 "type": "string",
193 "example": "API"
194 },
195 "userAgent": {
196 "type": "string"
197 }
198 }
199 },
200 "stats": {
201 "type": "object",
202 "properties": {
203 "inputBodyLen": {
204 "type": "integer",
205 "example": 2000
206 },
207 "rebootCount": {
208 "type": "integer",
209 "example": 0
210 },
211 "restartCount": {
212 "type": "integer",
213 "example": 0
214 },
215 "resurrectCount": {
216 "type": "integer",
217 "example": 0
218 },
219 "computeUnits": {
220 "type": "integer",
221 "example": 0
222 }
223 }
224 },
225 "options": {
226 "type": "object",
227 "properties": {
228 "build": {
229 "type": "string",
230 "example": "latest"
231 },
232 "timeoutSecs": {
233 "type": "integer",
234 "example": 300
235 },
236 "memoryMbytes": {
237 "type": "integer",
238 "example": 1024
239 },
240 "diskMbytes": {
241 "type": "integer",
242 "example": 2048
243 }
244 }
245 },
246 "buildId": {
247 "type": "string"
248 },
249 "defaultKeyValueStoreId": {
250 "type": "string"
251 },
252 "defaultDatasetId": {
253 "type": "string"
254 },
255 "defaultRequestQueueId": {
256 "type": "string"
257 },
258 "buildNumber": {
259 "type": "string",
260 "example": "1.0.0"
261 },
262 "containerUrl": {
263 "type": "string"
264 },
265 "usage": {
266 "type": "object",
267 "properties": {
268 "ACTOR_COMPUTE_UNITS": {
269 "type": "integer",
270 "example": 0
271 },
272 "DATASET_READS": {
273 "type": "integer",
274 "example": 0
275 },
276 "DATASET_WRITES": {
277 "type": "integer",
278 "example": 0
279 },
280 "KEY_VALUE_STORE_READS": {
281 "type": "integer",
282 "example": 0
283 },
284 "KEY_VALUE_STORE_WRITES": {
285 "type": "integer",
286 "example": 1
287 },
288 "KEY_VALUE_STORE_LISTS": {
289 "type": "integer",
290 "example": 0
291 },
292 "REQUEST_QUEUE_READS": {
293 "type": "integer",
294 "example": 0
295 },
296 "REQUEST_QUEUE_WRITES": {
297 "type": "integer",
298 "example": 0
299 },
300 "DATA_TRANSFER_INTERNAL_GBYTES": {
301 "type": "integer",
302 "example": 0
303 },
304 "DATA_TRANSFER_EXTERNAL_GBYTES": {
305 "type": "integer",
306 "example": 0
307 },
308 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
309 "type": "integer",
310 "example": 0
311 },
312 "PROXY_SERPS": {
313 "type": "integer",
314 "example": 0
315 }
316 }
317 },
318 "usageTotalUsd": {
319 "type": "number",
320 "example": 0.00005
321 },
322 "usageUsd": {
323 "type": "object",
324 "properties": {
325 "ACTOR_COMPUTE_UNITS": {
326 "type": "integer",
327 "example": 0
328 },
329 "DATASET_READS": {
330 "type": "integer",
331 "example": 0
332 },
333 "DATASET_WRITES": {
334 "type": "integer",
335 "example": 0
336 },
337 "KEY_VALUE_STORE_READS": {
338 "type": "integer",
339 "example": 0
340 },
341 "KEY_VALUE_STORE_WRITES": {
342 "type": "number",
343 "example": 0.00005
344 },
345 "KEY_VALUE_STORE_LISTS": {
346 "type": "integer",
347 "example": 0
348 },
349 "REQUEST_QUEUE_READS": {
350 "type": "integer",
351 "example": 0
352 },
353 "REQUEST_QUEUE_WRITES": {
354 "type": "integer",
355 "example": 0
356 },
357 "DATA_TRANSFER_INTERNAL_GBYTES": {
358 "type": "integer",
359 "example": 0
360 },
361 "DATA_TRANSFER_EXTERNAL_GBYTES": {
362 "type": "integer",
363 "example": 0
364 },
365 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
366 "type": "integer",
367 "example": 0
368 },
369 "PROXY_SERPS": {
370 "type": "integer",
371 "example": 0
372 }
373 }
374 }
375 }
376 }
377 }
378 }
379 }
380 }
381}
YouTube Comments 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 YouTube Comments 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
14 monthly users
-
3 bookmarks
>99% runs succeeded
Created in Jul 2024
Modified 18 days ago