Documentation
The image URL contains all of the parameters necessary to generate a screenshot.
https://api.pagesnap.app/v1/apikey/token/url.png?url=url
https://api.pagesnap.app/v1/apikey/token/url.jpeg?url=url
Required parameters
url
- The URL of the page to screenshot
apikey
- Your unique API key
token
- An access token which is generated using your API secret.
Optional parameters
fullPage
- Set to
true
to capture the full page (default: "false") width
- Limit the maximum width of the image. This allows you to scale it down to thumbnail size
quality
- Set the JPEG encoding quality level from 0-100 (default: 80)
delay
- Number of seconds to wait before capturing the screenshot
ttl
- Number of seconds to cache the image (default: "3600")
emulate
- Emulate a device type. This sets the viewport and user-agent of the client. See the list of known devices.
viewport
- Set the browser viewport. WxH. (default: "800x600")
userAgent
- Override the User-Agent that's used to load the target page
lang
- Specify a value for Accept-Language