Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RenderShot Screenshot — GitHub Action

Capture a website screenshot (PNG / JPEG / WebP) in any GitHub workflow and save it as a file. Powered by the RenderShot screenshot & PDF API — no local Chromium, no browser maintenance.

Quick start

  1. Subscribe (free plan available) on RapidAPI and copy your RapidAPI key.
  2. Add it as a repository secret named RENDERSHOT_API_KEY.
  3. Use the action:

Requests go through the RapidAPI gateway, so usage counts against your RapidAPI plan (RapidAPI handles billing and quota).

- name: Capture screenshot
  uses: edubraqd/rendershot-action@v1
  with:
    api-key: ${{ secrets.RENDERSHOT_API_KEY }}
    url: https://example.com
    output: screenshot.webp
    type: webp
    full-page: true

Full example

name: Preview
on: [workflow_dispatch]
jobs:
  shot:
    runs-on: ubuntu-latest
    steps:
      - uses: edubraqd/rendershot-action@v1
        with:
          api-key: ${{ secrets.RENDERSHOT_API_KEY }}
          url: https://stripe.com
          output: preview.webp
          type: webp
          full-page: true
          device: iphone_15
          dark-mode: true
          block-cookie-banners: true
      - uses: actions/upload-artifact@v4
        with:
          name: preview
          path: preview.webp

Inputs

Input Required Default Description
api-key yes Your RapidAPI key (X-RapidAPI-Key). Use a secret.
url yes Page to capture.
output no screenshot.png File path to write.
type no png png, jpeg or webp.
full-page no true Capture the full scrollable page.
device no Device preset: iphone_15, iphone_se, pixel_7, galaxy_s9, ipad, ipad_pro.
wait-for-selector no Wait for a CSS selector before capturing.
delay no Extra wait in ms.
dark-mode no false Emulate dark color scheme.
block-ads no false Block ad/tracker requests.
block-cookie-banners no true Hide cookie/consent banners.
rapidapi-host no screenshot-e-pdf-render.p.rapidapi.com RapidAPI gateway host.

Notes

  • Calls go through the RapidAPI gateway (https://screenshot-e-pdf-render.p.rapidapi.com), so billing and quota stay on RapidAPI.
  • The API key is masked in logs (::add-mask::) and all inputs are passed via environment variables (no shell injection).
  • Inputs are validated; non-2xx responses fail the step with a readable error.
  • Quotas and rate limits follow your RapidAPI plan.

Links

License

MIT — see LICENSE.

About

Capture website screenshots (PNG/JPEG/WebP) in any GitHub workflow — no local Chromium. Powered by the RenderShot API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors