@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: Bulk Screenshot API - Capture Up to 50 URLs in a Single Request
4
4
  version: 1.0.0
5
- description: Capture screenshots of multiple websites in a single POST request. Accepts up to 50 URLs per request with per-URL options for file type, viewport size, blocking, caching, and scrolling capture. Returns a status indicator, metadata with success/failure counts, and an array of per-URL results — each containing either screenshot data or an error message.
5
+ description: 'Capture screenshots of multiple websites in a single POST request. Accepts up to 50 URLs per request with per-URL options for file type, viewport size, blocking, caching, and scrolling capture. Returns a status indicator, metadata with success/failure counts, and an array of per-URL results — each containing either screenshot data or an error message. 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
@@ -45,6 +45,18 @@ paths:
45
45
  - url: https://github.com
46
46
  file_type: JPEG
47
47
  full_page: true
48
+ gifScrolling:
49
+ summary: Scrolling GIF capture
50
+ value:
51
+ urls:
52
+ - url: https://whoisfreaks.com/
53
+ file_type: gif
54
+ width: 3840
55
+ height: 2160
56
+ fresh: true
57
+ image_quality: 100
58
+ scrolling_screenshot: true
59
+ duration: 10
48
60
  responses:
49
61
  '200':
50
62
  description: Successful response. Each item in `results` corresponds to one requested URL, in the same order; a URL that fails validation or capture returns an error object in its `url` field instead of screenshot data, while `status` stays "fulfilled" and `error_message` stays null.
@@ -265,6 +277,31 @@ paths:
265
277
  path: /v3/screenshot
266
278
  status: fulfilled
267
279
  error_message: null
280
+ scrollingGif:
281
+ summary: Scrolling GIF capture
282
+ value:
283
+ status: success
284
+ meta_data:
285
+ total_urls: 1
286
+ successful_urls: 1
287
+ failed_urls: 0
288
+ results:
289
+ - url:
290
+ screenshot: https://s3.eu-central-2.wasabisys.com/w.storage.apifreaks.com/whoisfreaks_com__a34071f0e507.gif
291
+ url: https://whoisfreaks.com/
292
+ created_at: '2026-06-15T17:59:10.306Z'
293
+ file_type: gif
294
+ width: 3840
295
+ height: 2160
296
+ fresh: true
297
+ image_quality: 100
298
+ scrolling_screenshot: true
299
+ duration: 10
300
+ output: json
301
+ ttl: '2026-07-15T17:58:43.853Z'
302
+ sizes: null
303
+ status: fulfilled
304
+ error_message: null
268
305
  headers:
269
306
  X-AF-Credits-Cost:
270
307
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -294,6 +331,28 @@ paths:
294
331
  $ref: '#/components/headers/X-Concurrent-Threads'
295
332
  X-Concurrent-Threads-Active:
296
333
  $ref: '#/components/headers/X-Concurrent-Threads-Active'
334
+ '401':
335
+ description: Unauthorized
336
+ content:
337
+ application/json:
338
+ examples:
339
+ '401':
340
+ summary: Unauthorized
341
+ value:
342
+ error: API Access Exception
343
+ message: 'Provided API key is invalid. [For Technical Support: support@apifreaks.com]'
344
+ path: /v1.0/screenshot
345
+ status: 401
346
+ timestamp: '2026-07-27T10:18:57.172Z'
347
+ schema:
348
+ $ref: '#/components/schemas/ErrorResponse'
349
+ headers:
350
+ X-AF-Credits-Cost:
351
+ $ref: '#/components/headers/X-AF-Credits-Cost'
352
+ X-Concurrent-Threads:
353
+ $ref: '#/components/headers/X-Concurrent-Threads'
354
+ X-Concurrent-Threads-Active:
355
+ $ref: '#/components/headers/X-Concurrent-Threads-Active'
297
356
  '413':
298
357
  description: Payload too large
299
358
  content:
@@ -316,6 +375,28 @@ paths:
316
375
  $ref: '#/components/headers/X-Concurrent-Threads'
317
376
  X-Concurrent-Threads-Active:
318
377
  $ref: '#/components/headers/X-Concurrent-Threads-Active'
378
+ '500':
379
+ description: Internal Server Error
380
+ content:
381
+ application/json:
382
+ examples:
383
+ '500':
384
+ summary: Internal server error
385
+ value:
386
+ error: internal_server_error
387
+ message: An internal server error occured while processing the request. Please try again or contact support if the issue persists.
388
+ path: /v1.0/screenshot
389
+ status: 500
390
+ timestamp: '2026-07-27T10:18:57.172Z'
391
+ schema:
392
+ $ref: '#/components/schemas/ErrorResponse'
393
+ headers:
394
+ X-AF-Credits-Cost:
395
+ $ref: '#/components/headers/X-AF-Credits-Cost'
396
+ X-Concurrent-Threads:
397
+ $ref: '#/components/headers/X-Concurrent-Threads'
398
+ X-Concurrent-Threads-Active:
399
+ $ref: '#/components/headers/X-Concurrent-Threads-Active'
319
400
  components:
320
401
  securitySchemes:
321
402
  ApiKeyAuthHeader:
@@ -338,7 +419,7 @@ components:
338
419
  properties:
339
420
  status:
340
421
  type: string
341
- description: Processing status for this item (fulfilled).
422
+ description: Processing status of the individual URL. Usually `fulfilled`.
342
423
  url:
343
424
  description: Screenshot metadata for this URL, or an error object if this specific URL could not be captured.
344
425
  oneOf:
@@ -350,7 +431,7 @@ components:
350
431
  type:
351
432
  - string
352
433
  - 'null'
353
- description: Observed to always be null; per-item error details are returned inside `url` instead.
434
+ description: Error message if processing failed, null if successful.
354
435
  BulkScreenshotUrlData:
355
436
  type: object
356
437
  description: Screenshot result data for a single URL. Contains the same fields as the single Website Screenshot API response.
@@ -362,7 +443,7 @@ components:
362
443
  screenshot:
363
444
  type: string
364
445
  format: uri
365
- description: URL of the captured screenshot image.
446
+ description: URL of the captured screenshot image file.
366
447
  url:
367
448
  type: string
368
449
  format: uri
@@ -390,16 +471,16 @@ components:
390
471
  description: URL of the extracted plain text from the webpage.
391
472
  enable_caching:
392
473
  type: boolean
393
- description: Whether caching was enabled.
474
+ description: Whether caching was enabled (`true`/`false`).
394
475
  omit_background:
395
476
  type: boolean
396
- description: Whether background was removed.
477
+ description: Whether background was removed (`true`/`false`).
397
478
  destroy_screenshot:
398
479
  type: boolean
399
- description: Whether the screenshot was destroyed after generation.
480
+ description: Whether the screenshot was destroyed after generation (`true`/`false`).
400
481
  fail_on_error:
401
482
  type: boolean
402
- description: Whether the request failed on error.
483
+ description: Whether the request failed on error (`true`/`false`).
403
484
  longitude:
404
485
  type: number
405
486
  format: float
@@ -410,184 +491,197 @@ components:
410
491
  description: The latitude value used for geolocation.
411
492
  proxy:
412
493
  type: string
413
- description: The proxy configuration used.
494
+ description: The proxy configuration used for the request.
414
495
  no_cookie_banners:
415
496
  type: boolean
416
- description: Whether cookie banners were blocked.
497
+ description: Whether cookie banners were blocked (`true`/`false`).
417
498
  block_ads:
418
499
  type: boolean
419
- description: Whether ads were blocked.
500
+ description: Whether ads were blocked (`true`/`false`).
420
501
  headers:
421
502
  type: string
422
- description: Custom headers included in the request.
503
+ description: The custom headers that were included in the request.
423
504
  cookies:
424
505
  type: string
425
- description: Cookies included in the request.
506
+ description: The cookies that were included in the request.
426
507
  scroll_to_element:
427
508
  type: string
428
- description: Element scrolled to before rendering.
509
+ description: The element that was scrolled to before rendering.
429
510
  selector:
430
511
  type: string
431
- description: Element selected for rendering.
512
+ description: The element that was selected for rendering.
432
513
  blur_selector:
433
514
  type: string
434
- description: Elements blurred in the output.
515
+ description: The elements that were blurred in the output.
435
516
  remove_selector:
436
517
  type: string
437
- description: Elements removed from the output.
518
+ description: The elements that were removed from the output.
438
519
  css:
439
520
  type: string
440
- description: Custom CSS injected into the page.
521
+ description: The custom CSS that was injected into the page.
441
522
  css_url:
442
523
  type: string
443
524
  format: uri
444
- description: External CSS URL that was loaded.
525
+ description: The external CSS URL that was loaded.
445
526
  js:
446
527
  type: string
447
- description: Custom JavaScript that was injected.
528
+ description: The custom JavaScript that was injected.
448
529
  js_url:
449
530
  type: string
450
531
  format: uri
451
- description: External JavaScript URL that was loaded.
532
+ description: The external JavaScript URL that was loaded.
452
533
  user_agent:
453
534
  type: string
454
- description: User-Agent string that was used.
535
+ description: The User-Agent string that was used.
455
536
  accept_languages:
456
537
  type: string
457
- description: Accept-Language header that was used.
538
+ description: The Accept-Language header that was used.
458
539
  delay:
459
540
  type: integer
460
- description: Delay duration in milliseconds.
541
+ description: The delay duration that was applied in milliseconds.
461
542
  thumbnail_width:
462
543
  type: integer
463
- description: Thumbnail width in pixels.
544
+ description: The thumbnail width that was used in pixels.
464
545
  output:
