Web Screenshot + HTML Extractor Actor
Under maintenance
Pricing
$5.00 / 1,000 screenshots
Web Screenshot + HTML Extractor Actor
Under maintenance
0.0 (0)
Pricing
$5.00 / 1,000 screenshots
0
Monthly users
2
Runs succeeded
>99%
Last modified
12 days ago
You can access the Web Screenshot + HTML Extractor Actor 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.0",
5 "x-build-id": "6g8WRoE2nlhgpVxDU"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/geiger01~web-screenshot-html-extractor-actor/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-geiger01-web-screenshot-html-extractor-actor",
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/geiger01~web-screenshot-html-extractor-actor/runs": {
50 "post": {
51 "operationId": "runs-sync-geiger01-web-screenshot-html-extractor-actor",
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/geiger01~web-screenshot-html-extractor-actor/run-sync": {
93 "post": {
94 "operationId": "run-sync-geiger01-web-screenshot-html-extractor-actor",
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 ],
136 "properties": {
137 "url": {
138 "title": "Target URL",
139 "type": "string",
140 "description": "The URL of the page you want to screenshot or extract HTML from."
141 },
142 "startUrls": {
143 "title": "Start URLs",
144 "type": "array",
145 "description": "Alternative to 'url' input. Use this if you want to run the Actor on multiple pages.",
146 "items": {
147 "type": "object",
148 "required": [
149 "url"
150 ],
151 "properties": {
152 "url": {
153 "type": "string",
154 "title": "URL of a web page",
155 "format": "uri"
156 }
157 }
158 }
159 },
160 "task": {
161 "title": "Task Type",
162 "enum": [
163 "screenshot",
164 "extract_html"
165 ],
166 "type": "string",
167 "description": "Choose whether to take a screenshot or extract HTML.",
168 "default": "screenshot"
169 },
170 "format": {
171 "title": "Output Format",
172 "enum": [
173 "png",
174 "jpeg",
175 "webp",
176 "pdf"
177 ],
178 "type": "string",
179 "description": "The file format for the screenshot.",
180 "default": "png"
181 },
182 "fullPage": {
183 "title": "Full Page Screenshot",
184 "type": "boolean",
185 "description": "Capture the full scroll height of the page.",
186 "default": false
187 },
188 "fullPageScroll": {
189 "title": "Scroll Before Capture",
190 "type": "boolean",
191 "description": "Scrolls down the page to trigger lazy-loaded content.",
192 "default": false
193 },
194 "fullPageScrollDuration": {
195 "title": "Scroll Duration (ms)",
196 "minimum": 100,
197 "maximum": 10000,
198 "type": "integer",
199 "description": "How long to spend scrolling the page before taking the screenshot.",
200 "default": 400
201 },
202 "delay": {
203 "title": "Delay Before Capture (s)",
204 "minimum": 0,
205 "maximum": 10,
206 "type": "integer",
207 "description": "Wait for this many seconds before capturing.",
208 "default": 0
209 },
210 "selector": {
211 "title": "Capture Specific Selector",
212 "type": "string",
213 "description": "CSS selector of an element to screenshot or extract HTML from.",
214 "default": ""
215 },
216 "waitForSelector": {
217 "title": "Wait for Selector",
218 "type": "string",
219 "description": "Wait for this CSS selector before continuing.",
220 "default": ""
221 },
222 "removeSelectors": {
223 "title": "Remove Elements",
224 "type": "string",
225 "description": "Comma-separated list of selectors to remove before capture.",
226 "default": ""
227 },
228 "removeCookieBanners": {
229 "title": "Remove Cookie Banners",
230 "type": "boolean",
231 "description": "Hide known cookie consent overlays using filters and scripts.",
232 "default": false
233 },
234 "imageQuality": {
235 "title": "Image Quality",
236 "minimum": 1,
237 "maximum": 100,
238 "type": "integer",
239 "description": "Only applies to JPEG and WebP formats (1–100).",
240 "default": 80
241 }
242 }
243 },
244 "runsResponseSchema": {
245 "type": "object",
246 "properties": {
247 "data": {
248 "type": "object",
249 "properties": {
250 "id": {
251 "type": "string"
252 },
253 "actId": {
254 "type": "string"
255 },
256 "userId": {
257 "type": "string"
258 },
259 "startedAt": {
260 "type": "string",
261 "format": "date-time",
262 "example": "2025-01-08T00:00:00.000Z"
263 },
264 "finishedAt": {
265 "type": "string",
266 "format": "date-time",
267 "example": "2025-01-08T00:00:00.000Z"
268 },
269 "status": {
270 "type": "string",
271 "example": "READY"
272 },
273 "meta": {
274 "type": "object",
275 "properties": {
276 "origin": {
277 "type": "string",
278 "example": "API"
279 },
280 "userAgent": {
281 "type": "string"
282 }
283 }
284 },
285 "stats": {
286 "type": "object",
287 "properties": {
288 "inputBodyLen": {
289 "type": "integer",
290 "example": 2000
291 },
292 "rebootCount": {
293 "type": "integer",
294 "example": 0
295 },
296 "restartCount": {
297 "type": "integer",
298 "example": 0
299 },
300 "resurrectCount": {
301 "type": "integer",
302 "example": 0
303 },
304 "computeUnits": {
305 "type": "integer",
306 "example": 0
307 }
308 }
309 },
310 "options": {
311 "type": "object",
312 "properties": {
313 "build": {
314 "type": "string",
315 "example": "latest"
316 },
317 "timeoutSecs": {
318 "type": "integer",
319 "example": 300
320 },
321 "memoryMbytes": {
322 "type": "integer",
323 "example": 1024
324 },
325 "diskMbytes": {
326 "type": "integer",
327 "example": 2048
328 }
329 }
330 },
331 "buildId": {
332 "type": "string"
333 },
334 "defaultKeyValueStoreId": {
335 "type": "string"
336 },
337 "defaultDatasetId": {
338 "type": "string"
339 },
340 "defaultRequestQueueId": {
341 "type": "string"
342 },
343 "buildNumber": {
344 "type": "string",
345 "example": "1.0.0"
346 },
347 "containerUrl": {
348 "type": "string"
349 },
350 "usage": {
351 "type": "object",
352 "properties": {
353 "ACTOR_COMPUTE_UNITS": {
354 "type": "integer",
355 "example": 0
356 },
357 "DATASET_READS": {
358 "type": "integer",
359 "example": 0
360 },
361 "DATASET_WRITES": {
362 "type": "integer",
363 "example": 0
364 },
365 "KEY_VALUE_STORE_READS": {
366 "type": "integer",
367 "example": 0
368 },
369 "KEY_VALUE_STORE_WRITES": {
370 "type": "integer",
371 "example": 1
372 },
373 "KEY_VALUE_STORE_LISTS": {
374 "type": "integer",
375 "example": 0
376 },
377 "REQUEST_QUEUE_READS": {
378 "type": "integer",
379 "example": 0
380 },
381 "REQUEST_QUEUE_WRITES": {
382 "type": "integer",
383 "example": 0
384 },
385 "DATA_TRANSFER_INTERNAL_GBYTES": {
386 "type": "integer",
387 "example": 0
388 },
389 "DATA_TRANSFER_EXTERNAL_GBYTES": {
390 "type": "integer",
391 "example": 0
392 },
393 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
394 "type": "integer",
395 "example": 0
396 },
397 "PROXY_SERPS": {
398 "type": "integer",
399 "example": 0
400 }
401 }
402 },
403 "usageTotalUsd": {
404 "type": "number",
405 "example": 0.00005
406 },
407 "usageUsd": {
408 "type": "object",
409 "properties": {
410 "ACTOR_COMPUTE_UNITS": {
411 "type": "integer",
412 "example": 0
413 },
414 "DATASET_READS": {
415 "type": "integer",
416 "example": 0
417 },
418 "DATASET_WRITES": {
419 "type": "integer",
420 "example": 0
421 },
422 "KEY_VALUE_STORE_READS": {
423 "type": "integer",
424 "example": 0
425 },
426 "KEY_VALUE_STORE_WRITES": {
427 "type": "number",
428 "example": 0.00005
429 },
430 "KEY_VALUE_STORE_LISTS": {
431 "type": "integer",
432 "example": 0
433 },
434 "REQUEST_QUEUE_READS": {
435 "type": "integer",
436 "example": 0
437 },
438 "REQUEST_QUEUE_WRITES": {
439 "type": "integer",
440 "example": 0
441 },
442 "DATA_TRANSFER_INTERNAL_GBYTES": {
443 "type": "integer",
444 "example": 0
445 },
446 "DATA_TRANSFER_EXTERNAL_GBYTES": {
447 "type": "integer",
448 "example": 0
449 },
450 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
451 "type": "integer",
452 "example": 0
453 },
454 "PROXY_SERPS": {
455 "type": "integer",
456 "example": 0
457 }
458 }
459 }
460 }
461 }
462 }
463 }
464 }
465 }
466}
Web Screenshot + HTML Extractor Actor 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 Web Screenshot + HTML Extractor Actor 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:
Pricing
Pricing model
Pay per resultThis Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.
Price per 1,000 items
$5.00