@apifreaks/openapi-specs 0.4.19 → 0.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ openapi: 3.1.1
2
2
  info:
3
3
  title: Website Screenshot API - Full-Page Captures, Scrolling Video & PDF Output
4
4
  version: 1.0.0
5
- description: Capture full-page screenshots and videos of websites with advanced options like device simulation, custom code injection, cookie banner blocking, and scrollable content recording. Supports multiple output formats including PNG, JPEG, WebP, PDF, MP4, GIF, and WebM. Returns a screenshot URL, timestamps, format metadata, and all echoed parameters. Returns a 400 error for an invalid or missing url, and a 408 error if the capture exceeds the configured timeout.
5
+ description: 'Capture full-page screenshots and videos of websites with advanced options like device simulation, custom code injection, cookie banner blocking, and scrollable content recording. Supports multiple output formats including PNG, JPEG, WebP, PDF, MP4, GIF, and WebM. Returns a screenshot URL, timestamps, format metadata, and all echoed parameters. Returns a 400 error for an invalid or missing url, and a 408 error if the capture exceeds the configured timeout. Also supports stealth mode, GPU rendering, classic and premium proxies with country selection, timezone emulation, text captcha solving, and PDF options for paper size, orientation, page range, media type and backgrounds. A simple screenshot costs 50 credits. Options add credits on top: scrolling or video +20, classic proxy +20, premium proxy +200 (used instead of a classic proxy), GPU rendering +20, captcha solver +20. Stealth, timezone and the other options add no credits.'
6
6
  contact:
7
7
  name: APIFreaks Support
8
8
  url: https://apifreaks.com/contact
@@ -21,24 +21,31 @@ paths:
21
21
  Supports multiple output formats including JSON, image, GIF, MP4, and WebM.
22
22
  operationId: websiteScreenshot
23
23
  parameters:
24
- - name: format
24
+ - name: url
25
+ in: query
26
+ required: true
27
+ schema:
28
+ type: string
29
+ description: URL of the website to be rendered as a screenshot or other format.
30
+ - name: output
25
31
  in: query
26
32
  required: false
27
33
  schema:
28
34
  type: string
29
35
  enum:
30
36
  - json
37
+ - image
31
38
  default: json
32
- description: 'Response format: ''json''.'
33
- - name: output
39
+ description: Set the output format. `json` returns metadata with a hosted file URL. `image` streams the raw file bytes directly.
40
+ - name: format
34
41
  in: query
35
42
  required: false
36
43
  schema:
37
44
  type: string
38
45
  enum:
39
46
  - json
40
- - image
41
- description: Output format for screenshot results
47
+ default: json
48
+ description: 'Response format: json (default).'
42
49
  - name: file_type
43
50
  in: query
44
51
  required: false
@@ -49,130 +56,181 @@ paths:
49
56
  - JPEG
50
57
  - WEBP
51
58
  - PDF
59
+ - MP4
60
+ - GIF
61
+ - WEBM
52
62
  - mp4
53
63
  - gif
54
64
  - webm
55
- description: File type for screenshot output
56
- - name: url
65
+ default: PNG
66
+ description: 'Output format. PNG (lossless, transparency), JPEG (compressed, smaller size), WebP (modern, efficient), PDF (document). For scrolling captures: MP4, GIF, WebM. Scrolling capture formats: WEBM (web-optimized), MP4 (widely compatible, default), GIF (short loops).'
67
+ - name: image_quality
57
68
  in: query
58
- required: true
69
+ required: false
59
70
  schema:
60
- type: string
61
- description: URLs to capture screenshots of
62
- - name: width
71
+ type: integer
72
+ default: 80
73
+ description: Compression level for JPEG output (0-100). Lower = smaller file, higher = better quality. Only applies to JPEG.
74
+ - name: omit_background
63
75
  in: query
64
76
  required: false
65
77
  schema:
66
- type: integer
67
- description: Browser viewport width in pixels
68
- - name: height
78
+ type: boolean
79
+ default: false
80
+ description: Replaces simple white/plain backgrounds with transparency for a cut-out effect. Only works with PNG output.
81
+ - name: pdf_options[format]
69
82
  in: query
70
83
  required: false
71
84
  schema:
72
- type: integer
73
- description: Browser viewport height in pixels
74
- - name: full_page
85
+ type: string
86
+ enum:
87
+ - A0
88
+ - A1
89
+ - A2
90
+ - A3
91
+ - A4
92
+ - A5
93
+ - A6
94
+ - Letter
95
+ - Legal
96
+ - Tabloid
97
+ - Ledger
98
+ description: 'Paper size of the PDF. Applies when file_type is PDF. Without it, width and height are used if set, otherwise the page renders as one long page: A0, A1, A2, A3, A4, A5, A6, Letter, Legal, Tabloid, or Ledger.'
99
+ - name: pdf_options[landscape]
75
100
  in: query
76
101
  required: false
77
102
  schema:
78
103
  type: boolean
79
- description: Capture a full-page screenshot
80
- - name: fresh
104
+ default: false
105
+ description: Renders the PDF in landscape orientation, swapping the width and height of the paper size. Applies when file_type is PDF.
106
+ - name: pdf_options[page_range]
81
107
  in: query
82
108
  required: false
83
109
  schema:
84
- type: boolean
85
- description: Bypass cache and take a fresh screenshot
86
- - name: no_cookie_banners
110
+ type: string
111
+ description: Pages to keep in the PDF, as start-end, for example 1-3 or 5-5. Pages are rendered first and then trimmed. Has no effect on a single-page PDF. Applies when file_type is PDF.
112
+ - name: pdf_options[media]
87
113
  in: query