465
546
  type: string
466
- description: Output type used.
547
+ description: The output type that was used.
467
548
  fresh:
468
549
  type: boolean
469
- description: Whether a fresh render was performed.
550
+ description: Whether a fresh render was performed (`true`/`false`).
470
551
  lazy_load:
471
552
  type: boolean
472
- description: Whether lazy loading was triggered.
553
+ description: Whether lazy loading was triggered (`true`/`false`).
473
554
  full_page:
474
555
  type: boolean
475
- description: Whether full page capture was used.
556
+ description: Whether full page capture was used (`true`/`false`).
476
557
  retina:
477
558
  type: boolean
478
- description: Whether retina capture was used.
559
+ description: Whether retina capture was used (`true`/`false`).
479
560
  height:
480
561
  type: integer
481
- description: Viewport height used in pixels.
562
+ description: The viewport height that was used in pixels.
482
563
  width:
483
564
  type: integer
484
- description: Viewport width used in pixels.
565
+ description: The viewport width that was used in pixels.
485
566
  custom_html:
486
567
  type: string
487
- description: Custom HTML content rendered.
568
+ description: The custom HTML content that was rendered.
488
569
  block_chat_widgets:
489
570
  type: boolean
490
- description: Whether chat widgets were blocked.
571
+ description: Whether chat widgets were blocked (`true`/`false`).
491
572
  block_js:
492
573
  type: boolean
493
- description: Whether JavaScript was blocked.
574
+ description: Whether JavaScript was blocked (`true`/`false`).
494
575
  block_stylesheets:
495
576
  type: boolean
496
- description: Whether stylesheets were blocked.
577
+ description: Whether stylesheets were blocked (`true`/`false`).
497
578
  block_images:
498
579
  type: boolean
499
- description: Whether images were blocked.
580
+ description: Whether images were blocked (`true`/`false`).
500
581
  block_media:
501
582
  type: boolean
502
- description: Whether media files were blocked.
583
+ description: Whether media files were blocked (`true`/`false`).
503
584
  block_font:
504
585
  type: boolean
505
- description: Whether fonts were blocked.
586
+ description: Whether fonts were blocked (`true`/`false`).
506
587
  block_text_track:
507
588
  type: boolean
508
- description: Whether text tracks were blocked.
589
+ description: Whether text tracks were blocked (`true`/`false`).
509
590
  block_xhr:
510
591
  type: boolean
511
- description: Whether XHR requests were blocked.
592
+ description: Whether XHR requests were blocked (`true`/`false`).
512
593
  block_fetch:
513
594
  type: boolean
514
- description: Whether Fetch API requests were blocked.
595
+ description: Whether Fetch API requests were blocked (`true`/`false`).
515
596
  block_event_source:
516
597
  type: boolean
517
- description: Whether EventSource connections were blocked.
598
+ description: Whether EventSource connections were blocked (`true`/`false`).
518
599
  block_web_socket:
519
600
  type: boolean
520
- description: Whether WebSocket connections were blocked.
601
+ description: Whether WebSocket connections were blocked (`true`/`false`).
521
602
  block_manifest:
522
603
  type: boolean
523
- description: Whether manifest files were blocked.
604
+ description: Whether manifest files were blocked (`true`/`false`).
524
605
  block_specific_requests:
525
606
  type: string
526
- description: Specific requests that were blocked.
607
+ description: The specific requests that were blocked.
527
608
  adjust_top:
528
609
  type: integer
529
- description: Vertical position scrolled to in pixels.
610
+ description: The vertical position that was scrolled to in pixels.
530
611
  image_quality:
531
612
  type: integer
532
- description: Image quality level applied.
613
+ description: The image quality level that was applied.
533
614
  extract_html:
534
615
  type: boolean
535
- description: Whether HTML content was extracted.
616
+ description: Whether HTML content was extracted (`true`/`false`).
536
617
  extract_text:
537
618
  type: boolean
538
- description: Whether text content was extracted.
619
+ description: Whether text content was extracted (`true`/`false`).
539
620
  dark_mode:
540
621
  type: boolean
541
- description: Whether dark mode was enabled.
622
+ description: Whether dark mode was enabled (`true`/`false`).
542
623
  block_tracking:
543
624
  type: boolean
544
- description: Whether tracking scripts were blocked.
625
+ description: Whether tracking scripts were blocked (`true`/`false`).
545
626
  wait_for_event:
546
627
  type: string
547
- description: The event that triggered rendering.
628
+ description: The event that triggered the rendering to start.
548
629
  grayscale:
549
630
  type: integer
550
- description: Grayscale level applied (0-100).
631
+ description: The grayscale level that was applied (0-100).
551
632
  clip:
552
633
  $ref: '#/components/schemas/ClipRect'
634
+ description: The dimensions of the clipped area that was captured.
553
635
  result_file_name:
554
636
  type: string
555
- description: Final filename used for the output.
637
+ description: The final filename used for the output file.
556
638
  enable_incognito:
557
639
  type: boolean
558
- description: Whether incognito mode was enabled.
640
+ description: Whether incognito mode was enabled (`true`/`false`).
559
641
  timeout:
560
642
  type: integer
561
- description: Actual timeout duration in milliseconds.
643
+ description: The actual timeout duration that was applied in milliseconds.
562
644
  scrolling_screenshot:
563
645
  type: boolean
564
- description: Whether scrolling screenshot mode was enabled.
646
+ description: Whether scrolling screenshot mode was enabled (`true`/`false`).
565
647
  multiple_scrolling:
566
648
  type: boolean
567
- description: Whether multiple scrolling captures were performed.
649
+ description: Whether multiple scrolling captures were performed (`true`/`false`).
568
650
  sizes:
569
651
  type: array
570
652
  items:
571
653
  type: string
572
- description: Dimensions used for each capture.
654
+ description: The dimensions used for each capture in the array.
573
655
  extract_markdown:
574
656
  type: boolean
575
- description: Whether markdown extraction was enabled.
657
+ description: Whether markdown extraction was enabled (`true`/`false`).
576
658
  get_image_urls:
577
659
  type: boolean
578
- description: Whether image URL extraction was enabled.
660
+ description: Whether image URL extraction was enabled (`true`/`false`).
579
661
  scroll_delay:
580
662
  type: integer
581
- description: Delay between scroll steps in milliseconds.
663
+ description: The delay between scroll steps that was applied in milliseconds.
582
664
  selector_to_click:
583
665
  type: string
584
- description: CSS selector clicked before capture.
666
+ description: The CSS selector of the element that was clicked before capture.
585
667
  click_recursion:
586
668
  type: integer
587
- description: Number of times the selector was clicked.
669
+ description: The number of times the selector was clicked.
588
670
  video:
589
671
  type: boolean
590
- description: Whether viewport recording mode was enabled.
672
+ description: Whether viewport recording mode was enabled (`true`/`false`).
673
+ scroll_speed:
674
+ type: string
675
+ description: Scrolling speed that was used.
676
+ scroll_back:
677
+ type: boolean
678
+ description: Whether scroll back was enabled.
679
+ start_immediately:
680
+ type: boolean
681
+ description: Whether recording started immediately.
682
+ duration:
683
+ type: integer
684
+ description: Duration of scrolling capture in seconds.
591
685
  ClipRect:
592
686
  type: object
593
687
  description: Clipping rectangle dimensions for the captured area.
@@ -630,7 +724,7 @@ components:
630
724
  url:
631
725
  type: string
632
726
  format: uri
633
- description: URL of the website to capture.
727
+ description: URL of the website to be rendered as a screenshot or other format.
634
728
  file_type:
635
729
  type: string
636
730
  enum:
@@ -638,238 +732,388 @@ components:
638
732
  - JPEG
639
733
  - WEBP
640
734
  - PDF
735
+ - MP4
736
+ - GIF
737
+ - WEBM
641
738
  - mp4
642
739
  - gif
643
740
  - webm
644
- description: Output format for this URL.
645
- width:
646
- type: integer
647
- description: Viewport width in pixels.
648
- height:
741
+ 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).'
742
+ default: PNG
743
+ image_quality:
649
744
  type: integer
650
- description: Viewport height in pixels.
651
- full_page:
745
+ description: Compression level for JPEG output (0-100). Lower = smaller file, higher = better quality. Only applies to JPEG.
746
+ default: 80
747
+ omit_background:
652
748
  type: boolean
653
- description: Capture a full-page screenshot.
749
+ description: Replaces simple white/plain backgrounds with transparency for a cut-out effect. Only works with PNG output.
750
+ default: false
751
+ pdf_options:
752
+ type: object
753
+ description: PDF output options. Applies when file_type is PDF.
754
+ properties:
755
+ format:
756
+ type: string
757
+ enum:
758
+ - A0
759
+ - A1
760
+ - A2
761
+ - A3
762
+ - A4
763
+ - A5
764
+ - A6
765
+ - Letter
766
+ - Legal
767
+ - Tabloid
768
+ - Ledger
769
+ 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.'
770
+ landscape:
771
+ type: boolean
772
+ description: Renders the PDF in landscape orientation, swapping the width and height of the paper size. Applies when file_type is PDF.
773
+ default: false
774
+ page_range:
775
+ type: string
776
+ 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.
777
+ media:
778
+ type: string
779
+ enum:
780
+ - print
781
+ - screen
782
+ description: 'CSS media type used to render the PDF: print or screen.'
783
+ print_background:
784
+ type: boolean
785
+ description: Includes background colors and images in the PDF. Applies when file_type is PDF.
786
+ default: false
787
+ result_file_name:
788
+ type: string
789
+ description: 'Custom name for the output file. Helps with organized storage and retrieval. Note: non-unique names may overwrite existing files.'
790
+ ttl:
791
+ type: integer
792
+ 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).'
793
+ default: 2592000
654
794
  fresh:
655
795
  type: boolean
656
- description: Bypass cache.
657
- no_cookie_banners:
658
- type: boolean
659
- description: Remove cookie banners.
796
+ description: If `true`, bypasses cache and captures a fresh render. If `false`, returns cached version when available.
797
+ default: true
660
798
  enable_caching:
661
799
  type: boolean
662
- description: Enable caching.
663
- block_ads:
664
- type: boolean
665
- description: Block ads.
666
- block_chat_widgets:
667
- type: boolean
668
- description: Block chat widgets.
669
- extract_text:
670
- type: boolean
671
- description: Extract visible text.
672
- extract_html:
673
- type: boolean
674
- description: Extract HTML.
675
- extract_markdown:
676
- type: boolean
677
- description: Extract markdown.
678
- get_image_urls:
679
- type: boolean
680
- description: Extract image URLs.
800
+ description: Stores the render in cache for reuse on subsequent identical requests.
801
+ default: false
681
802
  destroy_screenshot:
682
803
  type: boolean
683
- description: Auto-destroy after fetch.
684
- lazy_load:
804
+ description: If `true`, screenshot/PDF is not stored on server and must be downloaded immediately.
805
+ default: false
806
+ fail_on_error:
685
807
  type: boolean
686
- description: Lazy-load content.
687
- scroll_delay:
808
+ description: If `true`, returns an error when the target page responds with 4xx or 5xx status.
809
+ default: false
810
+ width:
688
811
  type: integer
689
- description: Delay in ms between scroll steps.
690
- retina:
691
- type: boolean
692
- description: 2x resolution.
693
- dark_mode:
694
- type: boolean
695
- description: Dark mode.
696
- block_tracking:
697
- type: boolean
698
- description: Block tracking.
699
- enable_incognito:
700
- type: boolean
701
- description: Incognito mode.
702
- omit_background:
812
+ description: 'Viewport width in pixels. Simulates device screen sizes. Max: 7680.'
813
+ default: 1680
814
+ height:
815
+ type: integer
816
+ description: 'Viewport height in pixels. Controls how much vertical area is visible. Max: 4320.'
817
+ default: 867
818
+ full_page:
703
819
  type: boolean
704
- description: Transparent background.
820
+ description: Captures the entire webpage from top to bottom, including scrollable content outside the viewport. Ideal for long-form pages.
821
+ default: false
705
822
  thumbnail_width:
706
823
  type: integer
707
- description: Thumbnail width.
824
+ 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).
825
+ retina:
826
+ type: boolean
827
+ description: Captures at 2x resolution for sharper, high-DPI output. Increases file size.
828
+ default: false
829
+ clip[x]:
830
+ type: integer
831
+ description: 'X coordinate (in pixels) for the top-left corner of the clip area. Default: null.'
832
+ clip[y]:
833
+ type: integer
834
+ description: 'Y coordinate (in pixels) for the top-left corner of the clip area. Default: null.'
835
+ clip[width]:
836
+ type: integer
837
+ description: 'Width of the clip area in pixels. Default: null.'
838
+ clip[height]:
839
+ type: integer
840
+ description: 'Height of the clip area in pixels. Default: null.'
708
841
  adjust_top:
709
842
  type: integer
710
- description: Vertical scroll position.
843
+ description: Initial vertical scroll position in pixels before capture. Use to position mid-page content in viewport. Not supported for PDF.
844
+ default: 0
711
845
  wait_for_event:
712
846
  type: string
713
847
  enum:
714
848
  - load
715
849
  - domcontentloaded
716
850
  - networkidle
717
- description: Wait for event.
718
- grayscale:
719
- type: integer
720
- description: Grayscale (0-100).
851
+ description: Controls when rendering starts based on page load lifecycle. `load` (all resources), `domcontentloaded` (HTML parsed), `networkidle` (no network activity for 500ms).
852
+ default: load
721
853
  delay:
722
854
  type: integer
723
- description: Delay in ms.
724
- timeout:
725
- type: integer
726
- description: Timeout in ms.
727
- ttl:
728
- type: integer
729
- description: Cache TTL in seconds.
730
- image_quality:
731
- type: integer
732
- description: JPEG quality (0-100).
733
- clip[x]:
734
- type: integer
735
- description: Clip X.
736
- clip[y]:
855
+ description: Wait period in milliseconds before capture. Allows animations, API responses, and dynamic elements to finish rendering.
856
+ default: 0
857
+ lazy_load:
858
+ type: boolean
859
+ description: Automatically scrolls the page to trigger lazy-loaded images and components. Ensures complete content capture.
860
+ default: false
861
+ scroll_delay:
737
862
  type: integer
738
- description: Clip Y.
739
- clip[width]:
863
+ description: Delay in milliseconds between scroll steps when `lazy_load` is enabled. Use higher values for heavy pages.
864
+ default: 500
865
+ timeout:
740
866
  type: integer
741
- description: Clip width.
742
- clip[height]:
867
+ description: 'Maximum wait in milliseconds for page load before aborting. Adjust for slow/heavy pages. Default: 100000 (100s).'
868
+ default: 100000
869
+ selector:
870
+ type: string
871
+ description: 'CSS selector to capture a specific element. Only that element is rendered. Falls back to full page if not found. Default: empty.'
872
+ scroll_to_element:
873
+ type: string
874
+ description: 'Scrolls the page to bring the specified CSS selector into view before capture. Ideal for below-the-fold content. Default: empty.'
875
+ selector_to_click:
876
+ type: string
877
+ description: CSS selector for an element to click before capturing the screenshot. Useful for opening dropdowns, modals, or triggering content.
878
+ click_recursion:
743
879
  type: integer
744
- description: Clip height.
745
- css_url:
880
+ description: Number of times to click the selector (when set via `selector_to_click`).
881
+ default: 1
882
+ blur_selector:
883
+ type: string
884
+ description: 'CSS selectors to blur before capture. Masks sensitive data like emails, payments, or personal info. Multiple selectors supported. Default: empty.'
885
+ remove_selector:
746
886
  type: string
747
- description: CSS file URL.
887
+ description: 'CSS selectors to remove before capture. Deletes matched elements from DOM. Ideal for cleaning ads, popups, sidebars. Multiple selectors supported. Default: empty.'
748
888
  css:
749
889
  type: string
750
- description: Custom CSS.
751
- js_url:
890
+ description: Allows injecting custom CSS code into the page before rendering. Pass the CSS code directly as a string.
891
+ css_url:
752
892
  type: string
753
- description: JS file URL.
893
+ description: Allows loading external CSS into the page. Provide a URL pointing to the CSS file.
754
894
  js:
755
895
  type: string
756
- description: Custom JS.
896
+ description: Allows injecting custom JavaScript code into the page before rendering. Pass the JavaScript code directly as a string.
897
+ js_url:
898
+ type: string
899
+ description: Allows loading external JavaScript into the page. Provide a URL pointing to the script file.
900
+ custom_html:
901
+ type: string
902
+ description: Custom HTML to render instead of loading a URL. Overrides the url option. Use for capturing specific HTML structures or dynamic content.
903
+ markdown:
904
+ type: string
905
+ 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.
906
+ user_agent:
907
+ type: string
908
+ description: Custom User-Agent string sent in the request headers.
909
+ accept_languages:
910
+ type: string
911
+ description: Sets the accepted languages for the HTTP request. This is sent as the Accept-Language header.
912
+ default: en-US,en;q=0.8
913
+ dark_mode:
914
+ type: boolean
915
+ description: 'When set to `true`, websites that support prefers-color-scheme: dark will render in dark mode.'
916
+ default: false
917
+ grayscale:
918
+ type: integer
919
+ description: Applies a grayscale filter to the screenshot. Requires a value from 0 (no effect) to 100 (fully grayscale).
920
+ default: 0
921
+ enable_incognito:
922
+ type: boolean
923
+ description: Enables private/incognito browsing. Each render starts with a clean slate - no cookies, cache, or session data persisted.
924
+ default: false
925
+ headers:
926
+ type: string
927
+ description: Custom HTTP headers to include as key=value pairs. Use a semicolon to separate multiple headers (e.g., `key1=value1;key2=value2`).
928
+ cookies:
929
+ type: string
930
+ description: 'Cookies to include in the request before rendering. Supports single or multiple cookies. Example: `cookie=value; otherCookie=otherValue;`.'
931
+ longitude:
932
+ type: number
933
+ format: float
934
+ description: 'Specify longitude for the browser Geolocation API. Provide a numeric value. Default: null (not set).'
935
+ latitude:
936
+ type: number
937
+ format: float
938
+ description: 'Specify latitude for the browser Geolocation API. Provide a numeric value. Default: null (not set).'
939
+ timezone:
940
+ type: string
941
+ description: IANA timezone the browser uses while rendering, such as Asia/Karachi or Europe/London. Useful for clocks and localized dates.
942
+ block_ads:
943
+ type: boolean
944
+ description: Blocks requests to known ad networks for cleaner, distraction-free screenshots.
945
+ default: false
946
+ block_chat_widgets:
947
+ type: boolean
948
+ description: Blocks live chat popups, support bubbles, and messaging interfaces.
949
+ default: false
950
+ block_tracking:
951
+ type: boolean
952
+ description: Blocks tracking scripts and analytics services for cleaner, privacy-oriented renders.
953
+ default: false
954
+ no_cookie_banners:
955
+ type: boolean
956
+ description: Hides or blocks cookie consent banners and popups before capture.
957
+ default: false
757
958
  block_js:
