API Documentation

All APIs are free to use with generous limits. No API key required. Just send a request.

๐Ÿ“– Table of Contents

๐Ÿ“ธ Screenshot API

Capture any website as a PNG, JPEG, or WebP image. Perfect for thumbnails, previews, social cards, and automated testing.

Base URL: https://api.pandan.is

Free tier: 100 requests/month โ€” no API key needed.

GET /v1/screenshot

ParameterTypeDescription
url requiredstringURL to capture
width optionalintegerViewport width (default: 1280, max: 3840)
height optionalintegerViewport height (default: 800)
fullPage optionalbooleanCapture entire scrollable page
delay optionalintegerWait time in ms before capture (max: 10000)
format optionalstringOutput: png, jpeg, webp (default: png)
# Capture a screenshot
curl "https://api.pandan.is/v1/screenshot?url=https://example.com" -o screenshot.png

# Full page, custom size
curl "https://api.pandan.is/v1/screenshot?url=https://github.com&fullPage=true&width=1920" -o github.png

# JPEG format with delay
curl "https://api.pandan.is/v1/screenshot?url=https://news.ycombinator.com&format=jpeg&delay=2000" -o hn.jpg

๐Ÿงช Try it live


GET /v1/pdf

ParameterTypeDescription
url requiredstringURL to convert to PDF
format optionalstringPage format: A4, Letter, Legal
curl "https://api.pandan.is/v1/pdf?url=https://example.com" -o page.pdf

๐Ÿ”ฒ QR Code API

Generate QR codes in PNG or SVG format with custom colors and sizes. Free tier: 200 requests/month.

Base URL: https://qr.pandan.is

GET /v1/qr

ParameterTypeDescription
data requiredstringText or URL to encode
size optionalintegerSize in pixels (default: 300, max: 2000)
format optionalstringOutput: png or svg (default: png)
color optionalstringQR color hex without # (default: 000000)
bg optionalstringBackground hex without # (default: ffffff)
# Simple QR code
curl "https://qr.pandan.is/v1/qr?data=https://example.com" -o qr.png

# Custom colors, SVG
curl "https://qr.pandan.is/v1/qr?data=Hello%20World&format=svg&color=7b2ff7" -o qr.svg

# Large QR, base64 response
curl "https://qr.pandan.is/v1/qr/base64?data=https://example.com&size=500"

๐Ÿงช Try it live


Shorten URLs with custom codes and click tracking. Free tier: 50 links/month.

Base URL: https://s.pandan.is

POST /api/shorten

ParameterTypeDescription
url requiredstringURL to shorten
code optionalstringCustom short code
# Shorten a URL
curl -X POST "https://s.pandan.is/api/shorten" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/very/long/url"}'

# With custom code
curl -X POST "https://s.pandan.is/api/shorten" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com", "code": "demo"}'

๐Ÿ–ผ๏ธ OG Image API

Generate dynamic Open Graph images for social media. Completely free, no limits.

Base URL: https://og.pandan.is

GET /v1/og

ParameterTypeDescription
title requiredstringMain title text
subtitle optionalstringSubtitle text
color optionalstringAccent color (hex with #)
# Use directly in HTML meta tags
<meta property="og:image" content="https://og.pandan.is/v1/og?title=My%20Blog%20Post&subtitle=A%20great%20article&color=%237b2ff7">

๐Ÿงช Try it live


๐Ÿ“‹ OpenAPI Specifications

Download machine-readable API specs for integration with tools like Postman, Insomnia, or Swagger UI: