Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteTo capture a website with Screenshotlayer from PHP, send a GET request to https://api.screenshotlayer.com/api/capture with your access_key and the target url, then check the response before saving it as an image. The target URL must include its protocol, such as https://. This guide shows a cURL-based PHP pattern and how to handle options, errors, plan limits, and India-specific billing questions.
What the Screenshotlayer request needs
Screenshotlayer documents the capture endpoint as https://api.screenshotlayer.com/api/capture. Its required query parameters are access_key and url; include the complete target URL, including https:// or http://. The specification also shows an HTTP endpoint and says paid customers may use HTTPS. For a production integration, use the HTTPS endpoint.
The call is a GET request. Additional capture settings are query parameters too. The API can return an image, but the specification also describes error responses, so do not treat every response body as a valid image.
Make a basic capture with PHP cURL
This example keeps the access key in an environment variable and uses http_build_query() to encode query values. It checks the HTTP response and content type before writing the response body to disk. The code illustrates an integration pattern; verify current parameter spelling and response behavior in the Screenshotlayer API documentation before deploying.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
<?php
$accessKey = getenv('SCREENSHOTLAYER_ACCESS_KEY');
if ($accessKey === false || $accessKey === '') {
throw new RuntimeException('Set SCREENSHOTLAYER_ACCESS_KEY in the server environment.');
}
$params = [
'access_key' => $accessKey,
'url' => 'https://example.com/',
];
$endpoint = 'https://api.screenshotlayer.com/api/capture?' . http_build_query($params);
$ch = curl_init($endpoint);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 60,
]);
$body = curl_exec($ch);
if ($body === false) {
$error = curl_error($ch);
curl_close($ch);
throw new RuntimeException('Screenshotlayer request failed: ' . $error);
}
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($ch);
if ($status < 200 || $status >= 300 || stripos($contentType, 'image/') !== 0) {
// Error bodies may be JSON or another non-image response; log safely on the server.
throw new RuntimeException('Screenshotlayer did not return an image. HTTP ' . $status . '; content type: ' . $contentType);
}
if (file_put_contents(__DIR__ . '/screenshot.png', $body) === false) {
throw new RuntimeException('Could not write screenshot.png.');
}
echo 'Saved screenshot.png';
Protect the access key
- Set
SCREENSHOTLAYER_ACCESS_KEYin server-side configuration or your hosting environment. Do not put the key in HTML, browser JavaScript, or a publicly served PHP file. - Do not commit a real key to source control. If a key has been exposed, replace it through the provider’s account controls.
- Log enough information to diagnose failures—such as HTTP status and a sanitized error message—but avoid logging the secret or forwarding it to a client.
Return the image from a PHP endpoint instead of saving it
If your application needs to stream the result, first perform the same status and content-type checks. Only then send an appropriate image Content-Type header and the image bytes. On an error, return a suitable application error response rather than labeling an error object as PNG. Avoid exposing the access key or raw provider response to an unauthenticated visitor.
Add capture options
The specification documents these useful parameters. PNG is the default format; the provider also describes JPEG and GIF output. Its documented default viewport is 1440 × 900.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
| Parameter | Purpose | Example |
|---|---|---|
fullpage |
Request a full-page capture. | fullpage=1 |
width |
Set the output or thumbnail width. | width=800 |
viewport |
Set the viewport dimensions. | Use the format specified in the current API documentation. |
format |
Select an output format. | PNG is the documented default; JPEG and GIF are also described. |
To add an option, add it to the PHP $params array before constructing the URL. For example, add 'fullpage' => 1 or 'width' => 800. Check the live documentation for accepted values and exact formatting, particularly for viewport and format.
Common errors and what to check
Screenshotlayer documents errors for missing or invalid access keys, exhausted usage limits, and invalid URLs. Check the HTTP response and response body in a controlled server-side log; an error response is not an image.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
- Missing or invalid access key: confirm the environment variable is present in the PHP runtime, contains the right key, and is not being sent with extra whitespace. Do not echo it into a page or log.
- Usage limit reached: check the account’s current allowance and plan. The provider says it notifies users at 75%, 90%, and 100% of the monthly allowance; its FAQ describes overage charges after the quota is exhausted. Confirm the current account terms before relying on overages.
- Invalid URL: send a complete, correctly encoded URL with its scheme, such as
https://example.com/. Ensure the target is not an empty string or malformed value. - cURL transport failure or timeout: distinguish a local network/TLS/DNS issue from an API error by checking whether
curl_exec()returnedfalse. Set a reasonable timeout for your application and retry only transient failures, with a limit to avoid duplicate usage. - Non-image response saved with an image extension: inspect HTTP status and content type before writing. Store or display an error path separately instead of returning the body as PNG.
Choose a plan for the workload
Screenshotlayer’s pricing page, accessed 2026-10-03, lists the following USD prices and quotas. The provider says the free plan is for non-commercial use and paid tiers include commercial use. Prices and included features can change; confirm the plan page and terms before purchase.
| Plan | Price listed | Monthly snapshots | Listed features relevant to selection |
|---|---|---|---|
| Free | USD 0 per month | 100 | Non-commercial use |
| Basic | USD 19.99 monthly or USD 215.99 yearly | 10,000 | Commercial use, Retina/2x and WebP support, 10 dedicated workers |
| Professional | USD 59.99 monthly or USD 629.99 yearly | 30,000 | 20 dedicated workers; FTP/S3 export options |
| Enterprise | USD 149.99 monthly or USD 1,529.99 yearly | 75,000 | 40 dedicated workers; FTP/S3 export options |
Compare the plans against your expected monthly captures, whether the use is commercial, whether Retina/2x or WebP is needed, how much concurrent work dedicated workers must handle, and whether exports to FTP or S3 matter. Compare annual and monthly billing on the live pricing page rather than assuming that annual billing is a fixed discount.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
What Indian developers should verify
The provider’s published prices are in USD. Its FAQ lists Visa, MasterCard, Discover, and Diners Club, but does not establish whether a particular Indian-issued card will work. The reviewed provider pages also do not establish INR billing, local tax treatment, or India-specific API behavior. Check the currency and final amount shown at account checkout, and ask Screenshotlayer about billing and tax details for your situation. Do not assume that the listed USD price is the final amount charged in India.
Or skip the browser setup
If you want a screenshot API with a one-call request, ScreenshotNeo is an alternative. This cURL call returns a WebP screenshot for the target URL; the ScreenshotNeo API documentation covers parameters and response handling.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Repair Windows errors before they cause bigger problems3Scan for outdated or missing drivers - takes under a minuteBest Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000.
Sign up for ScreenshotNeo’s free plan.
Frequently Asked Questions
Does Screenshotlayer return PNG by default?
Yes. Its API specification documents PNG as the default and also describes JPEG and GIF output.
Can I use the Screenshotlayer free plan for a commercial PHP application?
The provider’s pricing page describes the free tier as non-commercial use; check its live plan terms for your intended deployment.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




