Get a Free Trial

Free Website Screenshot API with GrabzIt

A website screenshot API is a tool that enables you to capture high-quality images of any website by simply entering its URL. These images can then be used for a variety of purposes, such as enhancing websites, social media posts, or presentations. By leveraging a website screenshot API, you can enhance your online presence, streamline your workflow, and provide a better user experience.

Why Choose GrabzIt's Screenshot API?

FlexiblePowerful & Flexible Capture full pages, target specific HTML elements, set capture delays, and control the browser size with precision.

Multiple FormatsMultiple Formats Go beyond basic images. Generate screenshots as JPG, PNG, scalable SVGs, or even searchable PDFs and editable DOCX files.

ScalableReliable & Scalable Built for production use, our API is trusted by thousands of developers for its stability and performance.

IntegrateEasy to Integrate Get started in minutes with clear documentation and ready-to-use libraries for all major languages, including PHP, Python, Node.js, and C#.


Take a Screenshot

Learn more about how our service goes beyond simple PNG conversion to offer a complete web capture solution.

Example GrabzIt Screenshots

High Quality Rendering

Our screenshot service supports all the latest web standards. Capturing things such as graphs, HTML5 Canvas and Video elements, Flash and SVG images. To web fonts and CSS3 effects.

What about lazy loaded images? We handle them automatically. All this creates high quality, pixel perfect screenshots

To see even more detail in your screenshots, GrabzIt can create High Definition screenshots. Or do the opposite and use the website thumbnail API to create thumbnail screenshots.

While our global network of servers. Screenshot web pages from around the world faster than ever before! So why not let a screenshot say it better than a description ever could!

Website Screenshot API

Embed GrabzIt's screenshot functionality directly into your app with our Screenshot Website API. The screenshot API supports nine different programming languages. To see how to screenshot a webpage just select the appropriate language from the options below.

The example code below shows how easy it is to create a website screenshot using ASP.NET. To start creating screenshots just download the ASP.NET Library. Then get your API Key and Secret and then use the demo contained within. Then check out the screenshot capturing API documentation for ASP.NET to find out all the ways you can use GrabzIt's API.

//The client should be stored somewhere and reused!
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret", client);
grabzIt.URLToImage("https://www.tesla.com"); 
await grabzIt.SaveToAsync("images/result.jpg");

The example code below shows how easy it is to create a website screenshot using Java. To start creating screenshots just download the Java Library. Then get your API Key and Secret and then use the demo contained within. Then check out the Java screenshot/a> documentation to find out all the ways you can use GrabzIt's API.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToImage("https://www.tesla.com"); 
grabzIt.SaveTo("images/result.jpg");

The example code below shows how easy it is to create a website screenshot using JavaScript. To start creating screenshots download GrabzIt's JavaScript Library. Then get your API Key and Secret, add the domain you want to use the JavaScript on and then check out the JavaScript screenshot documentation to find out all the ways you can use GrabzIt's API.

<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.5.3/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("https://www.tesla.com").Create();
</script>

The example code below shows how easy it is to create a website screenshot using Node.js. To start creating screenshots just download the Node.js Package. Then get your API Key and Secret and then use the demo contained within. Then check out the Node.js screenshot documentation to find out all the ways you can use GrabzIt's API.

var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.url_to_image("https://www.tesla.com");
client.save_to("images/result.jpg", function (error, id){
    if (error != null){
        throw error;
    }
});

The example code below shows how easy it is to create a website screenshot using Perl. To start creating screenshots just download the Perl Library. Then get your API Key and Secret and then use the demo contained within. Then check out the Perl screenshot documentation to find out all the ways you can use GrabzIt's API.

#!/usr/bin/perl

use GrabzItClient;

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToImage("https://www.tesla.com");
$grabzIt->SaveTo("images/result.jpg");

The example code below shows how easy it is to create a website screenshot using PHP. To start creating screenshots just download the PHP Library. Then get your API Key and Secret and then use the demo contained within. Then check out the screenshot capturing API documentation for PHP to find out all the ways you can use GrabzIt's API.

include("GrabzItClient.php");

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToImage("https://www.tesla.com"); 
$grabzIt->SaveTo("images/result.jpg");

The example code below shows how easy it is to create a website screenshot using Python. To start creating screenshots just download the Python Library. Then get your API Key and Secret and then use the demo contained within. Then check out the Python screenshot documentation to find out all the ways you can use GrabzIt's API.

from GrabzIt import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.URLToImage("https://www.tesla.com") 
grabzIt.SaveTo("images/result.jpg") 

The example API call below shows how easy it is to create a website screenshot using our RESTful API. To create screenshots from your app just call the API endpoint with your access key and any optional parameters. You can find these optional parameters in the screenshot API documentation for our REST API.

https://api.grabz.it/convert?key=Sign in to view your Application Key&format=jpg&url=https%3A%2F%2Fwww.bbc.com%2F	

The example code below shows how easy it is to create a website screenshot using Ruby. To start creating screenshots just download the Ruby Gem. Then get your API Key and Secret and then use the demo contained within. Then check out the Ruby screenshot documentation to find out all the ways you can use GrabzIt's API.

require 'grabzit'

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzItClient.url_to_image("https://www.tesla.com")	
grabzItClient.save_to("images/result.jpg") 	

How to Take a Full-Page Screenshot

full page screenshot

A full page screenshot, also called a scrolling screenshot, captures the whole webpage or document in one high quality image. This means screenshots capture the full web page and have the same height and width as the web page that is being screenshot. The image to the right shows a scaled example of a full length screenshot.

It can sometimes be critical to capture text and images that extend beyond your visible screen! For instance full size screenshots are especially helpful for web designers, developers, and content creators. Who need to capture the entire layout of a webpage.

First, choose your preferred language from the options below. Then read the sample code and instructions. The below examples creates an image with the same size as the websites height and width.

Select your preferred language from the options below to access sample code and instructions for beginning. The below examples creates an image the same size as the websites height and width.

The example code below demonstrates how to screenshot the entire page using ASP.NET. To start capturing full webpages just download the ASP.NET Library, get your Application Key and Secret and then use the demo contained within. Then check out the screenshot API documentation for ASP.NET to discover all the ways you can use GrabzIt's API.

ImageOptions options = new ImageOptions();
options.BrowserHeight = -1;
options.Width = -1;
options.Height = -1;

//The client should be stored somewhere and reused!
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", 
    "Sign in to view your Application Secret", client);
grabzIt.URLToImage("https://www.tesla.com", options); 
await grabzIt.SaveToAsync("images/result.jpg");

The example code below demonstrates how easy it is to create a full size screenshot using Java. To start capturing full webpages just download the Java Library, get your Application Key and Secret and then use the demo contained within. Then check out the screenshot API documentation for Java to discover all the ways you can use GrabzIt's API.

ImageOptions options = new ImageOptions();
options.setBrowserHeight(-1);
options.setWidth(-1);
options.setHeight(-1);

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key",
    "Sign in to view your Application Secret");
grabzIt.URLToImage("https://www.tesla.com", options); 
grabzIt.SaveTo("images/result.jpg");

The example code below demonstrates how easy it is to create a full length screenshot using JavaScript. To start capturing full webpages download GrabzIt's JavaScript Library. Then get your Application Key and Secret, add the domain you want to use the JavaScript on and then check out the screenshot API documentation for JavaScript to discover all the ways you can use GrabzIt's API.

<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("https://www.tesla.com", 
{"bheight":-1,"width":-1,"height":-1}).Create();
</script>

The example code below demonstrates how easy it is to create a full page screenshot using Node.js. To start capturing full webpages just download the Node.js Package, get your Application Key and Secret and then use the demo contained within. Then check out the screenshot API documentation for Node.js to discover all the ways you can use GrabzIt's API.

var grabzit = require('grabzit');

var options = {"width":-1, "height":-1, "browserHeight":-1};

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.url_to_image("https://www.tesla.com", options);
client.save_to("images/result.jpg", function (error, id){
    if (error != null){
        throw error;
    }
});

The example code below demonstrates how easy it is to create a full size screenshot using Perl. To start capturing full webpages just download the Perl Library, get your Application Key and Secret and then use the demo contained within. Then check out the screenshot API documentation for Perl to discover all the ways you can use GrabzIt's API.

#!/usr/bin/perl

use GrabzItClient;

$options = GrabzItImageOptions->new();
$options->browserHeight(-1);
$options->width(-1);
$options->height(-1);

$grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToImage("https://www.tesla.com", $options);
$grabzIt->SaveTo("images/result.jpg");

The example code below demonstrates how easy it is to screenshot an entire webpage using PHP. To start capturing full webpages just download the PHP Library, get your Application Key and Secret and then use the demo contained within. Then check out the screenshot API documentation for PHP to discover all the ways you can use GrabzIt's API.

include("GrabzItClient.php");

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");

$options = new \GrabzIt\GrabzItImageOptions();
$options->setWidth(-1);
$options->setHeight(-1);
$options->setBrowserHeight(-1);

$grabzIt->URLToImage("https://www.tesla.com", $options); 
$grabzIt->SaveTo("images/result.jpg");

The example code below demonstrates how easy it is to create a full page screenshot using Python. To start capturing full webpages just download the Python Library, get your Application Key and Secret and then use the demo contained within. Then check out the screenshot API documentation for Python to discover all the ways you can use GrabzIt's API.

from GrabzIt import GrabzItClient
from GrabzIt import GrabzItImageOptions

options = GrabzItImageOptions.GrabzItImageOptions()
options.width = -1
options.height = -1
options.browserHeight = -1

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key",
    "Sign in to view your Application Secret")
grabzIt.URLToImage("https://www.tesla.com", options) 
grabzIt.SaveTo("images/result.jpg") 

The example code below demonstrates how easy it is to create a full size screenshot using our REST API. Also check out the RESTful screenshot API documentation to discover all the ways you can use customize your captures.

https://api.grabz.it/convert?key=Sign in to view your Application Key&format=jpg&bheight=-1&width=-1&height=-1&url=https%3A%2F%2Fwww.tesla.com

The example code below demonstrates how easy it is to create a full length screenshot using Ruby. To start capturing full webpages just download the Ruby Gem, get your Application Key and Secret and then use the demo contained within. Then check out the screenshot API documentation for Ruby to discover all the ways you can use GrabzIt's API.

require 'grabzit'

options = GrabzIt::ImageOptions.new()
options.browserHeight = -1
options.width = -1
options.height = -1

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", 
    "Sign in to view your Application Secret")
grabzItClient.url_to_image("https://www.tesla.com", options)	
grabzItClient.save_to("images/result.jpg") 	

To create a full page image screenshot pass -1 to the image height and width, as well as the browser height parameters.

Other ways to Screenshot Websites

Most users just want to take screenshots of individual webpages. However some people want to screenshot an entire website. GrabzIt makes this possible by providing this special web scraper template. The web scrape will then follow all the links on the entire website and screenshot every URL found.

You can also screenshot multiple webpages without writing any code. By importing the URLs you wish to screenshot into GrabzIt's Screenshot Tool.

If you don't want to convert URLs you can also use our API to convert HTML directly into images.