88
114
  required: false
89
115
  schema:
90
- type: boolean
91
- description: Remove cookie banners from the screenshot
92
- - name: enable_caching
116
+ type: string
117
+ enum:
118
+ - print
119
+ - screen
120
+ description: 'CSS media type used to render the PDF: print or screen.'
121
+ - name: pdf_options[print_background]
93
122
  in: query
94
123
  required: false
95
124
  schema:
96
125
  type: boolean
97
- description: Enable caching for repeated requests
98
- - name: block_ads
126
+ default: false
127
+ description: Includes background colors and images in the PDF. Applies when file_type is PDF.
128
+ - name: result_file_name
99
129
  in: query
100
130
  required: false
101
131
  schema:
102
- type: boolean
103
- description: Block advertisements on the page
104
- - name: block_chat_widgets
132
+ type: string
133
+ description: 'Custom name for the output file. Helps with organized storage and retrieval. Note: non-unique names may overwrite existing files.'
134
+ - name: ttl
105
135
  in: query
106
136
  required: false
107
137
  schema:
108
- type: boolean
109
- description: Block chat widget scripts from loading
110
- - name: extract_text
138
+ type: integer
139
+ default: 2592000
140
+ description: 'Time in seconds the render stays cached before auto-invalidation. Use higher values for static pages, lower for dynamic content. Default: 2592000 (30 days).'
141
+ - name: fresh
111
142
  in: query
112
143
  required: false
113
144
  schema:
114
145
  type: boolean
115
- description: Extract visible text from the page
116
- - name: extract_html
146
+ default: true
147
+ description: If `true`, bypasses cache and captures a fresh render. If `false`, returns cached version when available.
148
+ - name: enable_caching
117
149
  in: query
118
150
  required: false
119
151
  schema:
120
152
  type: boolean
121
- description: Extract HTML content of the page
153
+ default: false
154
+ description: Stores the render in cache for reuse on subsequent identical requests.
122
155
  - name: destroy_screenshot
123
156
  in: query
124
157
  required: false
125
158
  schema:
126
159
  type: boolean
127
- description: Auto-destroy screenshot after fetch
128
- - name: lazy_load
160
+ default: false
161
+ description: If `true`, screenshot/PDF is not stored on server and must be downloaded immediately.
162
+ - name: fail_on_error
129
163
  in: query
130
164
  required: false
131
165
  schema:
132
166
  type: boolean
133
- description: Enable lazy-loading content before screenshot
134
- - name: retina
167
+ default: false
168
+ description: If `true`, returns an error when the target page responds with 4xx or 5xx status.
169
+ - name: width
135
170
  in: query
136
171
  required: false
137
172
  schema:
138
- type: boolean
139
- description: Capture screenshot in high-DPI (Retina) mode
140
- - name: dark_mode
173
+ type: integer
174
+ default: 1680
175
+ description: 'Viewport width in pixels. Simulates device screen sizes. Max: 7680.'
176
+ - name: height
141
177
  in: query
142
178
  required: false
143
179
  schema:
144
- type: boolean
145
- description: Render page in dark mode
146
- - name: block_tracking
180
+ type: integer
181
+ default: 867
182
+ description: 'Viewport height in pixels. Controls how much vertical area is visible. Max: 4320.'
183
+ - name: full_page
147
184
  in: query
148
185
  required: false
149
186
  schema:
150
187
  type: boolean
151
- description: Block common user-tracking scripts
152
- - name: enable_incognito
188
+ default: false
189
+ description: Captures the entire webpage from top to bottom, including scrollable content outside the viewport. Ideal for long-form pages.
190
+ - name: thumbnail_width
153
191
  in: query
154
192
  required: false
155
193
  schema:
156
- type: boolean
157
- description: Enable private/incognito mode for browser session
158
- - name: omit_background
194
+ type: integer
195
+ description: Specifies the width of the thumbnail in pixels. Default value is 0 (meaning no specific value is set, and the screenshot is returned at its original resolution).
196
+ - name: retina
159
197
  in: query
160
198
  required: false
161
199
  schema:
162
200
  type: boolean
163
- description: Omit background color (transparent background)
164
- - name: thumbnail_width
201
+ default: false
202
+ description: Captures at 2x resolution for sharper, high-DPI output. Increases file size.
203
+ - name: clip[x]
165
204
  in: query
166
205
  required: false
167
206
  schema:
168
207
  type: integer
169
- description: Thumbnail width in pixels
208
+ description: 'X coordinate (in pixels) for the top-left corner of the clip area. Default: null.'
209
+ - name: clip[y]
210
+ in: query
211
+ required: false
212
+ schema:
213
+ type: integer
214
+ description: 'Y coordinate (in pixels) for the top-left corner of the clip area. Default: null.'
215
+ - name: clip[width]
216
+ in: query
217
+ required: false
218
+ schema:
219
+ type: integer
220
+ description: 'Width of the clip area in pixels. Default: null.'
221
+ - name: clip[height]
222
+ in: query
223
+ required: false
224
+ schema:
225
+ type: integer
226
+ description: 'Height of the clip area in pixels. Default: null.'
170
227
  - name: adjust_top
171
228
  in: query
172
229
  required: false
173
230
  schema:
174
231
  type: integer
175
- description: Adjust top in pixels
232
+ default: 0
233
+ description: Initial vertical scroll position in pixels before capture. Use to position mid-page content in viewport. Not supported for PDF.
176
234
  - name: wait_for_event
177
235
  in: query
178
236
  required: false
@@ -182,325 +240,474 @@ paths:
182
240
  - load
183
241
  - domcontentloaded
184
242
  - networkidle
185
- description: Wait for a specific load event before capturing the screenshot.
186
- - name: grayscale
243
+ default: load
244
+ description: Controls when rendering starts based on page load lifecycle. `load` (all resources), `domcontentloaded` (HTML parsed), `networkidle` (no network activity for 500ms).
245
+ - name: delay
187
246
  in: query
188
247
  required: false
189
248
  schema:
190
249
  type: integer
191
- description: Range:0 to 100 for grayscale filter
192
- - name: delay
250
+ default: 0
251
+ description: Wait period in milliseconds before capture. Allows animations, API responses, and dynamic elements to finish rendering.
252
+ - name: lazy_load
253
+ in: query
254
+ required: false
255
+ schema:
256
+ type: boolean
257
+ default: false
258
+ description: Automatically scrolls the page to trigger lazy-loaded images and components. Ensures complete content capture.
259
+ - name: scroll_delay
193
260
  in: query
194
261
  required: false
195
262
  schema:
196
263
  type: integer
197
- description: How many milliseconds to wait before taking the screenshot
264
+ default: 500
265
+ description: Delay in milliseconds between scroll steps when `lazy_load` is enabled. Use higher values for heavy pages.
198
266
  - name: timeout
199
267
  in: query
200
268
  required: false
201
269
  schema:
202
270
  type: integer
203
- description: Maximum timeout in milliseconds. Defalut is `10,000`
204
- - name: ttl
271
+ default: 100000
272
+ description: 'Maximum wait in milliseconds for page load before aborting. Adjust for slow/heavy pages. Default: 100000 (100s).'
273
+ - name: selector
205
274
  in: query
206
275
  required: false
207
276
  schema:
208
- type: integer
209
- description: Number of seconds the screenshot should be cached
210
- - name: clip[x]
277
+ type: string
278
+ description: 'CSS selector to capture a specific element. Only that element is rendered. Falls back to full page if not found. Default: empty.'
279
+ - name: scroll_to_element
211
280
  in: query
212
281
  required: false
213
282
  schema:
214
- type: integer
215
- description: X position of the clipping rectangle in pixels
216
- - name: clip[y]
283
+ type: string
284
+ description: 'Scrolls the page to bring the specified CSS selector into view before capture. Ideal for below-the-fold content. Default: empty.'
285
+ - name: selector_to_click
217
286
  in: query
218
287
  required: false
219
288
  schema:
220
- type: integer
221
- description: Y position of the clipping rectangle in pixels
222
- - name: clip[width]
289
+ type: string
290
+ description: CSS selector for an element to click before capturing the screenshot. Useful for opening dropdowns, modals, or triggering content.
291
+ - name: click_recursion
223
292
  in: query
224
293
  required: false
225
294
  schema:
226
295
  type: integer
227
- description: Width of the clipping rectangle in pixels
228
- - name: clip[height]
296
+ default: 1
297
+ description: Number of times to click the selector (when set via `selector_to_click`).
298
+ - name: blur_selector
229
299
  in: query
230
300
  required: false
301
+ style: form
302
+ explode: false
231
303
  schema:
232
- type: integer
233
- description: Height of the clipping rectangle in pixels
234
- - name: css_url
304
+ type: string
305
+ description: 'CSS selectors to blur before capture. Masks sensitive data like emails, payments, or personal info. Multiple selectors supported. Default: empty.'
306
+ - name: remove_selector
235
307
  in: query
236
308
  required: false
309
+ style: form
310
+ explode: false
237
311
  schema:
238
312
  type: string
239
- description: URL to CSS file
313
+ description: 'CSS selectors to remove before capture. Deletes matched elements from DOM. Ideal for cleaning ads, popups, sidebars. Multiple selectors supported. Default: empty.'
240
314
  - name: css
241
315
  in: query
242
316
  required: false
243
317
  schema:
244
318
  type: string
245
- description: Your custom CSS code
246
- - name: js_url
319
+ description: Allows injecting custom CSS code into the page before rendering. Pass the CSS code directly as a string.
320
+ - name: css_url
247
321
  in: query
248
322
  required: false
249
323
  schema:
250
324
  type: string
251
- description: URL to JS file
325
+ description: Allows loading external CSS into the page. Provide a URL pointing to the CSS file.
252
326
  - name: js
253
327
  in: query
254
328
  required: false
255
329
  schema:
256
330
  type: string
257
- description: Your JS code
331
+ description: Allows injecting custom JavaScript code into the page before rendering. Pass the JavaScript code directly as a string.
332
+ - name: js_url
333
+ in: query
334
+ required: false
335
+ schema:
336
+ type: string
337
+ description: Allows loading external JavaScript into the page. Provide a URL pointing to the script file.
338
+ - name: custom_html
339
+ in: query
340
+ required: false
341
+ schema:
342
+ type: string
343
+ description: Custom HTML to render instead of loading a URL. Overrides the url option. Use for capturing specific HTML structures or dynamic content.
344
+ - name: markdown
345
+ in: query
346
+ required: false
347
+ schema:
348
+ type: string
349
+ description: Markdown to render instead of loading a URL. Works like custom_html, so you can capture a README or notes without hosting a page.
350
+ - name: user_agent
351
+ in: query
352
+ required: false
353
+ schema:
354
+ type: string
355
+ description: Custom User-Agent string sent in the request headers.
356
+ - name: accept_languages
357
+ in: query
358
+ required: false
359
+ schema:
360
+ type: string
361
+ default: en-US,en;q=0.8
362
+ description: Sets the accepted languages for the HTTP request. This is sent as the Accept-Language header.
363
+ - name: dark_mode
364
+ in: query
365
+ required: false
366
+ schema:
367
+ type: boolean
368
+ default: false
369
+ description: 'When set to `true`, websites that support prefers-color-scheme: dark will render in dark mode.'
370
+ - name: grayscale
371
+ in: query
372
+ required: false
373
+ schema:
374
+ type: integer
375
+ default: 0
376
+ description: Applies a grayscale filter to the screenshot. Requires a value from 0 (no effect) to 100 (fully grayscale).
377
+ - name: enable_incognito
378
+ in: query
379
+ required: false
380
+ schema:
381
+ type: boolean
382
+ default: false
383
+ description: Enables private/incognito browsing. Each render starts with a clean slate - no cookies, cache, or session data persisted.
384
+ - name: headers
385
+ in: query
386
+ required: false
387
+ schema:
388
+ type: string
389
+ description: Custom HTTP headers to include as key=value pairs. Use a semicolon to separate multiple headers (e.g., `key1=value1;key2=value2`).
390
+ - name: cookies
391
+ in: query
392
+ required: false
393
+ schema:
394
+ type: string
395
+ description: 'Cookies to include in the request before rendering. Supports single or multiple cookies. Example: `cookie=value; otherCookie=otherValue;`.'
396
+ - name: longitude
397
+ in: query
398
+ required: false
399
+ schema:
400
+ type: number
401
+ description: 'Specify longitude for the browser Geolocation API. Provide a numeric value. Default: null (not set).'
402
+ - name: latitude
403
+ in: query
404
+ required: false
405
+ schema:
406
+ type: number
407
+ description: 'Specify latitude for the browser Geolocation API. Provide a numeric value. Default: null (not set).'
408
+ - name: timezone
409
+ in: query
410
+ required: false
411
+ schema:
412
+ type: string
413
+ description: IANA timezone the browser uses while rendering, such as Asia/Karachi or Europe/London. Useful for clocks and localized dates.
414
+ - name: block_ads
415
+ in: query
416
+ required: false
417
+ schema:
418
+ type: boolean
419
+ default: false
420
+ description: Blocks requests to known ad networks for cleaner, distraction-free screenshots.
421
+ - name: block_chat_widgets
422
+ in: query
423
+ required: false
424
+ schema:
425
+ type: boolean
426
+ default: false
427
+ description: Blocks live chat popups, support bubbles, and messaging interfaces.
428
+ - name: block_tracking
429
+ in: query
430
+ required: false
431
+ schema:
432
+ type: boolean
433
+ default: false
434
+ description: Blocks tracking scripts and analytics services for cleaner, privacy-oriented renders.
435
+ - name: no_cookie_banners
436
+ in: query
437
+ required: false
438
+ schema:
439
+ type: boolean
440
+ default: false
441
+ description: Hides or blocks cookie consent banners and popups before capture.
258
442
  - name: block_js
259
443
  in: query
260
444
  required: false
261
445
  schema:
262
446
  type: boolean
263
- description: Block Scripts
447
+ default: false
448
+ description: Disables all JavaScript execution. Renders a static version of the page. Speeds up capture but may break dynamic content.
264
449
  - name: block_stylesheets
265
450
  in: query
266
451
  required: false
267
452
  schema:
268
453
  type: boolean
269
- description: Block Stylesheets
454
+ default: false
455
+ description: Blocks all stylesheets - page renders as raw HTML without visual formatting.
270
456
  - name: block_images
271
457
  in: query
272
458
  required: false
273
459
  schema:
274
460
  type: boolean
275
- description: Block Images
461
+ default: false
462
+ description: Blocks all image resources (jpg, png, gif, webp, svg, etc.) for faster rendering.
276
463
  - name: block_media
277
464
  in: query
278
465
  required: false
279
466
  schema:
280
467
  type: boolean
281
- description: Block Media
468
+ default: false
469
+ description: Blocks audio and video resources (mp3, mp4, webm, etc.) from loading.
282
470
  - name: block_font
283
471
  in: query
284
472
  required: false
285
473
  schema:
286
474
  type: boolean
287
- description: Block Fonts
475
+ default: false
476
+ description: 'Blocks external font files - page falls back to system defaults. Supported: woff, woff2, ttf, otf, eot.'
288
477
  - name: block_text_track
289
478
  in: query
290
479
  required: false
291
480
  schema:
292
481
  type: boolean
293
- description: Block Text Tracks
482
+ default: false
483
+ description: Blocks subtitles and caption overlays from loading.
294
484
  - name: block_xhr
295
485
  in: query
296
486
  required: false
297
487
  schema:
298
488
  type: boolean
299
- description: Block XHR Requests
489
+ default: false
490
+ description: Blocks all XMLHttpRequest (AJAX) calls - prevents dynamic API-driven content.
300
491
  - name: block_fetch
301
492
  in: query
302
493
  required: false
303
494
  schema:
304
495
  type: boolean
305
- description: Block Fetch Requests
496
+ default: false
497
+ description: Blocks all Fetch API requests - stops async data loading.
306
498
  - name: block_event_source
307
499
  in: query
308
500
  required: false
309
501
  schema:
310
502
  type: boolean
311
- description: Block Event Source
503
+ default: false
504
+ description: Blocks EventSource (SSE) connections - prevents real-time data streams.
312
505
  - name: block_web_socket
313
506
  in: query
314
507
  required: false
315
508
  schema:
316
509
  type: boolean
317
- description: Block Web Sockets
510
+ default: false
511
+ description: Blocks WebSocket connections - prevents real-time bidirectional communication.
318
512
  - name: block_manifest
319
513
  in: query
320
514
  required: false
321
515
  schema:
322
516
  type: boolean
323
- description: Block Manifest
517
+ default: false
518
+ description: Blocks manifest files (.json, .webmanifest) - disables PWA-related functionality.
324
519
  - name: block_specific_requests
325
520
  in: query
326
521
  required: false
327
522
  schema:
328
523
  type: string
329
- description: 'Comma- or newline-separated list of specific requests to block. Each line and comma are treated as separate requests for processing. Example: https://example.com, https://example.js'
330
- - name: blur_selector
331
- in: query
332
- required: false
333
- style: form
334
- explode: false
335
- schema:
336
- type: string
337
- description: 'Comma-separated list of indexed CSS selectors to blur. Format: index:<selector>, e.g., 0:.banner,1:#ads.'
338
- - name: remove_selector
339
- in: query
340
- required: false
341
- style: form
342
- explode: false
343
- schema:
344
- type: string
345
- description: 'Comma-separated list of indexed CSS selectors to remove. Format: index:<selector>, e.g., 0:.banner,1:#ads.'
346
- - name: result_file_name
524
+ description: 'Fine-grained blocking of specific URLs or patterns. Separate multiple rules by comma, space, or newline. Default: empty.'
525
+ - name: extract_text
347
526
  in: query
348
527
  required: false
349
528
  schema:
350
- type: string
351
- description: Specify a meaningful and unique file name to easily identify the screenshot result. Avoid using spaces or special characters; use hyphens or underscores to separate words.
352
- - name: scrolling_screenshot
529
+ type: boolean
530
+ default: false
531
+ description: Strips all HTML and returns visible text as a .txt file. Ideal for text analysis, indexing, or AI pipelines. Only with output=json.
532
+ - name: extract_html
353
533
  in: query
354
534
  required: false
355
535
  schema:
356
536
  type: boolean
357
- description: '**`Scrolling Screenshot`**: Capture a long scrolling screenshot. When true, disable `fullPage` and `freshScreenshot`.'
358
- - name: scroll_speed
537
+ default: false
538
+ description: Returns rendered HTML as a .html file (includes JS-executed DOM). Only available with output=json.
539
+ - name: extract_markdown
359
540
  in: query
360
541
  required: false
361
542
  schema:
362
- type: string
363
- enum:
364
- - normal
365
- - fast
366
- - slow
367
- description: Speed of scrolling during the screenshot.
368
- - name: scroll_back
543
+ type: boolean
544
+ default: false
545
+ description: Extracts rendered page content as a structured .md (Markdown) file. Preserves headings, lists, links. Only with output=json.
546
+ - name: get_image_urls
369
547
  in: query
370
548
  required: false
371
549
  schema:
372
550
  type: boolean
373
- description: If true, the scroll will reverse back to the top after reaching the bottom.
374
- - name: start_immediately
551
+ default: false
552
+ description: Extracts all image URLs from the rendered DOM and returns them in structured format. Only with output=json.
553
+ - name: stealth
375
554
  in: query
376
555
  required: false
377
556
  schema:
378
557
  type: boolean
379
- description: If true, the scrolling capture will start immediately upon page load.
380
- - name: multiple_scrolling
558
+ default: false
559
+ description: Makes the browser look like a regular visitor for pages that block automated traffic. No extra credits.
560
+ - name: gpu
381
561
  in: query
382
562
  required: false
383
563
  schema:
384
564
  type: boolean
385
- description: If true, multiple scrolling screenshots will be taken at different viewport sizes.
386
- - name: sizes
565
+ default: false
566
+ description: Renders the page with a GPU, including WebGL and canvas content. Adds 20 credits per request.
567
+ - name: proxy
387
568
  in: query
388
569
  required: false
389
- style: form
390
- explode: false
391
570
  schema:
392
571
  type: string
393
- description: 'Comma-separated list of viewport sizes in format index:XXw:YYh. Example: sizes=0:120w:300h,1:240w:500h'
394
- - name: duration
395
- in: query
396
- required: false
397
- schema:
398
- type: number
399
- minimum: 0
400
- maximum: 60
401
- description: Duration in seconds for the scrolling capture. Acceptable range is 0 to 60 seconds.
402
- - name: fail_on_error
572
+ description: 'Allows defining a proxy for the connection. Provide a JSON string with keys: server (include port number), username, and password.'
573
+ - name: classic_proxy
403
574
  in: query
404
575
  required: false
405
576
  schema:
406
577
  type: boolean
407
- description: If true, returns an error when the target page responds with 4xx or 5xx status.
408
- - name: longitude
578
+ default: false
579
+ description: Loads the page through a datacenter proxy. Adds 20 credits per request. Ignored when premium_proxy is true or a custom proxy is set.
580
+ - name: premium_proxy
409
581
  in: query
410
582
  required: false
411
583
  schema:
412
- type: number
413
- description: Specify longitude for the browser Geolocation API.
414
- - name: latitude
584
+ type: boolean
585
+ default: false
586
+ description: Loads the page through a residential proxy. Adds 200 credits per request. Used instead of classic_proxy.
587
+ - name: country
415
588
  in: query
