Getting Started

ScreenshotAPI.net is an advanced and dynamic solution that allows users to take screenshots of a website programmatically without breaking a sweat. Users can select from several available formats: JPEG, PNG, WebP, or PDF, and this gives them the advantage of suiting their images to their needs. The API is simple and extremely configurable with features such as a full-page image of the screen or a certain file type, adding a custom CSS, or even a geolocation.

Your first screenshot

  1. Sign up and copy your API key from the dashboard. The Free plan includes 100 credits a month, and a capture costs 1.
  2. Send a request with your key as token and the page as url. Paste it in a browser, or run it with curl.
  3. Open the link in the response. That is your screenshot.
curl "https://shot.screenshotapi.net/v3/screenshot?token=TOKEN&url=https%3A%2F%2Fexample.com"

The response

By default you get JSON with a link to the file. This is the response to the request above. Any other settings you send are repeated in it too.

{
  "screenshot": "https://s3.eu-central-2.wasabisys.com/w.storage.screenshotapi.net/example_com_aa60c24e5ce0.png",
  "url": "https://example.com",
  "created_at": "2026-11-24T11:31:46.194Z",
  "timeout": 90000,
  "ttl": "2026-12-24T11:31:42.791Z",
  "sizes": null
}
FieldMeaning
screenshotLink to the captured file. The host can be a storage address, not only storage.screenshotapi.net, so use the link as given. For a multiple scrolling capture it is a list of links.
urlThe page that was captured.
created_atWhen the capture was made.
timeoutThe longest the request waits, in milliseconds. When you do not set it, this is your plan's maximum.
ttlUntil when a stored copy can be reused for the same request. It is 30 days from now by default. See TTL.
sizesnull unless you use multiple scrolling.
extracted_html, extracted_text, markdown_fileLinks to the page content, when you turn on the matching extract option.
imagesUrlLinks to the page's images, when get_image_urls is on.

Add output=image to be redirected straight to the file instead. The Output guide has the details. The file is kept for 30 days on the Free plan and 90 days on paid plans.

If something goes wrong

A failed request returns an HTTP status and a JSON body with an error code and a message:

{
  "timestamp": "2026-11-24T10:15:30.000Z",
  "status": 400,
  "error": "url_required",
  "message": "URL is required.",
  "path": "/v3/screenshot"
}

Look the code up on the Errors page.

Where to go next

About the API

To begin, go ahead and register or sign in to the DASHBOARD to obtain your unique API KEY. Use this key by replacing TOKEN with this in the API URL's requests. You can set which url to be captured using the url parameter. The API allows integration through GET and POST methods, which makes it easy to incorporate the API into your existing workflows. If you request a screenshot that has been returned before, and you want to return a current screenshot, please include the fresh=true parameter to shed off the cache.

Other advanced capabilities are the ability to inject JS or CSS into the page, hide some parts of the page, or take scrolling screenshots in WebM, MP4, or GIF videos. The API additionally offers capabilities for taking screenshots in multiple scrolling dimensions and on how to extract HTML or text from webpages. When dealing with PDF outputs, it is possible to set the output to certain pages only.

You can also load the page through a proxy, render it on a GPU, make the browser look like a regular visitor with stealth, or solve a text captcha before the screenshot. Which plans include each option, and the extra credits, are on Plans and credits.

Handling errors is very simple as it has status codes that are fully informative for handling problems. There is also a Query Builder which lets users play around with the parameters of the API, making it easy to build requests. Code examples can also be found for use by developers in language libraries like Node.js and Python for fast development.

In addition, please feel free to reach out to our dedicated team for any support or assistance you may need through email or the Help Desk. Any user, be it developers, marketers, and businesses ScreenshotAPI.net is designed with a soothing design yet great functionality.

Code Examples

Below is sample code for the following languages: Node.JS, PHP, Go, Java, Python, and Ruby.

If you need assistance integrating into our API with a given language please contact us.


var fs = require("fs");
var request = require("request");
 
// @param {String} token - String containing your API Key
// @param {String} url - Encoded URI string container the URI you're targeting
// @param {String} output - String specifying the output format, 'image' or 'json'
// @param {String} file_type - String specifying the output type
var token = "Your API Key";
var url = encodeURIComponent("https://google.com");
var output = "image";
var file_type = "png";
 
// Construct the query params and URL
var query = "https://shot.screenshotapi.net/v3/screenshot";
query += `?token=${token}&url=${url}&output=${output}&file_type=${file_type}`;
 
// Call the API and save the screenshot
request.get({ url: query, encoding: "binary" }, (err, response, body) => {
 	fs.writeFile("screenshot.png", body, "binary", (err) => {
		 if (err) {
			 console.log(err);
 		 } else {
			 console.log("The file was saved!");
 		 } 
 	}); 
});