758
959
  type: boolean
759
- description: Block JS.
960
+ description: Disables all JavaScript execution. Renders a static version of the page. Speeds up capture but may break dynamic content.
961
+ default: false
760
962
  block_stylesheets:
761
963
  type: boolean
762
- description: Block stylesheets.
964
+ description: Blocks all stylesheets - page renders as raw HTML without visual formatting.
965
+ default: false
763
966
  block_images:
764
967
  type: boolean
765
- description: Block images.
968
+ description: Blocks all image resources (jpg, png, gif, webp, svg, etc.) for faster rendering.
969
+ default: false
766
970
  block_media:
767
971
  type: boolean
768
- description: Block media.
972
+ description: Blocks audio and video resources (mp3, mp4, webm, etc.) from loading.
973
+ default: false
769
974
  block_font:
770
975
  type: boolean
771
- description: Block fonts.
976
+ description: 'Blocks external font files - page falls back to system defaults. Supported: woff, woff2, ttf, otf, eot.'
977
+ default: false
772
978
  block_text_track:
773
979
  type: boolean
774
- description: Block text tracks.
980
+ description: Blocks subtitles and caption overlays from loading.
981
+ default: false
775
982
  block_xhr:
776
983
  type: boolean
777
- description: Block XHR.
984
+ description: Blocks all XMLHttpRequest (AJAX) calls - prevents dynamic API-driven content.
985
+ default: false
778
986
  block_fetch:
779
987
  type: boolean
780
- description: Block Fetch.
988
+ description: Blocks all Fetch API requests - stops async data loading.
989
+ default: false
781
990
  block_event_source:
782
991
  type: boolean
783
- description: Block EventSource.
992
+ description: Blocks EventSource (SSE) connections - prevents real-time data streams.
993
+ default: false
784
994
  block_web_socket:
785
995
  type: boolean
786
- description: Block WebSocket.
996
+ description: Blocks WebSocket connections - prevents real-time bidirectional communication.
997
+ default: false
787
998
  block_manifest:
788
999
  type: boolean
789
- description: Block manifest.
1000
+ description: Blocks manifest files (.json, .webmanifest) - disables PWA-related functionality.
1001
+ default: false
790
1002
  block_specific_requests:
791
1003
  type: string
792
- description: Specific requests to block.
793
- blur_selector:
794
- type: string
795
- description: CSS selectors to blur.
796
- remove_selector:
797
- type: string
798
- description: CSS selectors to remove.
799
- scroll_to_element:
800
- type: string
801
- description: Element to scroll to.
802
- selector:
1004
+ description: 'Fine-grained blocking of specific URLs or patterns. Separate multiple rules by comma, space, or newline. Default: empty.'
1005
+ extract_text:
1006
+ type: boolean
1007
+ description: Strips all HTML and returns visible text as a .txt file. Ideal for text analysis, indexing, or AI pipelines. Only with output=json.
1008
+ default: false
1009
+ extract_html:
1010
+ type: boolean
1011
+ description: Returns rendered HTML as a .html file (includes JS-executed DOM). Only available with output=json.
1012
+ default: false
1013
+ extract_markdown:
1014
+ type: boolean
1015
+ description: Extracts rendered page content as a structured .md (Markdown) file. Preserves headings, lists, links. Only with output=json.
1016
+ default: false
1017
+ get_image_urls:
1018
+ type: boolean
1019
+ description: Extracts all image URLs from the rendered DOM and returns them in structured format. Only with output=json.
1020
+ default: false
1021
+ stealth:
1022
+ type: boolean
1023
+ description: Makes the browser look like a regular visitor for pages that block automated traffic. No extra credits.
1024
+ default: false
1025
+ gpu:
1026
+ type: boolean
1027
+ description: Renders the page with a GPU, including WebGL and canvas content. Adds 20 credits per request.
1028
+ default: false
1029
+ proxy:
803
1030
  type: string
804
- description: CSS selector to capture.
805
- selector_to_click:
1031
+ description: 'Allows defining a proxy for the connection. Provide a JSON string with keys: server (include port number), username, and password.'
1032
+ classic_proxy:
1033
+ type: boolean
1034
+ 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.
1035
+ default: false
1036
+ premium_proxy:
1037
+ type: boolean
1038
+ description: Loads the page through a residential proxy. Adds 200 credits per request. Used instead of classic_proxy.
1039
+ default: false
1040
+ country:
806
1041
  type: string
807
- description: Element to click.
808
- click_recursion:
809
- type: integer
810
- description: Click count.
811
- result_file_name:
1042
+ 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.'
1043
+ solve_captcha:
1044
+ type: boolean
1045
+ 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.
1046
+ default: false
1047
+ captcha_image:
812
1048
  type: string