416
589
  required: false
417
590
  schema:
418
- type: number
419
- description: Specify latitude for the browser Geolocation API.
420
- - name: proxy
591
+ type: string
592
+ description: 'Two-letter country code, such as US or DE, for the exit address of classic_proxy or premium_proxy. Ignored when you send your own proxy. Any two-letter code is sent, including one that is not listed. Classic proxy countries: BG, GE, DE, HN, MD, UA, GB, US. Premium proxy countries: AF, AL, DZ, AO, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BT, BO, BQ, BA, BW, BR, BN, BG, BF, BI, CV, KH, CM, CA, KY, CF, TD, CL, CN, CO, KM, CG, CR, CI, HR, CU, CW, CY, CZ, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, EE, SZ, ET, FO, FJ, FI, FR, GF, PF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IL, IT, JM, JP, JE, JO, KZ, KE, XK, KW, KG, LA, LV, LB, LS, LR, LY, LT, MO, MG, MW, MY, MV, ML, MT, MQ, MR, MU, YT, MX, MD, MN, ME, MA, MZ, MM, NA, NP, NL, NC, NZ, NI, NE, NG, MK, NO, OM, PK, PS, PA, PG, PY, PE, PH, PL, PT, PR, QA, RE, RO, RU, RW, KN, LC, VC, WS, SA, SN, RS, SC, SL, SG, SK, SI, SB, SO, ZA, KR, SS, ES, LK, SD, SR, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TO, TT, TN, TR, TM, UG, UA, AE, GB, US, UY, UZ, VE, VN, YE, ZM, ZW.'
593
+ - name: solve_captcha
421
594
  in: query
422
595
  required: false
423
596
  schema:
424
- type: string
425
- description: 'Allows defining a proxy for the connection. Provide a JSON string with keys: server (include port number), username, and password.'
426
- - name: headers
597
+ type: boolean
598
+ default: false
599
+ description: Solves a captcha made of text drawn in a picture, then takes the screenshot. Requires captcha_image and captcha_input. Adds 20 credits per request.
600
+ - name: captcha_image
427
601
  in: query
428
602
  required: false
429
603
  schema:
430
604
  type: string
431
- description: Custom HTTP headers to include as key=value pairs. Use a semicolon to separate multiple headers (e.g., key1=value1;key2=value2).
432
- - name: cookies
605
+ description: CSS selector of the captcha picture. Required when solve_captcha is true.
606
+ - name: captcha_input
433
607
  in: query
434
608
  required: false
435
609
  schema:
436
610
  type: string
437
- description: 'Cookies to include in the request before rendering. Supports single or multiple cookies. Example: cookie=value; otherCookie=otherValue;'
438
- - name: scroll_to_element
611
+ description: CSS selector of the box the answer is typed into. Required when solve_captcha is true.
612
+ - name: captcha_submit
439
613
  in: query
440
614
  required: false
441
615
  schema:
442
616
  type: string
443
- description: Scrolls the page to bring the specified CSS selector into view before capture.
444
- - name: selector
617
+ description: CSS selector of the button to click after the answer is typed.
618
+ - name: captcha_error
445
619
  in: query
446
620
  required: false
447
621
  schema:
448
622
  type: string
449
- description: CSS selector to capture a specific element. Only that element is rendered.
450
- - name: selector_to_click
623
+ description: CSS selector of the message shown for a wrong answer. While it is visible, the solver tries again.
624
+ - name: captcha_refresh
451
625
  in: query
452
626
  required: false
453
627
  schema:
454
628
  type: string
455
- description: CSS selector for an element to click before capturing the screenshot.
456
- - name: click_recursion
629
+ description: CSS selector of the control that loads a new captcha picture before the next try.
630
+ - name: captcha_retries
457
631
  in: query
458
632
  required: false
459
633
  schema:
460
634
  type: integer
461
- description: 'Number of times to click the selector (when set via selector_to_click). Default: 1.'
462
- - name: user_agent
635
+ minimum: 1
636
+ maximum: 5
637
+ default: 3
638
+ description: Number of guesses the solver makes, from 1 to 5.
639
+ - name: ocr_model
463
640
  in: query
464
641
  required: false
465
642
  schema:
466
643
  type: string
467
- description: Custom User-Agent string sent in the request headers.
468
- - name: accept_languages
644
+ enum:
645
+ - mini-ocr-v1
646
+ - ocr-v1
647
+ default: mini-ocr-v1
648
+ description: 'Recognition model used by the captcha solver: mini-ocr-v1 (default) or ocr-v1.'
649
+ - name: scrolling_screenshot
469
650
  in: query
470
651
  required: false
471
652
  schema:
472
- type: string
473
- description: Sets the accepted languages for the HTTP request. Sent as the Accept-Language header.
474
- - name: scroll_delay
653
+ type: boolean
654
+ default: false
655
+ description: Enables scrolling screenshot mode to capture a video (webm, gif, mp4) of the webpage.
656
+ - name: video
475
657
  in: query
476
658
  required: false
477
659
  schema:
478
- type: integer
479
- description: Delay in milliseconds between scroll steps when lazy_load is enabled.
480
- - name: custom_html
660
+ type: boolean
661
+ default: false
662
+ description: Records visible viewport only for a specified duration. Use with `duration` parameter. Ideal for dashboards and animations.
663
+ - name: scroll_speed
481
664
  in: query
482
665
  required: false
483
666
  schema:
484
667
  type: string
