Screenshot API: Capture Any URL as PNG, JPEG, WebP or PDF

Screenshot API with one HTTP call: real Chrome, full-page and mobile captures, ad and cookie banner blocking, CDN links, SDKs for 6 languages. 150 free a month.

By Simon Chiu · Updated

RenderScreenshot is a screenshot API: send a URL, get back an image of the page. The API loads the page in real Chrome at the size you ask for, waits for it to finish, and returns a PNG, JPEG, WebP or PDF, plus a CDN link you can share.

curl "https://api.renderscreenshot.com/v1/screenshot?url=https://example.com&width=1280&height=800&block_cookies=true" \
  -H "Authorization: Bearer $RS_API_KEY" \
  -o screenshot.png

That is the whole integration. There is no browser to install, patch or keep alive. Get a free API key and run the command: the Free plan gives you 150 screenshots a month, and no credit card is needed.

What you can capture

You want Parameters
A viewport screenshot url, width, height
The full page, top to bottom full_page=true (guide)
A phone or tablet view device=iphone_14_pro (device list)
A retina image scale=2 (guide)
No cookie banners or ads block_cookies=true, block_ads=true (guide)
One element only capture.mode: element with a CSS selector (guide)
Dark mode dark_mode=true (guide)
A social card (1200×630) preset=og_card (OG image API)
A PDF of the page format=pdf (HTML to PDF API)
An image of your own HTML html instead of url (HTML to image API)

Every option is in the GET endpoint reference. Use the POST endpoint for nested JSON options and long HTML.

Each response has an X-Cache-URL header: a public CDN link to the image. Store it, put it in an <img> tag, send it to a vision model or drop it into a spreadsheet. You do not have to host the file yourself (X-Cache-URL guide).

To render on demand from HTML, for example in an og:image tag, use a signed URL. It carries a signature and an expiry instead of your secret key, so it is safe in public pages.

Code

The official SDKs build the request for you. Node.js, Python, Ruby, PHP, Go and Java are on the SDK overview.

// Node.js 20+: npm install renderscreenshot
import { writeFile } from 'node:fs/promises';
import { Client, TakeOptions } from 'renderscreenshot';

const client = new Client(process.env.RS_API_KEY);
const image = await client.take(
  TakeOptions.url('https://example.com').width(1280).height(800).format('png')
);
await writeFile('screenshot.png', image);
# Python 3.9+: pip install renderscreenshot
import os
from renderscreenshot import Client, TakeOptions

client = Client(os.environ['RS_API_KEY'])
image = client.take(TakeOptions.url('https://example.com').preset('og_card'))
with open('screenshot.png', 'wb') as f:
    f.write(image)

Framework pages show where the call goes and how to cache the result. They are listed at the end of this page.

Built for production

  • Many URLs at once. The batch endpoint takes a list of URLs in one request.
  • Background jobs. Send the request asynchronously and get a webhook when the image is ready.
  • Your own storage. Upload each image to your S3 or R2 bucket.
  • Caching. Identical requests reuse the stored image. Set the TTL from 1 hour to 30 days, and invalidate when the page changes.
  • Teams. Workspaces keep keys, usage and storage apart for each project or client.
  • No-code. Use the API from Zapier, Make, n8n or an AI agent.

Pricing

One successful screenshot is one credit, whatever the size or format. Failed screenshots are free (credits and billing).

Plan Screenshots per month Price
Free 150 $0, no credit card
Starter 2,500 $10
Growth 12,000 $40
Scale 60,000 $100

The pricing page has the full plan details. Moving from another service? See the screenshot API alternatives and the migration guides for ScreenshotOne and Urlbox.

When you do not need a screenshot API

  • You take a few screenshots a day in an app that already runs Chrome. A local Puppeteer or Playwright call is enough. See how to take website screenshots.
  • You want a screenshot of your own screen, not of a web page. Use the screenshot tool of your operating system.

For everything else, get a free API key and send your first request.

Screenshot API by language and framework

Frequently asked questions

What is a screenshot API?
A screenshot API is a web service that opens a URL in a real browser and returns an image of the page. You send one HTTP request with the URL and options such as width or full page, and you get back a PNG, JPEG, WebP or PDF. You do not install or run Chrome yourself.
Is there a free screenshot API?
Yes. The RenderScreenshot Free plan gives you 150 screenshots a month with no credit card. Failed renders do not use credits, and an identical request served from cache can cost 0 credits with cache_available.
Can it take full-page screenshots?
Yes. Set full_page=true (GET) or capture.mode to full_page (POST). The API scrolls the page so lazy-loaded images load before the capture.
How do I screenshot a site with cookie banners or ads?
Set block_cookies=true and block_ads=true. The renderer blocks known ad and consent-banner scripts before the page loads. For a banner it does not know, pass its CSS selector in remove.
Can I use the screenshot in an img tag without exposing my API key?
Yes. Use a signed URL, which carries an HMAC signature and an expiry instead of your secret key, or store the X-Cache-URL link that every response returns. Both are public CDN links.
Do I need an SDK?
No. The API is plain HTTPS, so curl or any HTTP client works. Official SDKs for Node.js, Python, Ruby, PHP, Go and Java build the request and turn errors into exceptions.

Related in this topic

Try RenderScreenshot free

150 free credits every month, no credit card required.