ScreenshotAPI.net API

Development / API Key Intermediate HTTPS CORS
Varies by plan (check documentation)

Overview

ScreenshotAPI.net is a developer-friendly API for generating pixel-perfect screenshots of any website, supporting custom viewport sizes, full-page capture, and mobile device emulation. Pass your API token and a target URL to receive a hosted screenshot image or a direct download link. A free tier is available for low-volume usage.

💡

Beginner Tip

Use the output=image parameter to receive the screenshot directly in the response, or output=json to get a hosted URL you can store and share. The JSON mode is more convenient when building web applications.

Available Data

ScreenshotAPI.net data via REST API
JSON-formatted response data
Requires API key authentication

Example Response

JSON Response
{
  "id": "Dwu85P9SOIk",
  "urls": {
    "full": "https://images.unsplash.com/photo-...",
    "regular": "https://images.unsplash.com/photo-...?w=1080",
    "thumb": "https://images.unsplash.com/photo-...?w=200"
  },
  "width": 4000,
  "height": 3000,
  "user": {
    "name": "John Doe",
    "username": "johndoe"
  }
}

Field Reference

screenshot URL of the hosted screenshot image (available in JSON output mode).
created ISO 8601 timestamp of when the screenshot was created.
url The original target URL that was captured.
is_fresh Whether the screenshot was freshly captured or served from cache.

Implementation Example

const url = "https://screenshotapi.net/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Invalid token The token query parameter is missing or incorrect
Get your API token from the ScreenshotAPI.net dashboard and include it as the token parameter in every request.
Screenshot shows error page The target URL is invalid, private, or returns an error itself
Verify the URL is publicly accessible. Test with a known URL like https://example.com to confirm your setup is correct.
Slow response time The target website is heavy or the full_page option is capturing a very long page
Set a specific height and width to limit capture area. Use delay parameter only when necessary as it increases processing time.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 2/20
🔒 Security 15/15
🛠 Developer XP 17/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS YES
Category Development
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →