Capture a screenshot of a site easily with .Maui APIs

The .Maui APIs offer a Free URL to Screenshot API Service.

The service is damn simple, here’s an example in Python:

import urllib.parse
import urllib.request

page_url = ""
image_name = "apidotmauicom.png"

params = urllib.parse.urlencode({'apikey': 'YOUR_API_KEY', 'url': page_url}).encode("utf-8")
urllib.request.urlretrieve("", image_name, data = params)

Or by using PHP


$data = array('apikey' => 'YOUR_API_KEY', 
              'url' => "");

$curl = curl_init("");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 

$output = curl_exec($curl);  

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

Or, if you are a premium user with an url:

Full documentation is available here:

Leave a Comment

Your email address will not be published. Required fields are marked *