Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • A rendered screenshot counts against the plan’s quota; results served from cache (cache=true) do not. GET /usage is free.
  • The answer is the image or PDF bytes by default (Content-Type by format); set response_type=json for a JSON answer. Errors are JSON with an error code and message.
  • Signed requests (a signature parameter) are optional unless signing enforcement is turned on for the key; this entry sends the key unsigned.
  • omit_background works only with png; webp and jpeg refuse it even as false.

Endpoints

Take a screenshot of a URL

  • Uses one render from the quota unless served from cache.
  • Over 30 seconds of delay is only allowed for async requests with a longer timeout.

Take a screenshot from a JSON body

  • A read over POST. Body limit 100 MiB; for very large HTML host it and pass url instead.
  • Uses one render from the quota unless served from cache.

Get quota usage

  • Free; a 400 with error_code access_key_invalid means the key is wrong. concurrency.reset is a UNIX time in nanoseconds.