Skip to content

Playground

Set up a capture with every option the API has, copy it as cURL, JSON, code or a prompt for your AI assistant, and take a real screenshot to see the result.

Page

The protocol is optional, pages always load over https.

Costs 1 credit

Output

What comes back, and how much of the page it covers.

Host the image on the CDN and return its link. Set it to false to get the image only as base64, for 0.25 credits.

Capture the whole scrollable page instead of just the viewport.

Viewport and device

The size of the browser window and the device the page thinks it runs on.

Quick sizes

Viewport width in pixels, up to 10000.

px

Viewport height in pixels, up to 10000.

px

Present the browser as a touch device.

The color scheme the page sees, for sites with a dark mode.

Nothing is forced, the page sees the browser default.

Timing

When the capture happens, and what moving parts look like.

Which loading step to wait for before capturing.

The load event fired, so the page and its images, styles and scripts are in.

Extra time to wait before the capture, in milliseconds, up to 60000.

ms

Set it to false to freeze CSS animations and transitions during the capture.

Page behavior

What the browser lets the page do while it loads.

Let the page register service workers.

Ignore the page Content Security Policy, which some custom scripts and styles need.

Load the page with the network switched off.

Request and identity

How the browser presents itself to the site.

A custom user agent, for example a mobile browser.

The language and region the page sees, such as en-US or de-DE.

The referer sent with the page request.

Extra request headers sent with every request of the page, up to 50.

Custom code

Your own JavaScript and CSS, added right before the capture.

JavaScript added to the page right before the capture.

CSS added to the page right before the capture.

Result

Your screenshot shows up here

Press Take screenshot to run this exact request on your account.

Request

Updates as you change the options. The code reads your token from the URL2IMAGE_TOKEN environment variable.

Include defaults
Terminal
curl -X POST https://url2image.modulify.website/api/screenshots/create \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "token": "YOUR_API_TOKEN",
    "options": {}
  }'
Made with Modulify