Restpack API

Varies by plan (check documentation)

Overview

Restpack is a powerful API suite that lets you capture screenshots of websites, convert HTML to PDF, and extract content from web pages. It handles complex JavaScript-rendered pages and returns high-quality results. Ideal for automating document generation and web archiving workflows.

💡

Beginner Tip

Start with a simple screenshot request using a public URL to verify your API key is working before building more complex workflows. Check the response status field first — non-200 values indicate the target page failed to load.

Available Data

Restpack 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

url The URL of the captured page after following any redirects
image Base64-encoded PNG image data of the screenshot
width Pixel width of the captured screenshot
height Pixel height of the captured screenshot
status HTTP status code returned by the target page

Implementation Example

const url = "https://restpack.io/";
// 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

Invalid API key Passing the API key as a header instead of query param, or using a revoked key
Use access_token=YOUR_API_KEY as a query parameter in the URL
Page timeout The target URL takes too long to load or is behind authentication
Add &delay=3000 to give the page more time, and ensure the URL is publicly accessible
402 Payment Required Free tier monthly quota exceeded
Upgrade your plan or wait for the quota to reset on the 1st of next month

Matrix Score Breakdown

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

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →