ScreenshottyScreenshotty
FeaturesDocumentationPricingBlog
Ruby SDK-free

The Screenshot API for Ruby

Capture pixel-perfect screenshots from Ruby with a single HTTP request — no headless browser, drivers, or browser binaries to maintain.

Running your own headless Chrome for screenshots means managing browser binaries, memory spikes, zombie processes, and constant version churn. From Ruby, Screenshotty replaces all of it with one HTTPS call: send the URL and options, get the image back.

Plain Net::HTTP from a Rails job or a Sinatra route — no Ferrum, Watir, or Chrome dependencies in your Gemfile.

Try it without code — free Website Screenshot tool
Ruby (Net::HTTP)
require "net/http"
require "json"
uri = URI("https://api.screenshotty.link/api/v1/screenshot")
request = Net::HTTP::Post.new(uri)
request["X-Api-Key"] = ENV["SCREENSHOTTY_API_KEY"]
request["Content-Type"] = "application/json"
request.body = {
url: "https://example.com",
format: "image/png",
full_page: true,
block_cookie_banner: true,
}.to_json
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(request)
end
File.binwrite("screenshot.png", response.body)

Everything You Need, Built In

One HTTP request

Any HTTP client works. GET with query params for simple captures, POST with JSON for complex ones.

Full rendering engine

Real Chrome rendering with full-page capture, custom viewports up to 4K, dark mode, and CSS-selector cropping.

Clean captures

Built-in ad blocking and cookie-banner blocking — no injected cleanup scripts to maintain.

Production-ready

Webhooks for async jobs, geo-targeted captures from multiple countries, and PDF/WebP/PNG/JPEG output.

Frequently Asked Questions

How do I take a website screenshot in Ruby?

Send an HTTP POST to https://api.screenshotty.link/api/v1/screenshot with the target url and your options, using your API key in the X-Api-Key header. The response body is the image itself — write it to disk or pipe it onward. No browser automation library is required.

Do I need Puppeteer, Playwright, or Selenium in Ruby?

No. The rendering happens on Screenshotty's managed Chrome fleet, so your Ruby app only makes an HTTP request. That removes browser binaries from your deployments and the operational work of scaling headless Chrome.

Can I capture the full page or just one element?

Both. full_page=true captures the entire scrollable page (use scroll_to_bottom for lazy-loaded content), or pass a CSS selector to capture a single element.

Is there a free tier?

Yes. 100 screenshots per month free, no credit card required. Paid plans start at $9/month for 2,500 screenshots with $0.004 pay-as-you-go overage.

Start Capturing in Minutes

100 free screenshots per month. No credit card required.

ScreenshottyScreenshotty

Most cost-effective Screenshot API

Product

  • Features
  • Pricing
  • Documentation
  • Blog
  • Compare
  • Alternatives

Free Tools

  • Website Screenshot Tool
  • Website Responsivity Check
  • Website Text Extractor
  • Website to PDF Converter
  • Website Markdown Converter
  • All Free Tools

Developers

  • Python Screenshot API
  • Node.js Screenshot API
  • PHP Screenshot API
  • Full Page Screenshots
  • URL to PDF API
  • API Parameters
  • MCP Server

Legal

  • Privacy Policy
  • Terms of Service

© 2026 Screenshotty. All rights reserved.