๐ What is peekabooo?
peekabooo is a lightweight screenshot API. You send a URL, and we respond with a crisp .png of the page. No UI wrappers, just cold-blooded rendering under the hood.
โ๏ธ How to Use
Make a GET request like this:
https://peekabooo.vercel.app/screenshot?url=https://github.com/victoryosiobe/peekabooo&width=1280&height=720
๐งพ Query Parameters
| Name | Type | Default | Description |
|---|---|---|---|
url |
string | required | The full URL of the page to screenshot |
width |
number | 1280 | Viewport width in pixels |
height |
number | 720 | Viewport height in pixels |
fullPage |
boolean | false |
Set to true to capture the full page height, not just
the viewport
|
๐ฅ JavaScript Example
fetch("https://peekabooo.vercel.app/screenshot?url=https://github.com/victoryosiobe/peekabooo&fullPage=true")
.then(res => res.blob())
.then(blob => {
const img = document.createElement("img");
img.src = URL.createObjectURL(blob);
document.body.appendChild(img);
});
๐ฆ What You Get
A raw .png image. Save it, embed it, build link previews
with it; whatever you need.