YepAPI

Command Palette

Search for a command to run...

POST/v1/scrape/screenshot

Screenshot API

Capture pixel-perfect screenshots of any webpage via API. Full-page or viewport with configurable dimensions. PNG output from $0.02/call.

Capture screenshots of any URL with a headless browser. Get viewport or full-page screenshots with configurable dimensions. Returns a base64-encoded PNG image.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/scrape/screenshot
Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "url": "https://example.com",
    "image": "iVBORw0KGgoAAAANSUhEUgAA...(base64 PNG)",
    "width": 1920,
    "height": 1080
  }
}

Features

Viewport or full-page screenshots

Capture just the visible viewport or the entire scrollable page with a single `fullPage` toggle. Full-page mode grabs everything below the fold, from hero to footer, in one image.

Configurable width and height

Set the viewport width and height in pixels to render the page at any resolution — a 1920×1080 desktop view, a narrow mobile width, or a custom canvas. Control exactly how the layout is composed before capture.

Full JavaScript rendering

Pages load in a real headless browser with JavaScript executed, so the screenshot reflects the final rendered layout — including content built client-side, not an empty pre-render shell.

Returns base64-encoded PNG

The response contains a base64-encoded PNG you can decode and save, embed inline, or upload to storage directly. No binary file handling or follow-up download request needed.

Automatic proxy rotation

Capture requests route through rotating proxies automatically, helping you screenshot sites reliably without tripping IP-based rate limits. No proxy setup on your side.

Use cases

Visual Regression Testing

Capture screenshots of your pages to detect unintended visual changes during development and deployment.

OG Image Generation

Generate dynamic Open Graph preview images by screenshotting custom HTML pages or templates.

Competitor Monitoring

Take periodic screenshots of competitor websites to track design changes, promotions, and A/B tests.

Link Previews

Generate thumbnail previews for URLs shared in your app, chat tool, or bookmarking service.

Archival & Compliance

Capture and archive webpage snapshots for legal compliance, audit trails, or historical records.

Quick start

Copy this snippet and start making calls.

const res = await fetch('https://api.yepapi.com/v1/scrape/screenshot', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "url": "https://example.com",
    "fullPage": false,
    "width": 1920,
    "height": 1080
  }),
});
const data = await res.json();
console.log(data);

Screenshot API for pixel-perfect webpage captures

The YepAPI Screenshot API captures a pixel-perfect image of any webpage with a single POST request. Send a URL, choose viewport or full-page mode, set the dimensions, and get back a base64-encoded PNG of the fully rendered page. A real headless browser executes the page's JavaScript first, so the capture reflects what a user actually sees — not an empty pre-render.

Use it for visual regression testing, dynamic Open Graph images, link-preview thumbnails, and webpage archival. Because rendering runs on our infrastructure with automatic proxy rotation, you don't maintain a browser fleet or a proxy pool. For extracting page text or data instead of an image, see the Web Scraping API or Data Extraction API.

What is a screenshot API?

A screenshot API renders a webpage in a server-side headless browser and returns an image of it, controlled entirely through an HTTP request. You provide a URL and options like dimensions and whether to capture the full page, and the API loads the page, runs its JavaScript, and hands back a PNG. This removes the need to install and operate Puppeteer or Playwright, manage Chrome instances, and scale a rendering fleet yourself — all of which are heavy to run reliably in production. Screenshot APIs power visual testing, automated Open Graph and social preview images, URL thumbnails, and compliance archiving, anywhere a program needs a faithful picture of how a page looks rather than its underlying text.

Build your own screenshot tool

With one endpoint you can generate dynamic OG images by screenshotting a templated HTML page, build link previews for URLs shared in your app or chat tool, run visual regression checks that flag unintended UI changes between deploys, or archive page snapshots for audit and compliance. Toggle `fullPage` to capture entire scrollable pages, set custom width and height to test responsive breakpoints, and decode the returned base64 PNG straight to storage or an image tag. No headless browser to host, patch, or scale.

Screenshot API pricing — from $0.02 per call

Each screenshot costs $0.02 per call with no monthly minimum and no subscription. ScrapingBee charges around $0.025 per screenshot behind a $49/month minimum, dedicated services like ScreenshotAPI start at $29/month, and Urlbox at $39/month. With YepAPI you pay per capture and nothing else, so a low-volume OG-image use case costs cents per month while high-volume testing scales linearly with usage.

Full JavaScript rendering for accurate captures

A screenshot is only useful if it matches what users see, which means the page must be fully rendered first. This endpoint runs every capture through a real headless browser that executes JavaScript, so client-rendered content, dynamic layouts, and lazy-loaded elements all appear in the image — not the blank shell that naive screenshot tools capture. Combined with configurable viewport dimensions, you get faithful captures at exactly the resolution your use case needs.

Try the Screenshot API free

Sign up for $5 in free credit with no credit card required — enough for 250 screenshot calls. Capture your own pages at different dimensions, test full-page mode, and inspect the PNG output before spending anything.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Capture screenshots of any URL with a headless browser. Get viewport or full-page screenshots with configurable dimensions. Returns a base64-encoded PNG image.

Each API call costs $0.02. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/scrape/screenshot. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More web scraping endpoints