Screenshot Image API

Generate and display a screenshot of any web page with a single, secure and hosted URL.
It takes only one line of code and can be done on the fly! 🤘


Get Started

Anatomy of the request url

https://i.pagescreen.io/v1/1/2/?url=3

1. Public Key

A personal unique identifier assigned when activating the Image API.

2. Token

A security token to identify your account. It is the md5 hash of the entire query string and your Secret Key.

3. Query String

The URL to capture, and additional options.

Get Started: go to your account's integration to grab your keys, and play with our code samples.

Options

Make your screenshot look exactly the way you want.

Parameter Description Default value
UrlThe URL you want to capture / display
example: https://pagescreen.io
-
ViewportSize of the viewport in pixels
example: 1440x960
1280x768
FullpageCapture the full page in height
possible values: 1, 0, true, false
FALSE
DelayWait for a specific delay before capturing (seconds).
maximum 60 seconds
0
FormatImage format of the capture
PNG or JPEG
PNG

Tip: an extra parameter "size" will allow you to resize the image on the fly, at the display. Example: &size=500

Code Sample

Example using PHP

				

<?php

function pagescreen_v1($url$options = []) {

  
# Pagescreen.io Public and Secret Keys
  
$PUBLIC_KEY "pk_screenshot_abc123";
  
$SECRET_KEY "sk_screenshot_zyx987";

  
# Build Query String
  
$query_string http_build_query(array_merge(["url" => $url], $options));

  
# Generate unique token
  
$TOKEN md5($SECRET_KEY.$query_string);

  return 
"https://i.pagescreen.io/v1/$PUBLIC_KEY/$TOKEN/?$query_string";

}

echo 
'<img src="'.pagescreen_v1("https://pagescreen.io/",["viewport"=>"1280x768""size"=>"500"]).'">';

?>

Looking at deeper integration? Check out theScreenshot REST API.

What our users say about Pagescreen

"I've been a happy user of Pagescreen for some time now. Most of our team is on Pagescreen now, and when we see some major change in the website of a competitor, we can sit down, and easily explore what they have introduced - the "diff" feature is awesome."

Alexander - CEO @ SessionStack
Alexander CEO @ SessionStack

"Who never needed to make a huge amount of screenshots? I was won over by Pagescreen as soon as I discovered it, a real favorite for this well-designed SaaS solution at all levels. I recommend without hesitation to all the professionals who wish to improve their productivity."

Paul-Henri - Growth Specialist
Paul-Henri Growth Specialist

"Pagescreen is a very well designed service ergonomically speaking. We are immediately at ease and we easily understand the logic."

Christophe - Marketing Consultant
Christophe Marketing Consultant

( Trusted by 600+ industry leaders )

Create your free account

must contain at least 1 number, 1 letter and 6 or more characters.

or sign-up with

By creating an account, you agree to our Terms of service and Privacy Policy