485
- description: Custom HTML to render instead of loading a URL. Overrides the url option.
486
- - name: image_quality
668
+ enum:
669
+ - normal
670
+ - fast
671
+ - slow
672
+ default: normal
673
+ description: 'Scrolling speed: fast, normal (default), or slow. Affects render time and output pacing.'
674
+ - name: scroll_back
487
675
  in: query
488
676
  required: false
489
677
  schema:
490
- type: integer
491
- description: Compression level for JPEG output (0–100). Lower = smaller file, higher = better quality. Only applies to JPEG.
492
- - name: extract_markdown
678
+ type: boolean
679
+ default: false
680
+ description: If `true`, scrolls to bottom then back to top, creating a seamless loop.
681
+ - name: start_immediately
493
682
  in: query
494
683
  required: false
495
684
  schema:
496
685
  type: boolean
497
- description: Extracts rendered page content as a structured .md (Markdown) file.
498
- - name: get_image_urls
686
+ default: false
687
+ description: Starts recording immediately without waiting for full page load.
688
+ - name: multiple_scrolling
499
689
  in: query
500
690
  required: false
501
691
  schema:
502
692
  type: boolean
503
- description: Extracts all image URLs from the rendered DOM and returns them in structured format.
693
+ default: false
694
+ description: Captures multiple scrolling screenshots at different viewport sizes in one request. Requires the `sizes` parameter.
695
+ - name: sizes
696
+ in: query
697
+ required: false
698
+ style: form
699
+ explode: false
700
+ schema:
701
+ type: string
702
+ description: Comma-separated list of screen sizes in the format index:WIDTHw:HEIGHTh, for example 0:1280w:720h,1:390w:844h. Required when `multiple_scrolling` is `true`.
703
+ - name: duration
704
+ in: query
705
+ required: false
706
+ schema:
707
+ type: integer
708
+ minimum: 0
709
+ maximum: 60
710
+ description: 'Duration of scrolling action in seconds (0-60). Higher = longer video. Default: null (full page scroll).'
504
711
  responses:
505
712
  '200':
506
713
  description: Successful PDF response
@@ -683,6 +890,14 @@ paths:
683
890
  error: request_aborted
684
891
  message: The request was aborted before it completed, for example due to a timeout or cancellation.
685
892
  path: /v3/screenshot
893
+ errAddressUnreachable:
894
+ summary: Target address unreachable
895
+ value:
896
+ timestamp: '2026-07-27T10:19:12.500Z'
897
+ status: 400
898
+ error: ERR_ADDRESS_UNREACHABLE
899
+ message: Target address is unreachable. Please check the URL or network connectivity.
900
+ path: /v3/screenshot
686
901
  schema:
687
902
  $ref: '#/components/schemas/ErrorResponse'
688
903
  headers:
@@ -869,91 +1084,91 @@ components:
869
1084
  description: Time until the screenshot expires (ISO 8601 format).
870
1085
  file_type:
871
1086
  type: string
872
- description: The file type of the output (e.g., PNG, JPEG).
1087
+ description: The file type of the output.
873
1088
  width:
874
1089
  type: integer
875
- description: Viewport width used for capture in pixels.
1090
+ description: The viewport width that was used in pixels.
876
1091
  height:
877
1092
  type: integer
878
- description: Viewport height used for capture in pixels.
1093
+ description: The viewport height that was used in pixels.
879
1094
  fresh:
880
1095
  type: boolean
881
- description: Whether a fresh render was performed.
1096
+ description: Whether a fresh render was performed (`true`/`false`).
882
1097
  full_page:
883
1098
  type: boolean
884
- description: Whether full page capture was used.
1099
+ description: Whether full page capture was used (`true`/`false`).
885
1100
  lazy_load:
886
1101
  type: boolean
887
- description: Whether lazy loading was triggered.
1102
+ description: Whether lazy loading was triggered (`true`/`false`).
888
1103
  retina:
889
1104
  type: boolean
890
- description: Whether retina capture was used.
1105
+ description: Whether retina capture was used (`true`/`false`).
891
1106
  dark_mode:
892
1107
  type: boolean
893
- description: Whether dark mode was enabled.
1108
+ description: Whether dark mode was enabled (`true`/`false`).
894
1109
  enable_caching:
895
1110
  type: boolean
896
- description: Whether caching was enabled.
1111
+ description: Whether caching was enabled (`true`/`false`).
897
1112
  omit_background:
898
1113
  type: boolean
899
- description: Whether background was removed.
1114
+ description: Whether background was removed (`true`/`false`).
900
1115
  destroy_screenshot:
901
1116
  type: boolean
902
- description: Whether the screenshot was destroyed after generation.
1117
+ description: Whether the screenshot was destroyed after generation (`true`/`false`).
903
1118
  fail_on_error:
904
1119
  type: boolean
905
- description: Whether the request failed on error.
1120
+ description: Whether the request failed on error (`true`/`false`).
906
1121
  block_ads:
907
1122
  type: boolean
908
- description: Whether ads were blocked.
1123
+ description: Whether ads were blocked (`true`/`false`).
909
1124
  no_cookie_banners:
910
1125
  type: boolean
911
- description: Whether cookie banners were blocked.
1126
+ description: Whether cookie banners were blocked (`true`/`false`).
912
1127
  block_chat_widgets:
913
1128
  type: boolean
914
- description: Whether chat widgets were blocked.
1129
+ description: Whether chat widgets were blocked (`true`/`false`).
915
1130
  block_tracking:
916
1131
  type: boolean
