Screenshot API for Ruby
Capturing website screenshots from Ruby usually means running and scaling a headless browser yourself. With Snapraven you skip all of that — fetch a screenshot in Ruby with net/http — no gems required.
What you can build with Ruby
Generate link previews in a Rails app, attach captured images to records with Active Storage, or run a Rake task that archives the sites you track — using `net/http`, no extra gem needed.
Example in Ruby
require 'net/http'
uri = URI('https://api.snapraven.app/v1/screenshot')
uri.query = URI.encode_www_form(url: target)
png = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
http.get(uri, 'x-api-key' => KEY).body
end
That's the entire integration. Snapraven renders the page in a real Chromium browser and
returns a PNG or JPEG. Add fullPage=true
for the full scrollable page, or width/height for custom viewports.
💡 Tip for Ruby
In Rails, run the capture inside an Active Job (Sidekiq) and persist the result with Active Storage so requests aren’t blocked on the render.
Why developers use Snapraven with Ruby
- ✓ No headless Chrome to install, run, or scale.
- ✓ A single HTTP request — works anywhere Ruby can make a fetch.
- ✓ Full-page capture, custom viewport, PNG or JPEG.
- ✓ Free tier with 100 requests per month to start.
Ruby screenshot API — FAQ
How does this fit Rails?
Call it from an Active Job and store the image with Active Storage, attaching it to the relevant model.
Do I need a gem?
No — the standard-library `net/http` is enough. Use Faraday/HTTParty only if you already prefer them.
Other guides
Not a developer? Capture screenshots with no code in the dashboard — paste URLs and download a ZIP.