@apifreaks/openapi-specs 0.4.18 → 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.
- package/dist/index.cjs +1141 -499
- package/dist/index.js +1141 -499
- package/dist/specs/email-validation/bulk-disposable-email-checker.yaml +8 -8
- package/dist/specs/email-validation/disposable-email-checker.yaml +5 -5
- package/dist/specs/screenshot/bulk-screenshot.yaml +464 -220
- package/dist/specs/screenshot/website-screenshot.yaml +467 -214
- package/package.json +1 -1
- package/specs/email-validation/bulk-disposable-email-checker.json +8 -8
- package/specs/email-validation/disposable-email-checker.json +5 -5
- package/specs/screenshot/bulk-screenshot.json +537 -232
- package/specs/screenshot/website-screenshot.json +584 -247
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Bulk Screenshot API - Capture Up to 50 URLs in a Single Request",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
-
"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.",
|
|
6
|
+
"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.",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "APIFreaks Support",
|
|
9
9
|
"url": "https://apifreaks.com/contact",
|
|
@@ -58,6 +58,23 @@
|
|
|
58
58
|
}
|
|
59
59
|
]
|
|
60
60
|
}
|
|
61
|
+
},
|
|
62
|
+
"gifScrolling": {
|
|
63
|
+
"summary": "Scrolling GIF capture",
|
|
64
|
+
"value": {
|
|
65
|
+
"urls": [
|
|
66
|
+
{
|
|
67
|
+
"url": "https://whoisfreaks.com/",
|
|
68
|
+
"file_type": "gif",
|
|
69
|
+
"width": 3840,
|
|
70
|
+
"height": 2160,
|
|
71
|
+
"fresh": true,
|
|
72
|
+
"image_quality": 100,
|
|
73
|
+
"scrolling_screenshot": true,
|
|
74
|
+
"duration": 10
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
61
78
|
}
|
|
62
79
|
}
|
|
63
80
|
}
|
|
@@ -363,6 +380,38 @@
|
|
|
363
380
|
}
|
|
364
381
|
]
|
|
365
382
|
}
|
|
383
|
+
},
|
|
384
|
+
"scrollingGif": {
|
|
385
|
+
"summary": "Scrolling GIF capture",
|
|
386
|
+
"value": {
|
|
387
|
+
"status": "success",
|
|
388
|
+
"meta_data": {
|
|
389
|
+
"total_urls": 1,
|
|
390
|
+
"successful_urls": 1,
|
|
391
|
+
"failed_urls": 0
|
|
392
|
+
},
|
|
393
|
+
"results": [
|
|
394
|
+
{
|
|
395
|
+
"url": {
|
|
396
|
+
"screenshot": "https://s3.eu-central-2.wasabisys.com/w.storage.apifreaks.com/whoisfreaks_com__a34071f0e507.gif",
|
|
397
|
+
"url": "https://whoisfreaks.com/",
|
|
398
|
+
"created_at": "2026-06-15T17:59:10.306Z",
|
|
399
|
+
"file_type": "gif",
|
|
400
|
+
"width": 3840,
|
|
401
|
+
"height": 2160,
|
|
402
|
+
"fresh": true,
|
|
403
|
+
"image_quality": 100,
|
|
404
|
+
"scrolling_screenshot": true,
|
|
405
|
+
"duration": 10,
|
|
406
|
+
"output": "json",
|
|
407
|
+
"ttl": "2026-07-15T17:58:43.853Z",
|
|
408
|
+
"sizes": null
|
|
409
|
+
},
|
|
410
|
+
"status": "fulfilled",
|
|
411
|
+
"error_message": null
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
366
415
|
}
|
|
367
416
|
}
|
|
368
417
|
}
|
|
@@ -412,6 +461,39 @@
|
|
|
412
461
|
}
|
|
413
462
|
}
|
|
414
463
|
},
|
|
464
|
+
"401": {
|
|
465
|
+
"description": "Unauthorized",
|
|
466
|
+
"content": {
|
|
467
|
+
"application/json": {
|
|
468
|
+
"examples": {
|
|
469
|
+
"401": {
|
|
470
|
+
"summary": "Unauthorized",
|
|
471
|
+
"value": {
|
|
472
|
+
"error": "API Access Exception",
|
|
473
|
+
"message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
|
|
474
|
+
"path": "/v1.0/screenshot",
|
|
475
|
+
"status": 401,
|
|
476
|
+
"timestamp": "2026-07-27T10:18:57.172Z"
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"schema": {
|
|
481
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"headers": {
|
|
486
|
+
"X-AF-Credits-Cost": {
|
|
487
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
488
|
+
},
|
|
489
|
+
"X-Concurrent-Threads": {
|
|
490
|
+
"$ref": "#/components/headers/X-Concurrent-Threads"
|
|
491
|
+
},
|
|
492
|
+
"X-Concurrent-Threads-Active": {
|
|
493
|
+
"$ref": "#/components/headers/X-Concurrent-Threads-Active"
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
415
497
|
"413": {
|
|
416
498
|
"description": "Payload too large",
|
|
417
499
|
"content": {
|
|
@@ -444,6 +526,39 @@
|
|
|
444
526
|
"$ref": "#/components/headers/X-Concurrent-Threads-Active"
|
|
445
527
|
}
|
|
446
528
|
}
|
|
529
|
+
},
|
|
530
|
+
"500": {
|
|
531
|
+
"description": "Internal Server Error",
|
|
532
|
+
"content": {
|
|
533
|
+
"application/json": {
|
|
534
|
+
"examples": {
|
|
535
|
+
"500": {
|
|
536
|
+
"summary": "Internal server error",
|
|
537
|
+
"value": {
|
|
538
|
+
"error": "internal_server_error",
|
|
539
|
+
"message": "An internal server error occured while processing the request. Please try again or contact support if the issue persists.",
|
|
540
|
+
"path": "/v1.0/screenshot",
|
|
541
|
+
"status": 500,
|
|
542
|
+
"timestamp": "2026-07-27T10:18:57.172Z"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"schema": {
|
|
547
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"headers": {
|
|
552
|
+
"X-AF-Credits-Cost": {
|
|
553
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
554
|
+
},
|
|
555
|
+
"X-Concurrent-Threads": {
|
|
556
|
+
"$ref": "#/components/headers/X-Concurrent-Threads"
|
|
557
|
+
},
|
|
558
|
+
"X-Concurrent-Threads-Active": {
|
|
559
|
+
"$ref": "#/components/headers/X-Concurrent-Threads-Active"
|
|
560
|
+
}
|
|
561
|
+
}
|
|
447
562
|
}
|
|
448
563
|
}
|
|
449
564
|
}
|
|
@@ -472,7 +587,7 @@
|
|
|
472
587
|
"properties": {
|
|
473
588
|
"status": {
|
|
474
589
|
"type": "string",
|
|
475
|
-
"description": "Processing status
|
|
590
|
+
"description": "Processing status of the individual URL. Usually `fulfilled`."
|
|
476
591
|
},
|
|
477
592
|
"url": {
|
|
478
593
|
"description": "Screenshot metadata for this URL, or an error object if this specific URL could not be captured.",
|
|
@@ -489,7 +604,7 @@
|
|
|
489
604
|
},
|
|
490
605
|
"error_message": {
|
|
491
606
|
"type": ["string", "null"],
|
|
492
|
-
"description": "
|
|
607
|
+
"description": "Error message if processing failed, null if successful."
|
|
493
608
|
}
|
|
494
609
|
}
|
|
495
610
|
},
|
|
@@ -501,7 +616,7 @@
|
|
|
501
616
|
"screenshot": {
|
|
502
617
|
"type": "string",
|
|
503
618
|
"format": "uri",
|
|
504
|
-
"description": "URL of the captured screenshot image."
|
|
619
|
+
"description": "URL of the captured screenshot image file."
|
|
505
620
|
},
|
|
506
621
|
"url": {
|
|
507
622
|
"type": "string",
|
|
@@ -537,19 +652,19 @@
|
|
|
537
652
|
},
|
|
538
653
|
"enable_caching": {
|
|
539
654
|
"type": "boolean",
|
|
540
|
-
"description": "Whether caching was enabled."
|
|
655
|
+
"description": "Whether caching was enabled (`true`/`false`)."
|
|
541
656
|
},
|
|
542
657
|
"omit_background": {
|
|
543
658
|
"type": "boolean",
|
|
544
|
-
"description": "Whether background was removed."
|
|
659
|
+
"description": "Whether background was removed (`true`/`false`)."
|
|
545
660
|
},
|
|
546
661
|
"destroy_screenshot": {
|
|
547
662
|
"type": "boolean",
|
|
548
|
-
"description": "Whether the screenshot was destroyed after generation."
|
|
663
|
+
"description": "Whether the screenshot was destroyed after generation (`true`/`false`)."
|
|
549
664
|
},
|
|
550
665
|
"fail_on_error": {
|
|
551
666
|
"type": "boolean",
|
|
552
|
-
"description": "Whether the request failed on error."
|
|
667
|
+
"description": "Whether the request failed on error (`true`/`false`)."
|
|
553
668
|
},
|
|
554
669
|
"longitude": {
|
|
555
670
|
"type": "number",
|
|
@@ -563,243 +678,260 @@
|
|
|
563
678
|
},
|
|
564
679
|
"proxy": {
|
|
565
680
|
"type": "string",
|
|
566
|
-
"description": "The proxy configuration used."
|
|
681
|
+
"description": "The proxy configuration used for the request."
|
|
567
682
|
},
|
|
568
683
|
"no_cookie_banners": {
|
|
569
684
|
"type": "boolean",
|
|
570
|
-
"description": "Whether cookie banners were blocked."
|
|
685
|
+
"description": "Whether cookie banners were blocked (`true`/`false`)."
|
|
571
686
|
},
|
|
572
687
|
"block_ads": {
|
|
573
688
|
"type": "boolean",
|
|
574
|
-
"description": "Whether ads were blocked."
|
|
689
|
+
"description": "Whether ads were blocked (`true`/`false`)."
|
|
575
690
|
},
|
|
576
691
|
"headers": {
|
|
577
692
|
"type": "string",
|
|
578
|
-
"description": "
|
|
693
|
+
"description": "The custom headers that were included in the request."
|
|
579
694
|
},
|
|
580
695
|
"cookies": {
|
|
581
696
|
"type": "string",
|
|
582
|
-
"description": "
|
|
697
|
+
"description": "The cookies that were included in the request."
|
|
583
698
|
},
|
|
584
699
|
"scroll_to_element": {
|
|
585
700
|
"type": "string",
|
|
586
|
-
"description": "
|
|
701
|
+
"description": "The element that was scrolled to before rendering."
|
|
587
702
|
},
|
|
588
703
|
"selector": {
|
|
589
704
|
"type": "string",
|
|
590
|
-
"description": "
|
|
705
|
+
"description": "The element that was selected for rendering."
|
|
591
706
|
},
|
|
592
707
|
"blur_selector": {
|
|
593
708
|
"type": "string",
|
|
594
|
-
"description": "
|
|
709
|
+
"description": "The elements that were blurred in the output."
|
|
595
710
|
},
|
|
596
711
|
"remove_selector": {
|
|
597
712
|
"type": "string",
|
|
598
|
-
"description": "
|
|
713
|
+
"description": "The elements that were removed from the output."
|
|
599
714
|
},
|
|
600
715
|
"css": {
|
|
601
716
|
"type": "string",
|
|
602
|
-
"description": "
|
|
717
|
+
"description": "The custom CSS that was injected into the page."
|
|
603
718
|
},
|
|
604
719
|
"css_url": {
|
|
605
720
|
"type": "string",
|
|
606
721
|
"format": "uri",
|
|
607
|
-
"description": "
|
|
722
|
+
"description": "The external CSS URL that was loaded."
|
|
608
723
|
},
|
|
609
724
|
"js": {
|
|
610
725
|
"type": "string",
|
|
611
|
-
"description": "
|
|
726
|
+
"description": "The custom JavaScript that was injected."
|
|
612
727
|
},
|
|
613
728
|
"js_url": {
|
|
614
729
|
"type": "string",
|
|
615
730
|
"format": "uri",
|
|
616
|
-
"description": "
|
|
731
|
+
"description": "The external JavaScript URL that was loaded."
|
|
617
732
|
},
|
|
618
733
|
"user_agent": {
|
|
619
734
|
"type": "string",
|
|
620
|
-
"description": "User-Agent string that was used."
|
|
735
|
+
"description": "The User-Agent string that was used."
|
|
621
736
|
},
|
|
622
737
|
"accept_languages": {
|
|
623
738
|
"type": "string",
|
|
624
|
-
"description": "Accept-Language header that was used."
|
|
739
|
+
"description": "The Accept-Language header that was used."
|
|
625
740
|
},
|
|
626
741
|
"delay": {
|
|
627
742
|
"type": "integer",
|
|
628
|
-
"description": "
|
|
743
|
+
"description": "The delay duration that was applied in milliseconds."
|
|
629
744
|
},
|
|
630
745
|
"thumbnail_width": {
|
|
631
746
|
"type": "integer",
|
|
632
|
-
"description": "
|
|
747
|
+
"description": "The thumbnail width that was used in pixels."
|
|
633
748
|
},
|
|
634
749
|
"output": {
|
|
635
750
|
"type": "string",
|
|
636
|
-
"description": "
|
|
751
|
+
"description": "The output type that was used."
|
|
637
752
|
},
|
|
638
753
|
"fresh": {
|
|
639
754
|
"type": "boolean",
|
|
640
|
-
"description": "Whether a fresh render was performed."
|
|
755
|
+
"description": "Whether a fresh render was performed (`true`/`false`)."
|
|
641
756
|
},
|
|
642
757
|
"lazy_load": {
|
|
643
758
|
"type": "boolean",
|
|
644
|
-
"description": "Whether lazy loading was triggered."
|
|
759
|
+
"description": "Whether lazy loading was triggered (`true`/`false`)."
|
|
645
760
|
},
|
|
646
761
|
"full_page": {
|
|
647
762
|
"type": "boolean",
|
|
648
|
-
"description": "Whether full page capture was used."
|
|
763
|
+
"description": "Whether full page capture was used (`true`/`false`)."
|
|
649
764
|
},
|
|
650
765
|
"retina": {
|
|
651
766
|
"type": "boolean",
|
|
652
|
-
"description": "Whether retina capture was used."
|
|
767
|
+
"description": "Whether retina capture was used (`true`/`false`)."
|
|
653
768
|
},
|
|
654
769
|
"height": {
|
|
655
770
|
"type": "integer",
|
|
656
|
-
"description": "
|
|
771
|
+
"description": "The viewport height that was used in pixels."
|
|
657
772
|
},
|
|
658
773
|
"width": {
|
|
659
774
|
"type": "integer",
|
|
660
|
-
"description": "
|
|
775
|
+
"description": "The viewport width that was used in pixels."
|
|
661
776
|
},
|
|
662
777
|
"custom_html": {
|
|
663
778
|
"type": "string",
|
|
664
|
-
"description": "
|
|
779
|
+
"description": "The custom HTML content that was rendered."
|
|
665
780
|
},
|
|
666
781
|
"block_chat_widgets": {
|
|
667
782
|
"type": "boolean",
|
|
668
|
-
"description": "Whether chat widgets were blocked."
|
|
783
|
+
"description": "Whether chat widgets were blocked (`true`/`false`)."
|
|
669
784
|
},
|
|
670
785
|
"block_js": {
|
|
671
786
|
"type": "boolean",
|
|
672
|
-
"description": "Whether JavaScript was blocked."
|
|
787
|
+
"description": "Whether JavaScript was blocked (`true`/`false`)."
|
|
673
788
|
},
|
|
674
789
|
"block_stylesheets": {
|
|
675
790
|
"type": "boolean",
|
|
676
|
-
"description": "Whether stylesheets were blocked."
|
|
791
|
+
"description": "Whether stylesheets were blocked (`true`/`false`)."
|
|
677
792
|
},
|
|
678
793
|
"block_images": {
|
|
679
794
|
"type": "boolean",
|
|
680
|
-
"description": "Whether images were blocked."
|
|
795
|
+
"description": "Whether images were blocked (`true`/`false`)."
|
|
681
796
|
},
|
|
682
797
|
"block_media": {
|
|
683
798
|
"type": "boolean",
|
|
684
|
-
"description": "Whether media files were blocked."
|
|
799
|
+
"description": "Whether media files were blocked (`true`/`false`)."
|
|
685
800
|
},
|
|
686
801
|
"block_font": {
|
|
687
802
|
"type": "boolean",
|
|
688
|
-
"description": "Whether fonts were blocked."
|
|
803
|
+
"description": "Whether fonts were blocked (`true`/`false`)."
|
|
689
804
|
},
|
|
690
805
|
"block_text_track": {
|
|
691
806
|
"type": "boolean",
|
|
692
|
-
"description": "Whether text tracks were blocked."
|
|
807
|
+
"description": "Whether text tracks were blocked (`true`/`false`)."
|
|
693
808
|
},
|
|
694
809
|
"block_xhr": {
|
|
695
810
|
"type": "boolean",
|
|
696
|
-
"description": "Whether XHR requests were blocked."
|
|
811
|
+
"description": "Whether XHR requests were blocked (`true`/`false`)."
|
|
697
812
|
},
|
|
698
813
|
"block_fetch": {
|
|
699
814
|
"type": "boolean",
|
|
700
|
-
"description": "Whether Fetch API requests were blocked."
|
|
815
|
+
"description": "Whether Fetch API requests were blocked (`true`/`false`)."
|
|
701
816
|
},
|
|
702
817
|
"block_event_source": {
|
|
703
818
|
"type": "boolean",
|
|
704
|
-
"description": "Whether EventSource connections were blocked."
|
|
819
|
+
"description": "Whether EventSource connections were blocked (`true`/`false`)."
|
|
705
820
|
},
|
|
706
821
|
"block_web_socket": {
|
|
707
822
|
"type": "boolean",
|
|
708
|
-
"description": "Whether WebSocket connections were blocked."
|
|
823
|
+
"description": "Whether WebSocket connections were blocked (`true`/`false`)."
|
|
709
824
|
},
|
|
710
825
|
"block_manifest": {
|
|
711
826
|
"type": "boolean",
|
|
712
|
-
"description": "Whether manifest files were blocked."
|
|
827
|
+
"description": "Whether manifest files were blocked (`true`/`false`)."
|
|
713
828
|
},
|
|
714
829
|
"block_specific_requests": {
|
|
715
830
|
"type": "string",
|
|
716
|
-
"description": "
|
|
831
|
+
"description": "The specific requests that were blocked."
|
|
717
832
|
},
|
|
718
833
|
"adjust_top": {
|
|
719
834
|
"type": "integer",
|
|
720
|
-
"description": "
|
|
835
|
+
"description": "The vertical position that was scrolled to in pixels."
|
|
721
836
|
},
|
|
722
837
|
"image_quality": {
|
|
723
838
|
"type": "integer",
|
|
724
|
-
"description": "
|
|
839
|
+
"description": "The image quality level that was applied."
|
|
725
840
|
},
|
|
726
841
|
"extract_html": {
|
|
727
842
|
"type": "boolean",
|
|
728
|
-
"description": "Whether HTML content was extracted."
|
|
843
|
+
"description": "Whether HTML content was extracted (`true`/`false`)."
|
|
729
844
|
},
|
|
730
845
|
"extract_text": {
|
|
731
846
|
"type": "boolean",
|
|
732
|
-
"description": "Whether text content was extracted."
|
|
847
|
+
"description": "Whether text content was extracted (`true`/`false`)."
|
|
733
848
|
},
|
|
734
849
|
"dark_mode": {
|
|
735
850
|
"type": "boolean",
|
|
736
|
-
"description": "Whether dark mode was enabled."
|
|
851
|
+
"description": "Whether dark mode was enabled (`true`/`false`)."
|
|
737
852
|
},
|
|
738
853
|
"block_tracking": {
|
|
739
854
|
"type": "boolean",
|
|
740
|
-
"description": "Whether tracking scripts were blocked."
|
|
855
|
+
"description": "Whether tracking scripts were blocked (`true`/`false`)."
|
|
741
856
|
},
|
|
742
857
|
"wait_for_event": {
|
|
743
858
|
"type": "string",
|
|
744
|
-
"description": "The event that triggered rendering."
|
|
859
|
+
"description": "The event that triggered the rendering to start."
|
|
745
860
|
},
|
|
746
861
|
"grayscale": {
|
|
747
862
|
"type": "integer",
|
|
748
|
-
"description": "
|
|
863
|
+
"description": "The grayscale level that was applied (0-100)."
|
|
749
864
|
},
|
|
750
865
|
"clip": {
|
|
751
|
-
"$ref": "#/components/schemas/ClipRect"
|
|
866
|
+
"$ref": "#/components/schemas/ClipRect",
|
|
867
|
+
"description": "The dimensions of the clipped area that was captured."
|
|
752
868
|
},
|
|
753
869
|
"result_file_name": {
|
|
754
870
|
"type": "string",
|
|
755
|
-
"description": "
|
|
871
|
+
"description": "The final filename used for the output file."
|
|
756
872
|
},
|
|
757
873
|
"enable_incognito": {
|
|
758
874
|
"type": "boolean",
|
|
759
|
-
"description": "Whether incognito mode was enabled."
|
|
875
|
+
"description": "Whether incognito mode was enabled (`true`/`false`)."
|
|
760
876
|
},
|
|
761
877
|
"timeout": {
|
|
762
878
|
"type": "integer",
|
|
763
|
-
"description": "
|
|
879
|
+
"description": "The actual timeout duration that was applied in milliseconds."
|
|
764
880
|
},
|
|
765
881
|
"scrolling_screenshot": {
|
|
766
882
|
"type": "boolean",
|
|
767
|
-
"description": "Whether scrolling screenshot mode was enabled."
|
|
883
|
+
"description": "Whether scrolling screenshot mode was enabled (`true`/`false`)."
|
|
768
884
|
},
|
|
769
885
|
"multiple_scrolling": {
|
|
770
886
|
"type": "boolean",
|
|
771
|
-
"description": "Whether multiple scrolling captures were performed."
|
|
887
|
+
"description": "Whether multiple scrolling captures were performed (`true`/`false`)."
|
|
772
888
|
},
|
|
773
889
|
"sizes": {
|
|
774
890
|
"type": "array",
|
|
775
891
|
"items": {
|
|
776
892
|
"type": "string"
|
|
777
893
|
},
|
|
778
|
-
"description": "
|
|
894
|
+
"description": "The dimensions used for each capture in the array."
|
|
779
895
|
},
|
|
780
896
|
"extract_markdown": {
|
|
781
897
|
"type": "boolean",
|
|
782
|
-
"description": "Whether markdown extraction was enabled."
|
|
898
|
+
"description": "Whether markdown extraction was enabled (`true`/`false`)."
|
|
783
899
|
},
|
|
784
900
|
"get_image_urls": {
|
|
785
901
|
"type": "boolean",
|
|
786
|
-
"description": "Whether image URL extraction was enabled."
|
|
902
|
+
"description": "Whether image URL extraction was enabled (`true`/`false`)."
|
|
787
903
|
},
|
|
788
904
|
"scroll_delay": {
|
|
789
905
|
"type": "integer",
|
|
790
|
-
"description": "
|
|
906
|
+
"description": "The delay between scroll steps that was applied in milliseconds."
|
|
791
907
|
},
|
|
792
908
|
"selector_to_click": {
|
|
793
909
|
"type": "string",
|
|
794
|
-
"description": "CSS selector clicked before capture."
|
|
910
|
+
"description": "The CSS selector of the element that was clicked before capture."
|
|
795
911
|
},
|
|
796
912
|
"click_recursion": {
|
|
797
913
|
"type": "integer",
|
|
798
|
-
"description": "
|
|
914
|
+
"description": "The number of times the selector was clicked."
|
|
799
915
|
},
|
|
800
916
|
"video": {
|
|
801
917
|
"type": "boolean",
|
|
802
|
-
"description": "Whether viewport recording mode was enabled."
|
|
918
|
+
"description": "Whether viewport recording mode was enabled (`true`/`false`)."
|
|
919
|
+
},
|
|
920
|
+
"scroll_speed": {
|
|
921
|
+
"type": "string",
|
|
922
|
+
"description": "Scrolling speed that was used."
|
|
923
|
+
},
|
|
924
|
+
"scroll_back": {
|
|
925
|
+
"type": "boolean",
|
|
926
|
+
"description": "Whether scroll back was enabled."
|
|
927
|
+
},
|
|
928
|
+
"start_immediately": {
|
|
929
|
+
"type": "boolean",
|
|
930
|
+
"description": "Whether recording started immediately."
|
|
931
|
+
},
|
|
932
|
+
"duration": {
|
|
933
|
+
"type": "integer",
|
|
934
|
+
"description": "Duration of scrolling capture in seconds."
|
|
803
935
|
}
|
|
804
936
|
}
|
|
805
937
|
},
|
|
@@ -849,307 +981,480 @@
|
|
|
849
981
|
"url": {
|
|
850
982
|
"type": "string",
|
|
851
983
|
"format": "uri",
|
|
852
|
-
"description": "URL of the website to
|
|
984
|
+
"description": "URL of the website to be rendered as a screenshot or other format."
|
|
853
985
|
},
|
|
854
986
|
"file_type": {
|
|
855
987
|
"type": "string",
|
|
856
|
-
"enum": [
|
|
857
|
-
|
|
988
|
+
"enum": [
|
|
989
|
+
"PNG",
|
|
990
|
+
"JPEG",
|
|
991
|
+
"WEBP",
|
|
992
|
+
"PDF",
|
|
993
|
+
"MP4",
|
|
994
|
+
"GIF",
|
|
995
|
+
"WEBM",
|
|
996
|
+
"mp4",
|
|
997
|
+
"gif",
|
|
998
|
+
"webm"
|
|
999
|
+
],
|
|
1000
|
+
"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).",
|
|
1001
|
+
"default": "PNG"
|
|
858
1002
|
},
|
|
859
|
-
"
|
|
860
|
-
"type": "integer",
|
|
861
|
-
"description": "Viewport width in pixels."
|
|
862
|
-
},
|
|
863
|
-
"height": {
|
|
1003
|
+
"image_quality": {
|
|
864
1004
|
"type": "integer",
|
|
865
|
-
"description": "
|
|
1005
|
+
"description": "Compression level for JPEG output (0-100). Lower = smaller file, higher = better quality. Only applies to JPEG.",
|
|
1006
|
+
"default": 80
|
|
866
1007
|
},
|
|
867
|
-
"
|
|
868
|
-
"type": "boolean",
|
|
869
|
-
"description": "Capture a full-page screenshot."
|
|
870
|
-
},
|
|
871
|
-
"fresh": {
|
|
872
|
-
"type": "boolean",
|
|
873
|
-
"description": "Bypass cache."
|
|
874
|
-
},
|
|
875
|
-
"no_cookie_banners": {
|
|
1008
|
+
"omit_background": {
|
|
876
1009
|
"type": "boolean",
|
|
877
|
-
"description": "
|
|
1010
|
+
"description": "Replaces simple white/plain backgrounds with transparency for a cut-out effect. Only works with PNG output.",
|
|
1011
|
+
"default": false
|
|
1012
|
+
},
|
|
1013
|
+
"pdf_options": {
|
|
1014
|
+
"type": "object",
|
|
1015
|
+
"description": "PDF output options. Applies when file_type is PDF.",
|
|
1016
|
+
"properties": {
|
|
1017
|
+
"format": {
|
|
1018
|
+
"type": "string",
|
|
1019
|
+
"enum": [
|
|
1020
|
+
"A0",
|
|
1021
|
+
"A1",
|
|
1022
|
+
"A2",
|
|
1023
|
+
"A3",
|
|
1024
|
+
"A4",
|
|
1025
|
+
"A5",
|
|
1026
|
+
"A6",
|
|
1027
|
+
"Letter",
|
|
1028
|
+
"Legal",
|
|
1029
|
+
"Tabloid",
|
|
1030
|
+
"Ledger"
|
|
1031
|
+
],
|
|
1032
|
+
"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."
|
|
1033
|
+
},
|
|
1034
|
+
"landscape": {
|
|
1035
|
+
"type": "boolean",
|
|
1036
|
+
"description": "Renders the PDF in landscape orientation, swapping the width and height of the paper size. Applies when file_type is PDF.",
|
|
1037
|
+
"default": false
|
|
1038
|
+
},
|
|
1039
|
+
"page_range": {
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"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."
|
|
1042
|
+
},
|
|
1043
|
+
"media": {
|
|
1044
|
+
"type": "string",
|
|
1045
|
+
"enum": ["print", "screen"],
|
|
1046
|
+
"description": "CSS media type used to render the PDF: print or screen."
|
|
1047
|
+
},
|
|
1048
|
+
"print_background": {
|
|
1049
|
+
"type": "boolean",
|
|
1050
|
+
"description": "Includes background colors and images in the PDF. Applies when file_type is PDF.",
|
|
1051
|
+
"default": false
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
878
1054
|
},
|
|
879
|
-
"
|
|
880
|
-
"type": "
|
|
881
|
-
"description": "
|
|
1055
|
+
"result_file_name": {
|
|
1056
|
+
"type": "string",
|
|
1057
|
+
"description": "Custom name for the output file. Helps with organized storage and retrieval. Note: non-unique names may overwrite existing files."
|
|
882
1058
|
},
|
|
883
|
-
"
|
|
884
|
-
"type": "
|
|
885
|
-
"description": "
|
|
1059
|
+
"ttl": {
|
|
1060
|
+
"type": "integer",
|
|
1061
|
+
"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).",
|
|
1062
|
+
"default": 2592000
|
|
886
1063
|
},
|
|
887
|
-
"
|
|
1064
|
+
"fresh": {
|
|
888
1065
|
"type": "boolean",
|
|
889
|
-
"description": "
|
|
1066
|
+
"description": "If `true`, bypasses cache and captures a fresh render. If `false`, returns cached version when available.",
|
|
1067
|
+
"default": true
|
|
890
1068
|
},
|
|
891
|
-
"
|
|
1069
|
+
"enable_caching": {
|
|
892
1070
|
"type": "boolean",
|
|
893
|
-
"description": "
|
|
1071
|
+
"description": "Stores the render in cache for reuse on subsequent identical requests.",
|
|
1072
|
+
"default": false
|
|
894
1073
|
},
|
|
895
|
-
"
|
|
1074
|
+
"destroy_screenshot": {
|
|
896
1075
|
"type": "boolean",
|
|
897
|
-
"description": "
|
|
1076
|
+
"description": "If `true`, screenshot/PDF is not stored on server and must be downloaded immediately.",
|
|
1077
|
+
"default": false
|
|
898
1078
|
},
|
|
899
|
-
"
|
|
1079
|
+
"fail_on_error": {
|
|
900
1080
|
"type": "boolean",
|
|
901
|
-
"description": "
|
|
1081
|
+
"description": "If `true`, returns an error when the target page responds with 4xx or 5xx status.",
|
|
1082
|
+
"default": false
|
|
902
1083
|
},
|
|
903
|
-
"
|
|
904
|
-
"type": "
|
|
905
|
-
"description": "
|
|
1084
|
+
"width": {
|
|
1085
|
+
"type": "integer",
|
|
1086
|
+
"description": "Viewport width in pixels. Simulates device screen sizes. Max: 7680.",
|
|
1087
|
+
"default": 1680
|
|
906
1088
|
},
|
|
907
|
-
"
|
|
908
|
-
"type": "
|
|
909
|
-
"description": "
|
|
1089
|
+
"height": {
|
|
1090
|
+
"type": "integer",
|
|
1091
|
+
"description": "Viewport height in pixels. Controls how much vertical area is visible. Max: 4320.",
|
|
1092
|
+
"default": 867
|
|
910
1093
|
},
|
|
911
|
-
"
|
|
1094
|
+
"full_page": {
|
|
912
1095
|
"type": "boolean",
|
|
913
|
-
"description": "
|
|
1096
|
+
"description": "Captures the entire webpage from top to bottom, including scrollable content outside the viewport. Ideal for long-form pages.",
|
|
1097
|
+
"default": false
|
|
914
1098
|
},
|
|
915
|
-
"
|
|
1099
|
+
"thumbnail_width": {
|
|
916
1100
|
"type": "integer",
|
|
917
|
-
"description": "
|
|
1101
|
+
"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)."
|
|
918
1102
|
},
|
|
919
1103
|
"retina": {
|
|
920
1104
|
"type": "boolean",
|
|
921
|
-
"description": "2x resolution."
|
|
1105
|
+
"description": "Captures at 2x resolution for sharper, high-DPI output. Increases file size.",
|
|
1106
|
+
"default": false
|
|
922
1107
|
},
|
|
923
|
-
"
|
|
924
|
-
"type": "
|
|
925
|
-
"description": "
|
|
926
|
-
},
|
|
927
|
-
"block_tracking": {
|
|
928
|
-
"type": "boolean",
|
|
929
|
-
"description": "Block tracking."
|
|
1108
|
+
"clip[x]": {
|
|
1109
|
+
"type": "integer",
|
|
1110
|
+
"description": "X coordinate (in pixels) for the top-left corner of the clip area. Default: null."
|
|
930
1111
|
},
|
|
931
|
-
"
|
|
932
|
-
"type": "
|
|
933
|
-
"description": "
|
|
1112
|
+
"clip[y]": {
|
|
1113
|
+
"type": "integer",
|
|
1114
|
+
"description": "Y coordinate (in pixels) for the top-left corner of the clip area. Default: null."
|
|
934
1115
|
},
|
|
935
|
-
"
|
|
936
|
-
"type": "
|
|
937
|
-
"description": "
|
|
1116
|
+
"clip[width]": {
|
|
1117
|
+
"type": "integer",
|
|
1118
|
+
"description": "Width of the clip area in pixels. Default: null."
|
|
938
1119
|
},
|
|
939
|
-
"
|
|
1120
|
+
"clip[height]": {
|
|
940
1121
|
"type": "integer",
|
|
941
|
-
"description": "
|
|
1122
|
+
"description": "Height of the clip area in pixels. Default: null."
|
|
942
1123
|
},
|
|
943
1124
|
"adjust_top": {
|
|
944
1125
|
"type": "integer",
|
|
945
|
-
"description": "
|
|
1126
|
+
"description": "Initial vertical scroll position in pixels before capture. Use to position mid-page content in viewport. Not supported for PDF.",
|
|
1127
|
+
"default": 0
|
|
946
1128
|
},
|
|
947
1129
|
"wait_for_event": {
|
|
948
1130
|
"type": "string",
|
|
949
1131
|
"enum": ["load", "domcontentloaded", "networkidle"],
|
|
950
|
-
"description": "
|
|
1132
|
+
"description": "Controls when rendering starts based on page load lifecycle. `load` (all resources), `domcontentloaded` (HTML parsed), `networkidle` (no network activity for 500ms).",
|
|
1133
|
+
"default": "load"
|
|
951
1134
|
},
|
|
952
|
-
"
|
|
1135
|
+
"delay": {
|
|
953
1136
|
"type": "integer",
|
|
954
|
-
"description": "
|
|
1137
|
+
"description": "Wait period in milliseconds before capture. Allows animations, API responses, and dynamic elements to finish rendering.",
|
|
1138
|
+
"default": 0
|
|
955
1139
|
},
|
|
956
|
-
"
|
|
1140
|
+
"lazy_load": {
|
|
1141
|
+
"type": "boolean",
|
|
1142
|
+
"description": "Automatically scrolls the page to trigger lazy-loaded images and components. Ensures complete content capture.",
|
|
1143
|
+
"default": false
|
|
1144
|
+
},
|
|
1145
|
+
"scroll_delay": {
|
|
957
1146
|
"type": "integer",
|
|
958
|
-
"description": "Delay in
|
|
1147
|
+
"description": "Delay in milliseconds between scroll steps when `lazy_load` is enabled. Use higher values for heavy pages.",
|
|
1148
|
+
"default": 500
|
|
959
1149
|
},
|
|
960
1150
|
"timeout": {
|
|
961
1151
|
"type": "integer",
|
|
962
|
-
"description": "
|
|
1152
|
+
"description": "Maximum wait in milliseconds for page load before aborting. Adjust for slow/heavy pages. Default: 100000 (100s).",
|
|
1153
|
+
"default": 100000
|
|
963
1154
|
},
|
|
964
|
-
"
|
|
965
|
-
"type": "
|
|
966
|
-
"description": "
|
|
1155
|
+
"selector": {
|
|
1156
|
+
"type": "string",
|
|
1157
|
+
"description": "CSS selector to capture a specific element. Only that element is rendered. Falls back to full page if not found. Default: empty."
|
|
967
1158
|
},
|
|
968
|
-
"
|
|
969
|
-
"type": "
|
|
970
|
-
"description": "
|
|
1159
|
+
"scroll_to_element": {
|
|
1160
|
+
"type": "string",
|
|
1161
|
+
"description": "Scrolls the page to bring the specified CSS selector into view before capture. Ideal for below-the-fold content. Default: empty."
|
|
971
1162
|
},
|
|
972
|
-
"
|
|
973
|
-
"type": "
|
|
974
|
-
"description": "
|
|
1163
|
+
"selector_to_click": {
|
|
1164
|
+
"type": "string",
|
|
1165
|
+
"description": "CSS selector for an element to click before capturing the screenshot. Useful for opening dropdowns, modals, or triggering content."
|
|
975
1166
|
},
|
|
976
|
-
"
|
|
1167
|
+
"click_recursion": {
|
|
977
1168
|
"type": "integer",
|
|
978
|
-
"description": "
|
|
1169
|
+
"description": "Number of times to click the selector (when set via `selector_to_click`).",
|
|
1170
|
+
"default": 1
|
|
979
1171
|
},
|
|
980
|
-
"
|
|
981
|
-
"type": "
|
|
982
|
-
"description": "
|
|
1172
|
+
"blur_selector": {
|
|
1173
|
+
"type": "string",
|
|
1174
|
+
"description": "CSS selectors to blur before capture. Masks sensitive data like emails, payments, or personal info. Multiple selectors supported. Default: empty."
|
|
983
1175
|
},
|
|
984
|
-
"
|
|
985
|
-
"type": "
|
|
986
|
-
"description": "
|
|
1176
|
+
"remove_selector": {
|
|
1177
|
+
"type": "string",
|
|
1178
|
+
"description": "CSS selectors to remove before capture. Deletes matched elements from DOM. Ideal for cleaning ads, popups, sidebars. Multiple selectors supported. Default: empty."
|
|
1179
|
+
},
|
|
1180
|
+
"css": {
|
|
1181
|
+
"type": "string",
|
|
1182
|
+
"description": "Allows injecting custom CSS code into the page before rendering. Pass the CSS code directly as a string."
|
|
987
1183
|
},
|
|
988
1184
|
"css_url": {
|
|
989
1185
|
"type": "string",
|
|
990
|
-
"description": "CSS
|
|
1186
|
+
"description": "Allows loading external CSS into the page. Provide a URL pointing to the CSS file."
|
|
991
1187
|
},
|
|
992
|
-
"
|
|
1188
|
+
"js": {
|
|
993
1189
|
"type": "string",
|
|
994
|
-
"description": "
|
|
1190
|
+
"description": "Allows injecting custom JavaScript code into the page before rendering. Pass the JavaScript code directly as a string."
|
|
995
1191
|
},
|
|
996
1192
|
"js_url": {
|
|
997
1193
|
"type": "string",
|
|
998
|
-
"description": "
|
|
1194
|
+
"description": "Allows loading external JavaScript into the page. Provide a URL pointing to the script file."
|
|
999
1195
|
},
|
|
1000
|
-
"
|
|
1196
|
+
"custom_html": {
|
|
1197
|
+
"type": "string",
|
|
1198
|
+
"description": "Custom HTML to render instead of loading a URL. Overrides the url option. Use for capturing specific HTML structures or dynamic content."
|
|
1199
|
+
},
|
|
1200
|
+
"markdown": {
|
|
1001
1201
|
"type": "string",
|
|
1002
|
-
"description": "
|
|
1202
|
+
"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."
|
|
1203
|
+
},
|
|
1204
|
+
"user_agent": {
|
|
1205
|
+
"type": "string",
|
|
1206
|
+
"description": "Custom User-Agent string sent in the request headers."
|
|
1207
|
+
},
|
|
1208
|
+
"accept_languages": {
|
|
1209
|
+
"type": "string",
|
|
1210
|
+
"description": "Sets the accepted languages for the HTTP request. This is sent as the Accept-Language header.",
|
|
1211
|
+
"default": "en-US,en;q=0.8"
|
|
1212
|
+
},
|
|
1213
|
+
"dark_mode": {
|
|
1214
|
+
"type": "boolean",
|
|
1215
|
+
"description": "When set to `true`, websites that support prefers-color-scheme: dark will render in dark mode.",
|
|
1216
|
+
"default": false
|
|
1217
|
+
},
|
|
1218
|
+
"grayscale": {
|
|
1219
|
+
"type": "integer",
|
|
1220
|
+
"description": "Applies a grayscale filter to the screenshot. Requires a value from 0 (no effect) to 100 (fully grayscale).",
|
|
1221
|
+
"default": 0
|
|
1222
|
+
},
|
|
1223
|
+
"enable_incognito": {
|
|
1224
|
+
"type": "boolean",
|
|
1225
|
+
"description": "Enables private/incognito browsing. Each render starts with a clean slate - no cookies, cache, or session data persisted.",
|
|
1226
|
+
"default": false
|
|
1227
|
+
},
|
|
1228
|
+
"headers": {
|
|
1229
|
+
"type": "string",
|
|
1230
|
+
"description": "Custom HTTP headers to include as key=value pairs. Use a semicolon to separate multiple headers (e.g., `key1=value1;key2=value2`)."
|
|
1231
|
+
},
|
|
1232
|
+
"cookies": {
|
|
1233
|
+
"type": "string",
|
|
1234
|
+
"description": "Cookies to include in the request before rendering. Supports single or multiple cookies. Example: `cookie=value; otherCookie=otherValue;`."
|
|
1235
|
+
},
|
|
1236
|
+
"longitude": {
|
|
1237
|
+
"type": "number",
|
|
1238
|
+
"format": "float",
|
|
1239
|
+
"description": "Specify longitude for the browser Geolocation API. Provide a numeric value. Default: null (not set)."
|
|
1240
|
+
},
|
|
1241
|
+
"latitude": {
|
|
1242
|
+
"type": "number",
|
|
1243
|
+
"format": "float",
|
|
1244
|
+
"description": "Specify latitude for the browser Geolocation API. Provide a numeric value. Default: null (not set)."
|
|
1245
|
+
},
|
|
1246
|
+
"timezone": {
|
|
1247
|
+
"type": "string",
|
|
1248
|
+
"description": "IANA timezone the browser uses while rendering, such as Asia/Karachi or Europe/London. Useful for clocks and localized dates."
|
|
1249
|
+
},
|
|
1250
|
+
"block_ads": {
|
|
1251
|
+
"type": "boolean",
|
|
1252
|
+
"description": "Blocks requests to known ad networks for cleaner, distraction-free screenshots.",
|
|
1253
|
+
"default": false
|
|
1254
|
+
},
|
|
1255
|
+
"block_chat_widgets": {
|
|
1256
|
+
"type": "boolean",
|
|
1257
|
+
"description": "Blocks live chat popups, support bubbles, and messaging interfaces.",
|
|
1258
|
+
"default": false
|
|
1259
|
+
},
|
|
1260
|
+
"block_tracking": {
|
|
1261
|
+
"type": "boolean",
|
|
1262
|
+
"description": "Blocks tracking scripts and analytics services for cleaner, privacy-oriented renders.",
|
|
1263
|
+
"default": false
|
|
1264
|
+
},
|
|
1265
|
+
"no_cookie_banners": {
|
|
1266
|
+
"type": "boolean",
|
|
1267
|
+
"description": "Hides or blocks cookie consent banners and popups before capture.",
|
|
1268
|
+
"default": false
|
|
1003
1269
|
},
|
|
1004
1270
|
"block_js": {
|
|
1005
1271
|
"type": "boolean",
|
|
1006
|
-
"description": "
|
|
1272
|
+
"description": "Disables all JavaScript execution. Renders a static version of the page. Speeds up capture but may break dynamic content.",
|
|
1273
|
+
"default": false
|
|
1007
1274
|
},
|
|
1008
1275
|
"block_stylesheets": {
|
|
1009
1276
|
"type": "boolean",
|
|
1010
|
-
"description": "
|
|
1277
|
+
"description": "Blocks all stylesheets - page renders as raw HTML without visual formatting.",
|
|
1278
|
+
"default": false
|
|
1011
1279
|
},
|
|
1012
1280
|
"block_images": {
|
|
1013
1281
|
"type": "boolean",
|
|
1014
|
-
"description": "
|
|
1282
|
+
"description": "Blocks all image resources (jpg, png, gif, webp, svg, etc.) for faster rendering.",
|
|
1283
|
+
"default": false
|
|
1015
1284
|
},
|
|
1016
1285
|
"block_media": {
|
|
1017
1286
|
"type": "boolean",
|
|
1018
|
-
"description": "
|
|
1287
|
+
"description": "Blocks audio and video resources (mp3, mp4, webm, etc.) from loading.",
|
|
1288
|
+
"default": false
|
|
1019
1289
|
},
|
|
1020
1290
|
"block_font": {
|
|
1021
1291
|
"type": "boolean",
|
|
1022
|
-
"description": "
|
|
1292
|
+
"description": "Blocks external font files - page falls back to system defaults. Supported: woff, woff2, ttf, otf, eot.",
|
|
1293
|
+
"default": false
|
|
1023
1294
|
},
|
|
1024
1295
|
"block_text_track": {
|
|
1025
1296
|
"type": "boolean",
|
|
1026
|
-
"description": "
|
|
1297
|
+
"description": "Blocks subtitles and caption overlays from loading.",
|
|
1298
|
+
"default": false
|
|
1027
1299
|
},
|
|
1028
1300
|
"block_xhr": {
|
|
1029
1301
|
"type": "boolean",
|
|
1030
|
-
"description": "
|
|
1302
|
+
"description": "Blocks all XMLHttpRequest (AJAX) calls - prevents dynamic API-driven content.",
|
|
1303
|
+
"default": false
|
|
1031
1304
|
},
|
|
1032
1305
|
"block_fetch": {
|
|
1033
1306
|
"type": "boolean",
|
|
1034
|
-
"description": "
|
|
1307
|
+
"description": "Blocks all Fetch API requests - stops async data loading.",
|
|
1308
|
+
"default": false
|
|
1035
1309
|
},
|
|
1036
1310
|
"block_event_source": {
|
|
1037
1311
|
"type": "boolean",
|
|
1038
|
-
"description": "
|
|
1312
|
+
"description": "Blocks EventSource (SSE) connections - prevents real-time data streams.",
|
|
1313
|
+
"default": false
|
|
1039
1314
|
},
|
|
1040
1315
|
"block_web_socket": {
|
|
1041
1316
|
"type": "boolean",
|
|
1042
|
-
"description": "
|
|
1317
|
+
"description": "Blocks WebSocket connections - prevents real-time bidirectional communication.",
|
|
1318
|
+
"default": false
|
|
1043
1319
|
},
|
|
1044
1320
|
"block_manifest": {
|
|
1045
1321
|
"type": "boolean",
|
|
1046
|
-
"description": "
|
|
1322
|
+
"description": "Blocks manifest files (.json, .webmanifest) - disables PWA-related functionality.",
|
|
1323
|
+
"default": false
|
|
1047
1324
|
},
|
|
1048
1325
|
"block_specific_requests": {
|
|
1049
1326
|
"type": "string",
|
|
1050
|
-
"description": "
|
|
1327
|
+
"description": "Fine-grained blocking of specific URLs or patterns. Separate multiple rules by comma, space, or newline. Default: empty."
|
|
1051
1328
|
},
|
|
1052
|
-
"
|
|
1053
|
-
"type": "
|
|
1054
|
-
"description": "
|
|
1329
|
+
"extract_text": {
|
|
1330
|
+
"type": "boolean",
|
|
1331
|
+
"description": "Strips all HTML and returns visible text as a .txt file. Ideal for text analysis, indexing, or AI pipelines. Only with output=json.",
|
|
1332
|
+
"default": false
|
|
1055
1333
|
},
|
|
1056
|
-
"
|
|
1057
|
-
"type": "
|
|
1058
|
-
"description": "
|
|
1334
|
+
"extract_html": {
|
|
1335
|
+
"type": "boolean",
|
|
1336
|
+
"description": "Returns rendered HTML as a .html file (includes JS-executed DOM). Only available with output=json.",
|
|
1337
|
+
"default": false
|
|
1059
1338
|
},
|
|
1060
|
-
"
|
|
1061
|
-
"type": "
|
|
1062
|
-
"description": "
|
|
1339
|
+
"extract_markdown": {
|
|
1340
|
+
"type": "boolean",
|
|
1341
|
+
"description": "Extracts rendered page content as a structured .md (Markdown) file. Preserves headings, lists, links. Only with output=json.",
|
|
1342
|
+
"default": false
|
|
1063
1343
|
},
|
|
1064
|
-
"
|
|
1065
|
-
"type": "
|
|
1066
|
-
"description": "
|
|
1344
|
+
"get_image_urls": {
|
|
1345
|
+
"type": "boolean",
|
|
1346
|
+
"description": "Extracts all image URLs from the rendered DOM and returns them in structured format. Only with output=json.",
|
|
1347
|
+
"default": false
|
|
1067
1348
|
},
|
|
1068
|
-
"
|
|
1069
|
-
"type": "
|
|
1070
|
-
"description": "
|
|
1349
|
+
"stealth": {
|
|
1350
|
+
"type": "boolean",
|
|
1351
|
+
"description": "Makes the browser look like a regular visitor for pages that block automated traffic. No extra credits.",
|
|
1352
|
+
"default": false
|
|
1071
1353
|
},
|
|
1072
|
-
"
|
|
1073
|
-
"type": "
|
|
1074
|
-
"description": "
|
|
1354
|
+
"gpu": {
|
|
1355
|
+
"type": "boolean",
|
|
1356
|
+
"description": "Renders the page with a GPU, including WebGL and canvas content. Adds 20 credits per request.",
|
|
1357
|
+
"default": false
|
|
1075
1358
|
},
|
|
1076
|
-
"
|
|
1359
|
+
"proxy": {
|
|
1077
1360
|
"type": "string",
|
|
1078
|
-
"description": "
|
|
1361
|
+
"description": "Allows defining a proxy for the connection. Provide a JSON string with keys: server (include port number), username, and password."
|
|
1079
1362
|
},
|
|
1080
|
-
"
|
|
1081
|
-
"type": "
|
|
1082
|
-
"description": "
|
|
1363
|
+
"classic_proxy": {
|
|
1364
|
+
"type": "boolean",
|
|
1365
|
+
"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.",
|
|
1366
|
+
"default": false
|
|
1083
1367
|
},
|
|
1084
|
-
"
|
|
1368
|
+
"premium_proxy": {
|
|
1369
|
+
"type": "boolean",
|
|
1370
|
+
"description": "Loads the page through a residential proxy. Adds 200 credits per request. Used instead of classic_proxy.",
|
|
1371
|
+
"default": false
|
|
1372
|
+
},
|
|
1373
|
+
"country": {
|
|
1085
1374
|
"type": "string",
|
|
1086
|
-
"description": "
|
|
1375
|
+
"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."
|
|
1087
1376
|
},
|
|
1088
|
-
"
|
|
1377
|
+
"solve_captcha": {
|
|
1378
|
+
"type": "boolean",
|
|
1379
|
+
"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.",
|
|
1380
|
+
"default": false
|
|
1381
|
+
},
|
|
1382
|
+
"captcha_image": {
|
|
1089
1383
|
"type": "string",
|
|
1090
|
-
"description": "
|
|
1384
|
+
"description": "CSS selector of the captcha picture. Required when solve_captcha is true."
|
|
1091
1385
|
},
|
|
1092
|
-
"
|
|
1386
|
+
"captcha_input": {
|
|
1093
1387
|
"type": "string",
|
|
1094
|
-
"description": "
|
|
1388
|
+
"description": "CSS selector of the box the answer is typed into. Required when solve_captcha is true."
|
|
1095
1389
|
},
|
|
1096
|
-
"
|
|
1390
|
+
"captcha_submit": {
|
|
1097
1391
|
"type": "string",
|
|
1098
|
-
"description": "
|
|
1392
|
+
"description": "CSS selector of the button to click after the answer is typed."
|
|
1099
1393
|
},
|
|
1100
|
-
"
|
|
1394
|
+
"captcha_error": {
|
|
1101
1395
|
"type": "string",
|
|
1102
|
-
"description": "
|
|
1396
|
+
"description": "CSS selector of the message shown for a wrong answer. While it is visible, the solver tries again."
|
|
1103
1397
|
},
|
|
1104
|
-
"
|
|
1105
|
-
"type": "
|
|
1106
|
-
"description": "
|
|
1398
|
+
"captcha_refresh": {
|
|
1399
|
+
"type": "string",
|
|
1400
|
+
"description": "CSS selector of the control that loads a new captcha picture before the next try."
|
|
1107
1401
|
},
|
|
1108
|
-
"
|
|
1109
|
-
"type": "
|
|
1110
|
-
"
|
|
1111
|
-
"
|
|
1402
|
+
"captcha_retries": {
|
|
1403
|
+
"type": "integer",
|
|
1404
|
+
"minimum": 1,
|
|
1405
|
+
"maximum": 5,
|
|
1406
|
+
"default": 3,
|
|
1407
|
+
"description": "Number of guesses the solver makes, from 1 to 5."
|
|
1112
1408
|
},
|
|
1113
|
-
"
|
|
1114
|
-
"type": "
|
|
1115
|
-
"
|
|
1116
|
-
"
|
|
1409
|
+
"ocr_model": {
|
|
1410
|
+
"type": "string",
|
|
1411
|
+
"enum": ["mini-ocr-v1", "ocr-v1"],
|
|
1412
|
+
"default": "mini-ocr-v1",
|
|
1413
|
+
"description": "Recognition model used by the captcha solver: mini-ocr-v1 (default) or ocr-v1."
|
|
1117
1414
|
},
|
|
1118
1415
|
"scrolling_screenshot": {
|
|
1119
1416
|
"type": "boolean",
|
|
1120
|
-
"description": "
|
|
1417
|
+
"description": "Enables scrolling screenshot mode to capture a video (webm, gif, mp4) of the webpage.",
|
|
1418
|
+
"default": false
|
|
1121
1419
|
},
|
|
1122
1420
|
"scroll_speed": {
|
|
1123
1421
|
"type": "string",
|
|
1124
1422
|
"enum": ["normal", "fast", "slow"],
|
|
1125
|
-
"description": "
|
|
1423
|
+
"description": "Scrolling speed: fast, normal (default), or slow. Affects render time and output pacing.",
|
|
1424
|
+
"default": "normal"
|
|
1126
1425
|
},
|
|
1127
1426
|
"duration": {
|
|
1128
|
-
"type": "
|
|
1129
|
-
"description": "Duration in seconds."
|
|
1427
|
+
"type": "integer",
|
|
1428
|
+
"description": "Duration of scrolling action in seconds (0-60). Higher = longer video. Default: null (full page scroll).",
|
|
1429
|
+
"minimum": 0,
|
|
1430
|
+
"maximum": 60
|
|
1130
1431
|
},
|
|
1131
1432
|
"scroll_back": {
|
|
1132
1433
|
"type": "boolean",
|
|
1133
|
-
"description": "
|
|
1434
|
+
"description": "If `true`, scrolls to bottom then back to top, creating a seamless loop.",
|
|
1435
|
+
"default": false
|
|
1134
1436
|
},
|
|
1135
1437
|
"start_immediately": {
|
|
1136
1438
|
"type": "boolean",
|
|
1137
|
-
"description": "
|
|
1439
|
+
"description": "Starts recording immediately without waiting for full page load.",
|
|
1440
|
+
"default": false
|
|
1138
1441
|
},
|
|
1139
|
-
"
|
|
1442
|
+
"video": {
|
|
1140
1443
|
"type": "boolean",
|
|
1141
|
-
"description": "
|
|
1444
|
+
"description": "Records visible viewport only for a specified duration. Use with `duration` parameter. Ideal for dashboards and animations.",
|
|
1445
|
+
"default": false
|
|
1142
1446
|
},
|
|
1143
|
-
"
|
|
1144
|
-
"type": "
|
|
1145
|
-
"
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
"description": "Viewport sizes."
|
|
1447
|
+
"output": {
|
|
1448
|
+
"type": "string",
|
|
1449
|
+
"enum": ["json", "image"],
|
|
1450
|
+
"default": "json",
|
|
1451
|
+
"description": "Set the output format. `json` returns metadata with a hosted file URL. `image` streams the raw file bytes directly."
|
|
1149
1452
|
},
|
|
1150
|
-
"
|
|
1151
|
-
"type": "
|
|
1152
|
-
"
|
|
1453
|
+
"format": {
|
|
1454
|
+
"type": "string",
|
|
1455
|
+
"enum": ["json"],
|
|
1456
|
+
"default": "json",
|
|
1457
|
+
"description": "Response format: json (default)."
|
|
1153
1458
|
}
|
|
1154
1459
|
}
|
|
1155
1460
|
},
|
|
@@ -1160,11 +1465,11 @@
|
|
|
1160
1465
|
"properties": {
|
|
1161
1466
|
"total_urls": {
|
|
1162
1467
|
"type": "integer",
|
|
1163
|
-
"description": "Total number of URLs processed."
|
|
1468
|
+
"description": "Total number of URLs processed in the bulk request."
|
|
1164
1469
|
},
|
|
1165
1470
|
"successful_urls": {
|
|
1166
1471
|
"type": "integer",
|
|
1167
|
-
"description": "Number of URLs successfully processed."
|
|
1472
|
+
"description": "Number of URLs that were successfully processed."
|
|
1168
1473
|
},
|
|
1169
1474
|
"failed_urls": {
|
|
1170
1475
|
"type": "integer",
|
|
@@ -1179,7 +1484,7 @@
|
|
|
1179
1484
|
"properties": {
|
|
1180
1485
|
"status": {
|
|
1181
1486
|
"type": "string",
|
|
1182
|
-
"description": "API request status indicator
|
|
1487
|
+
"description": "API request status indicator. `success` for successful requests."
|
|
1183
1488
|
},
|
|
1184
1489
|
"meta_data": {
|
|
1185
1490
|
"$ref": "#/components/schemas/BulkScreenshotMetaData"
|