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

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

Request
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.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

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

Related Tags

Similar APIs

View All →