๐ 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:
url
โ the webpage to capture (required)-
width
โ browser viewport width (optional, default: 1280) -
height
โ browser viewport height (optional, default: 720)
๐ฅ JavaScript Example:
fetch("https://peekabooo.vercel.app/screenshot?url=https://github.com/victoryosiobe/peekabooo")
.then(res => res.blob())
.then(blob => {
const img = document.createElement("img");
img.src = URL.createObjectURL(blob);
document.body.appendChild(img);
});
๐ฆ What You Get
You get a .png image back. Save it, use it in your blog, make a gallery of URL snaps โ it's yours.