813
- description: Custom filename.
814
- user_agent:
1049
+ description: CSS selector of the captcha picture. Required when solve_captcha is true.
1050
+ captcha_input:
815
1051
  type: string
816
- description: Custom User-Agent.
817
- accept_languages:
1052
+ description: CSS selector of the box the answer is typed into. Required when solve_captcha is true.
1053
+ captcha_submit:
818
1054
  type: string
819
- description: Accept-Language.
820
- proxy:
1055
+ description: CSS selector of the button to click after the answer is typed.
1056
+ captcha_error:
821
1057
  type: string
822
- description: Proxy config.
823
- headers:
1058
+ description: CSS selector of the message shown for a wrong answer. While it is visible, the solver tries again.
1059
+ captcha_refresh:
824
1060
  type: string
825
- description: Custom headers.
826
- cookies:
827
- type: string
828
- description: Cookies.
829
- custom_html:
1061
+ description: CSS selector of the control that loads a new captcha picture before the next try.
1062
+ captcha_retries:
1063
+ type: integer
1064
+ minimum: 1
1065
+ maximum: 5
1066
+ default: 3
1067
+ description: Number of guesses the solver makes, from 1 to 5.
1068
+ ocr_model:
830
1069
  type: string
831
- description: Custom HTML.
832
- fail_on_error:
833
- type: boolean
834
- description: Fail on 4xx/5xx.
835
- longitude:
836
- type: number
837
- format: float
838
- description: Geolocation longitude.
839
- latitude:
840
- type: number
841
- format: float
842
- description: Geolocation latitude.
1070
+ enum:
1071
+ - mini-ocr-v1
1072
+ - ocr-v1
1073
+ default: mini-ocr-v1
1074
+ description: 'Recognition model used by the captcha solver: mini-ocr-v1 (default) or ocr-v1.'
843
1075
  scrolling_screenshot:
844
1076
  type: boolean
845
- description: Scrolling mode.
1077
+ description: Enables scrolling screenshot mode to capture a video (webm, gif, mp4) of the webpage.
1078
+ default: false
846
1079
  scroll_speed:
847
1080
  type: string
848
1081
  enum:
849
1082
  - normal
850
1083
  - fast
851
1084
  - slow
852
- description: Scroll speed.
1085
+ description: 'Scrolling speed: fast, normal (default), or slow. Affects render time and output pacing.'
1086
+ default: normal
853
1087
  duration:
854
- type: number
855
- description: Duration in seconds.
1088
+ type: integer
1089
+ description: 'Duration of scrolling action in seconds (0-60). Higher = longer video. Default: null (full page scroll).'
1090
+ minimum: 0
1091
+ maximum: 60
856
1092
  scroll_back:
857
1093
  type: boolean
858
- description: Scroll back.
1094
+ description: If `true`, scrolls to bottom then back to top, creating a seamless loop.
1095
+ default: false
859
1096
  start_immediately:
860
1097
  type: boolean
861
- description: Start immediately.
862
- multiple_scrolling:
863
- type: boolean
864
- description: Multiple scrolling.
865
- sizes:
866
- type: array
867
- items:
868
- type: string
869
- description: Viewport sizes.
1098
+ description: Starts recording immediately without waiting for full page load.
1099
+ default: false
870
1100
  video:
871
1101
  type: boolean
872
- description: Video recording.
1102
+ description: Records visible viewport only for a specified duration. Use with `duration` parameter. Ideal for dashboards and animations.
1103
+ default: false
1104
+ output:
1105
+ type: string
1106
+ enum:
1107
+ - json
1108
+ - image
1109
+ default: json
1110
+ description: Set the output format. `json` returns metadata with a hosted file URL. `image` streams the raw file bytes directly.
1111
+ format:
1112
+ type: string
1113
+ enum:
1114
+ - json
1115
+ default: json
1116
+ description: 'Response format: json (default).'
873
1117
  BulkScreenshotMetaData:
874
1118
  type: object
875
1119
  description: Metadata about the bulk screenshot request results.
@@ -880,10 +1124,10 @@ components:
880
1124
  properties:
881
1125
  total_urls:
882
1126
  type: integer
883
- description: Total number of URLs processed.
1127
+ description: Total number of URLs processed in the bulk request.
884
1128
  successful_urls:
885
1129
  type: integer
886
- description: Number of URLs successfully processed.
1130
+ description: Number of URLs that were successfully processed.
887
1131
  failed_urls:
888
1132
  type: integer
889
1133
  description: Number of URLs that failed to process.
@@ -897,7 +1141,7 @@ components:
897
1141
  properties:
898
1142
  status:
899
1143
  type: string
900
- description: API request status indicator (success).
1144
+ description: API request status indicator. `success` for successful requests.
901
1145
  meta_data:
902
1146
  $ref: '#/components/schemas/BulkScreenshotMetaData'
903
1147
  results: