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

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

Restpack data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "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

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://restpack.io/api/screenshot/v7/capture?url=https://example.com&access_token=YOUR_API_KEY";
// 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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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

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 UNKNOWN
Difficulty Intermediate
Listing details not endpoint-verified

Similar APIs

View All →