Get a Free Trial

Screenshot mobile websites with JavaScript

DownloadParameters
JavaScript API

GrabzIt provides the ability to screenshot mobile websites, however not all websites have special mobile versions and so it may not work in all circumstances. Mobile screenshot can be requested for both image and PDF screenshots as well as when extracting tables.

To do this you need to pass 1 the requestas parameter in your JavaScript call, as shown below. This will then request the mobile version of the target website.

To get a more authenticate mobile screenshot it is also a good idea to pass a standard mobile browser width to the bwidth parameter, or if you are using PDF to use a smaller page size, as shown below.

<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.example.com", 
    {"requestas": 1, "bwidth": 320, "format": "png"}).Create();
</script>
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.example.com",
    {"requestas": 1, "pagesize ": "A5", "format": "pdf"}).Create();
</script>