.Maui Screenshot API version

Free website screenshot capture API.

.Maui's screenshot API lets you easily capture full page website screenshots.

POSTGET *
https://api.dotmaui.com/client/1.1/capture/

Parameters

Field Type Description Required
apikey String

.Maui Api key

True

url String

Valid URL to a web page

True

delay Integer

In seconds, it is the wait time before capturing the page but after loading it. Default is 0.

False

fullpage Boolean

Set to true if you want to capture the full height of the page. Default is false.

False

viewport String

Viewport dimensions in pixels. Default is 1440x900.

False

Success 200

It will be the screenshot of the web page in PNG format


Testing calls

You can try this service through our API-based tool available here: https://dotmaui.com/api-powered/website-screenshot.jsp


Examples

import urllib.parse
import urllib.request

page_url = "https://api.dotmaui.com/"
image_name = "apidotmauicom.png"

params = urllib.parse.urlencode({'apikey': 'YOUR_API_KEY', 'url': page_url}).encode("utf-8")
urllib.request.urlretrieve("https://api.dotmaui.com/client/1.1/capture/", image_name, data = params)

<?php
$data = array('apikey' => 'YOUR_API_KEY', 
              'url' => "https://www.example.com");

$curl = curl_init("https://api.dotmaui.com/client/1.1/capture/");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 

$output = curl_exec($curl);  

curl_close($curl);

header('Content-Type: image/png');
 
echo $output;

* Only for premium users.