917
- description: Whether tracking scripts were blocked.
1132
+ description: Whether tracking scripts were blocked (`true`/`false`).
918
1133
  block_js:
919
1134
  type: boolean
920
- description: Whether JavaScript was blocked.
1135
+ description: Whether JavaScript was blocked (`true`/`false`).
921
1136
  block_stylesheets:
922
1137
  type: boolean
923
- description: Whether stylesheets were blocked.
1138
+ description: Whether stylesheets were blocked (`true`/`false`).
924
1139
  block_images:
925
1140
  type: boolean
926
- description: Whether images were blocked.
1141
+ description: Whether images were blocked (`true`/`false`).
927
1142
  block_media:
928
1143
  type: boolean
929
- description: Whether media files were blocked.
1144
+ description: Whether media files were blocked (`true`/`false`).
930
1145
  block_font:
931
1146
  type: boolean
932
- description: Whether fonts were blocked.
1147
+ description: Whether fonts were blocked (`true`/`false`).
933
1148
  block_xhr:
934
1149
  type: boolean
935
- description: Whether XHR requests were blocked.
1150
+ description: Whether XHR requests were blocked (`true`/`false`).
936
1151
  block_fetch:
937
1152
  type: boolean
938
- description: Whether Fetch API requests were blocked.
1153
+ description: Whether Fetch API requests were blocked (`true`/`false`).
939
1154
  block_web_socket:
940
1155
  type: boolean
941
- description: Whether WebSocket connections were blocked.
1156
+ description: Whether WebSocket connections were blocked (`true`/`false`).
942
1157
  block_manifest:
943
1158
  type: boolean
944
- description: Whether manifest files were blocked.
1159
+ description: Whether manifest files were blocked (`true`/`false`).
945
1160
  extract_text:
946
1161
  type: boolean
947
- description: Whether text content was extracted.
1162
+ description: Whether text content was extracted (`true`/`false`).
948
1163
  extract_html:
949
1164
  type: boolean
950
- description: Whether HTML content was extracted.
1165
+ description: Whether HTML content was extracted (`true`/`false`).
951
1166
  extract_markdown:
952
1167
  type: boolean
953
- description: Whether markdown extraction was enabled.
1168
+ description: Whether markdown extraction was enabled (`true`/`false`).
954
1169
  get_image_urls:
955
1170
  type: boolean
956
- description: Whether image URL extraction was enabled.
1171
+ description: Whether image URL extraction was enabled (`true`/`false`).
957
1172
  longitude:
958
1173
  type: number
959
1174
  format: float
@@ -979,7 +1194,7 @@ components:
979
1194
  description: The element that was selected for rendering.
980
1195
  selector_to_click:
981
1196
  type: string
982
- description: The CSS selector that was clicked before capture.
1197
+ description: The CSS selector of the element that was clicked before capture.
983
1198
  click_recursion:
984
1199
  type: integer
985
1200
  description: The number of times the selector was clicked.
@@ -1035,15 +1250,15 @@ components:
1035
1250
  description: The grayscale level that was applied (0-100).
1036
1251
  scrolling_screenshot:
1037
1252
  type: boolean
1038
- description: Whether scrolling screenshot mode was enabled.
1253
+ description: Whether scrolling screenshot mode was enabled (`true`/`false`).
1039
1254
  multiple_scrolling:
1040
1255
  type: boolean
1041
- description: Whether multiple scrolling captures were performed.
1256
+ description: Whether multiple scrolling captures were performed (`true`/`false`).
1042
1257
  sizes:
1043
1258
  type: array
1044
1259
  items:
1045
1260
  type: string
1046
- description: The dimensions used for each capture.
1261
+ description: The dimensions used for each capture in the array.
1047
1262
  scroll_speed:
1048
1263
  type: string
1049
1264
  description: Scrolling speed that was used.
@@ -1061,7 +1276,45 @@ components:
1061
1276
  description: The final filename used for the output file.
1062
1277
  enable_incognito:
1063
1278
  type: boolean
1064
- description: Whether incognito mode was enabled.
1279
+ description: Whether incognito mode was enabled (`true`/`false`).
1280
+ extracted_html:
1281
+ type: string
1282
+ description: URL of the extracted HTML from the webpage.
1283
+ format: uri
1284
+ extracted_text:
1285
+ type: string
1286
+ description: URL of the extracted plain text from the webpage.
1287
+ format: uri
1288
+ custom_html:
1289
+ type: string
1290
+ description: The custom HTML content that was rendered.
1291
+ block_text_track:
1292
+ type: boolean
1293
+ description: Whether text tracks were blocked (`true`/`false`).
1294
+ block_event_source:
1295
+ type: boolean
1296
+ description: Whether EventSource connections were blocked (`true`/`false`).
1297
+ block_specific_requests:
1298
+ type: string
1299
+ description: The specific requests that were blocked.
1300
+ clip:
1301
+ type: object
1302
+ description: The dimensions of the clipped area that was captured.
1303
+ properties:
1304
+ x:
1305
+ type: integer
1306
+ 'y':
1307
+ type: integer
1308
+ width:
1309
+ type: integer
1310
+ height:
1311
+ type: integer
1312
+ scroll_delay:
1313
+ type: integer
1314
+ description: The delay between scroll steps that was applied in milliseconds.
1315
+ video:
1316
+ type: boolean
1317
+ description: Whether viewport recording mode was enabled (`true`/`false`).
1065
1318
  ErrorResponse:
1066
1319
  type: object
1067
1320
  description: Standard error envelope returned by the API on failed requests.