Skip to content
shotsmith
Features Docs Guides Pricing Changelog Sign inStart free

Screenshots

One request to /v1/take returns an image of the page. By default that’s a JPG of a 1280 × 1024 browser window. Set format to png, webp, avif, gif, tiff, heif or jp2 for other image types. PDFs and HTML and Markdown have their own guides.

The whole page, on a phone

viewport_device sets the window size, pixel density, touch and user agent of a real device. full_page captures the whole scrollable page instead of just the window.

// npm install @shotsmith/sdk
import { Shotsmith, TakeOptions } from '@shotsmith/sdk';
import { writeFile } from 'node:fs/promises';

const shotsmith = new Shotsmith({
  accessKey: 'YOUR_ACCESS_KEY',
});

const options = TakeOptions.url('https://shotsmith.dev/sample')
  .viewportDevice('iphone_15_pro')
  .fullPage()
  .format('jpg');

await writeFile('capture.jpg', await shotsmith.take(options));
<?php

// composer require shotsmith/shotsmith-php
require 'vendor/autoload.php';

use Shotsmith\Client;
use Shotsmith\Options\TakeOptions;

$shotsmith = new Client('YOUR_ACCESS_KEY');

$options = TakeOptions::url('https://shotsmith.dev/sample')
    ->viewportDevice('iphone_15_pro')
    ->fullPage()
    ->format('jpg');

file_put_contents('capture.jpg', $shotsmith->take($options));

// In Laravel: Shotsmith::take($options) with SHOTSMITH_ACCESS_KEY in .env
curl -G "https://shotsmith.dev/v1/take" \
  --data-urlencode "access_key=YOUR_ACCESS_KEY" \
  --data-urlencode "url=https://shotsmith.dev/sample" \
  --data-urlencode "viewport_device=iphone_15_pro" \
  --data-urlencode "full_page=true" \
  --data-urlencode "format=jpg" \
  -o capture.jpg
import { writeFile } from 'node:fs/promises';

const params = new URLSearchParams({
  access_key: 'YOUR_ACCESS_KEY',
  url: 'https://shotsmith.dev/sample',
  viewport_device: 'iphone_15_pro',
  full_page: 'true',
  format: 'jpg',
});

const res = await fetch(`https://shotsmith.dev/v1/take?${params}`);
if (!res.ok) throw new Error((await res.json()).error_message);

await writeFile('capture.jpg', Buffer.from(await res.arrayBuffer()));
import urllib.request
from urllib.parse import urlencode

params = {
    "access_key": "YOUR_ACCESS_KEY",
    "url": "https://shotsmith.dev/sample",
    "viewport_device": "iphone_15_pro",
    "full_page": "true",
    "format": "jpg"
}

url = "https://shotsmith.dev/v1/take?" + urlencode(params, doseq=True)

# Raises urllib.error.HTTPError on a 4xx/5xx response
with urllib.request.urlopen(url, timeout=120) as res, open("capture.jpg", "wb") as f:
    f.write(res.read())
<?php

$query = http_build_query([
    'access_key' => 'YOUR_ACCESS_KEY',
    'url' => 'https://shotsmith.dev/sample',
    'viewport_device' => 'iphone_15_pro',
    'full_page' => 'true',
    'format' => 'jpg',
], '', '&', PHP_QUERY_RFC3986);

$ch = curl_init('https://shotsmith.dev/v1/take?' . $query);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 120,
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status !== 200) {
    throw new RuntimeException(json_decode($body, true)['error_message'] ?? "HTTP {$status}");
}

file_put_contents('capture.jpg', $body);
package main

import (
	"io"
	"net/http"
	"os"
)

func main() {
	res, err := http.Get("https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&viewport_device=iphone_15_pro&full_page=true&format=jpg")
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	if res.StatusCode != http.StatusOK {
		body, _ := io.ReadAll(res.Body)
		panic(string(body))
	}

	out, err := os.Create("capture.jpg")
	if err != nil {
		panic(err)
	}
	defer out.Close()
	io.Copy(out, res.Body)
}
require "net/http"
require "uri"

uri = URI("https://shotsmith.dev/v1/take")
uri.query = URI.encode_www_form([
  ["access_key", "YOUR_ACCESS_KEY"],
  ["url", "https://shotsmith.dev/sample"],
  ["viewport_device", "iphone_15_pro"],
  ["full_page", "true"],
  ["format", "jpg"]
])

res = Net::HTTP.get_response(uri)
raise res.body unless res.is_a?(Net::HTTPSuccess)

File.binwrite("capture.jpg", res.body)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Path;

public class Capture {
    public static void main(String[] args) throws Exception {
        var client = HttpClient.newHttpClient();
        var request = HttpRequest.newBuilder(URI.create(
            "https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&viewport_device=iphone_15_pro&full_page=true&format=jpg"
        )).build();

        var res = client.send(request, HttpResponse.BodyHandlers.ofFile(Path.of("capture.jpg")));
        if (res.statusCode() != 200) {
            throw new RuntimeException("HTTP " + res.statusCode());
        }
    }
}
using System;
using System.IO;
using System.Net.Http;

using var http = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };

// Throws HttpRequestException on a 4xx/5xx response
var bytes = await http.GetByteArrayAsync(
    "https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&viewport_device=iphone_15_pro&full_page=true&format=jpg"
);

await File.WriteAllBytesAsync("capture.jpg", bytes);
<!-- Sign on your server: hmac_sha256(query_string, SECRET_KEY) -->
<img
  src="https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&viewport_device=iphone_15_pro&full_page=true&format=jpg&signature=1c1527f470eac4a5ec2057d044cbdadab2455fcf92b1c0f0629c6789ecae02e4"
  alt="Screenshot"
  loading="lazy">
Response 200 OK
Content-Type: image/jpeg
X-Capture-Id: 01m8kvpk6jsmeykdfs0wy6awbn
X-Cache: MISS
X-Render-Time: 5172
X-Quota-Limit: 15000
X-Quota-Remaining: 14998
X-RateLimit-Limit: 80
X-RateLimit-Remaining: 79
(the JPEG image, 1179 × 19,317: the whole page at the iPhone’s 3× pixel density)

One element or region

selector captures a single element, cropped to its box. Here it’s the sample page’s pricing section:

// npm install @shotsmith/sdk
import { Shotsmith, TakeOptions } from '@shotsmith/sdk';
import { writeFile } from 'node:fs/promises';

const shotsmith = new Shotsmith({
  accessKey: 'YOUR_ACCESS_KEY',
});

const options = TakeOptions.url('https://shotsmith.dev/sample')
  .selector('#pricing')
  .format('png');

await writeFile('capture.png', await shotsmith.take(options));
<?php

// composer require shotsmith/shotsmith-php
require 'vendor/autoload.php';

use Shotsmith\Client;
use Shotsmith\Options\TakeOptions;

$shotsmith = new Client('YOUR_ACCESS_KEY');

$options = TakeOptions::url('https://shotsmith.dev/sample')
    ->selector('#pricing')
    ->format('png');

file_put_contents('capture.png', $shotsmith->take($options));

// In Laravel: Shotsmith::take($options) with SHOTSMITH_ACCESS_KEY in .env
curl -G "https://shotsmith.dev/v1/take" \
  --data-urlencode "access_key=YOUR_ACCESS_KEY" \
  --data-urlencode "url=https://shotsmith.dev/sample" \
  --data-urlencode "selector=#pricing" \
  --data-urlencode "format=png" \
  -o capture.png
import { writeFile } from 'node:fs/promises';

const params = new URLSearchParams({
  access_key: 'YOUR_ACCESS_KEY',
  url: 'https://shotsmith.dev/sample',
  selector: '#pricing',
  format: 'png',
});

const res = await fetch(`https://shotsmith.dev/v1/take?${params}`);
if (!res.ok) throw new Error((await res.json()).error_message);

await writeFile('capture.png', Buffer.from(await res.arrayBuffer()));
import urllib.request
from urllib.parse import urlencode

params = {
    "access_key": "YOUR_ACCESS_KEY",
    "url": "https://shotsmith.dev/sample",
    "selector": "#pricing",
    "format": "png"
}

url = "https://shotsmith.dev/v1/take?" + urlencode(params, doseq=True)

# Raises urllib.error.HTTPError on a 4xx/5xx response
with urllib.request.urlopen(url, timeout=120) as res, open("capture.png", "wb") as f:
    f.write(res.read())
<?php

$query = http_build_query([
    'access_key' => 'YOUR_ACCESS_KEY',
    'url' => 'https://shotsmith.dev/sample',
    'selector' => '#pricing',
    'format' => 'png',
], '', '&', PHP_QUERY_RFC3986);

$ch = curl_init('https://shotsmith.dev/v1/take?' . $query);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 120,
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status !== 200) {
    throw new RuntimeException(json_decode($body, true)['error_message'] ?? "HTTP {$status}");
}

file_put_contents('capture.png', $body);
package main

import (
	"io"
	"net/http"
	"os"
)

func main() {
	res, err := http.Get("https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&selector=%23pricing&format=png")
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	if res.StatusCode != http.StatusOK {
		body, _ := io.ReadAll(res.Body)
		panic(string(body))
	}

	out, err := os.Create("capture.png")
	if err != nil {
		panic(err)
	}
	defer out.Close()
	io.Copy(out, res.Body)
}
require "net/http"
require "uri"

uri = URI("https://shotsmith.dev/v1/take")
uri.query = URI.encode_www_form([
  ["access_key", "YOUR_ACCESS_KEY"],
  ["url", "https://shotsmith.dev/sample"],
  ["selector", "#pricing"],
  ["format", "png"]
])

res = Net::HTTP.get_response(uri)
raise res.body unless res.is_a?(Net::HTTPSuccess)

File.binwrite("capture.png", res.body)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Path;

public class Capture {
    public static void main(String[] args) throws Exception {
        var client = HttpClient.newHttpClient();
        var request = HttpRequest.newBuilder(URI.create(
            "https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&selector=%23pricing&format=png"
        )).build();

        var res = client.send(request, HttpResponse.BodyHandlers.ofFile(Path.of("capture.png")));
        if (res.statusCode() != 200) {
            throw new RuntimeException("HTTP " + res.statusCode());
        }
    }
}
using System;
using System.IO;
using System.Net.Http;

using var http = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };

// Throws HttpRequestException on a 4xx/5xx response
var bytes = await http.GetByteArrayAsync(
    "https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&selector=%23pricing&format=png"
);

await File.WriteAllBytesAsync("capture.png", bytes);
Response 200 OK
Content-Type: image/png
X-Capture-Id: 01m8kvpk6jsmeykdfs0wy6awbn
X-Cache: MISS
X-Render-Time: 555
X-Quota-Limit: 15000
X-Quota-Remaining: 14998
X-RateLimit-Limit: 80
X-RateLimit-Remaining: 79
(the PNG image, 1072 × 483: just the pricing section)

If nothing matches the selector, the request fails rather than returning the wrong picture. You aren’t billed for it:

Response 400 Bad Request
Content-Type: application/json
{
  "is_successful": false,
  "error_code": "selector_not_found",
  "error_message": "selector \"#newsletter-signup\" was not found.",
  "documentation_url": "https://shotsmith.dev/docs/errors#selector_not_found"
}

What happens by default

A capture of a URL shows the page as a visitor would see it, minus the clutter, without you setting anything:

  • Cookie and consent banners are removed and chat widgets are hidden. Send block_cookie_banners=false or block_chats=false to keep them, for example to check your own consent banner.
  • Bot checks are handled automatically. If the page shows one, the render is retried once with stealth mode in the same request. Send stealth=true to use stealth from the start, or false to never use it.
  • Animations are skipped: pages are asked for their reduced-motion version (reduced_motion ), so heroes aren’t captured half drawn. Videos keep their motion.
  • Fonts and on-screen images finish loading before the capture, for up to 3 seconds.

Ads and trackers aren’t blocked unless you ask (block_ads , block_trackers ), because many news sites show an “ad blocker detected” wall instead of the page. HTML and Markdown you send are rendered exactly as written.

Clean, consistent shots

Pages are full of things that change between visits or hide the content. Remove them, and wait for what matters:

// npm install @shotsmith/sdk
import { Shotsmith, TakeOptions } from '@shotsmith/sdk';
import { writeFile } from 'node:fs/promises';

const shotsmith = new Shotsmith({
  accessKey: 'YOUR_ACCESS_KEY',
});

const options = TakeOptions.url('https://shotsmith.dev/sample')
  .darkMode()
  .blockCookieBanners()
  .blockAds()
  .hideSelectors('.promo-bar')
  .waitForSelector('#pricing')
  .format('png');

await writeFile('capture.png', await shotsmith.take(options));
<?php

// composer require shotsmith/shotsmith-php
require 'vendor/autoload.php';

use Shotsmith\Client;
use Shotsmith\Options\TakeOptions;

$shotsmith = new Client('YOUR_ACCESS_KEY');

$options = TakeOptions::url('https://shotsmith.dev/sample')
    ->darkMode()
    ->blockCookieBanners()
    ->blockAds()
    ->hideSelectors('.promo-bar')
    ->waitForSelector('#pricing')
    ->format('png');

file_put_contents('capture.png', $shotsmith->take($options));

// In Laravel: Shotsmith::take($options) with SHOTSMITH_ACCESS_KEY in .env
curl -G "https://shotsmith.dev/v1/take" \
  --data-urlencode "access_key=YOUR_ACCESS_KEY" \
  --data-urlencode "url=https://shotsmith.dev/sample" \
  --data-urlencode "dark_mode=true" \
  --data-urlencode "block_cookie_banners=true" \
  --data-urlencode "block_ads=true" \
  --data-urlencode "hide_selectors=.promo-bar" \
  --data-urlencode "wait_for_selector=#pricing" \
  --data-urlencode "format=png" \
  -o capture.png
import { writeFile } from 'node:fs/promises';

const params = new URLSearchParams({
  access_key: 'YOUR_ACCESS_KEY',
  url: 'https://shotsmith.dev/sample',
  dark_mode: 'true',
  block_cookie_banners: 'true',
  block_ads: 'true',
  wait_for_selector: '#pricing',
  format: 'png',
});
params.append('hide_selectors', '.promo-bar');

const res = await fetch(`https://shotsmith.dev/v1/take?${params}`);
if (!res.ok) throw new Error((await res.json()).error_message);

await writeFile('capture.png', Buffer.from(await res.arrayBuffer()));
import urllib.request
from urllib.parse import urlencode

params = {
    "access_key": "YOUR_ACCESS_KEY",
    "url": "https://shotsmith.dev/sample",
    "dark_mode": "true",
    "block_cookie_banners": "true",
    "block_ads": "true",
    "hide_selectors": [".promo-bar"],
    "wait_for_selector": "#pricing",
    "format": "png"
}

url = "https://shotsmith.dev/v1/take?" + urlencode(params, doseq=True)

# Raises urllib.error.HTTPError on a 4xx/5xx response
with urllib.request.urlopen(url, timeout=120) as res, open("capture.png", "wb") as f:
    f.write(res.read())
<?php

$query = http_build_query([
    'access_key' => 'YOUR_ACCESS_KEY',
    'url' => 'https://shotsmith.dev/sample',
    'dark_mode' => 'true',
    'block_cookie_banners' => 'true',
    'block_ads' => 'true',
    'hide_selectors' => ['.promo-bar'],
    'wait_for_selector' => '#pricing',
    'format' => 'png',
], '', '&', PHP_QUERY_RFC3986);

$ch = curl_init('https://shotsmith.dev/v1/take?' . $query);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 120,
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

if ($status !== 200) {
    throw new RuntimeException(json_decode($body, true)['error_message'] ?? "HTTP {$status}");
}

file_put_contents('capture.png', $body);
package main

import (
	"io"
	"net/http"
	"os"
)

func main() {
	res, err := http.Get("https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&dark_mode=true&block_cookie_banners=true&block_ads=true&hide_selectors=.promo-bar&wait_for_selector=%23pricing&format=png")
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	if res.StatusCode != http.StatusOK {
		body, _ := io.ReadAll(res.Body)
		panic(string(body))
	}

	out, err := os.Create("capture.png")
	if err != nil {
		panic(err)
	}
	defer out.Close()
	io.Copy(out, res.Body)
}
require "net/http"
require "uri"

uri = URI("https://shotsmith.dev/v1/take")
uri.query = URI.encode_www_form([
  ["access_key", "YOUR_ACCESS_KEY"],
  ["url", "https://shotsmith.dev/sample"],
  ["dark_mode", "true"],
  ["block_cookie_banners", "true"],
  ["block_ads", "true"],
  ["hide_selectors", ".promo-bar"],
  ["wait_for_selector", "#pricing"],
  ["format", "png"]
])

res = Net::HTTP.get_response(uri)
raise res.body unless res.is_a?(Net::HTTPSuccess)

File.binwrite("capture.png", res.body)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Path;

public class Capture {
    public static void main(String[] args) throws Exception {
        var client = HttpClient.newHttpClient();
        var request = HttpRequest.newBuilder(URI.create(
            "https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&dark_mode=true&block_cookie_banners=true&block_ads=true&hide_selectors=.promo-bar&wait_for_selector=%23pricing&format=png"
        )).build();

        var res = client.send(request, HttpResponse.BodyHandlers.ofFile(Path.of("capture.png")));
        if (res.statusCode() != 200) {
            throw new RuntimeException("HTTP " + res.statusCode());
        }
    }
}
using System;
using System.IO;
using System.Net.Http;

using var http = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };

// Throws HttpRequestException on a 4xx/5xx response
var bytes = await http.GetByteArrayAsync(
    "https://shotsmith.dev/v1/take?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fshotsmith.dev%2Fsample&dark_mode=true&block_cookie_banners=true&block_ads=true&hide_selectors=.promo-bar&wait_for_selector=%23pricing&format=png"
);

await File.WriteAllBytesAsync("capture.png", bytes);
Response 200 OK
Content-Type: image/png
X-Capture-Id: 01m8kvpk6jsmeykdfs0wy6awbn
X-Cache: MISS
X-Render-Time: 219
X-Quota-Limit: 15000
X-Quota-Remaining: 14998
X-RateLimit-Limit: 80
X-RateLimit-Remaining: 79
(the PNG image, in dark mode)
ToUse
Remove consent banners, ads, trackers and chat widgetsblock_cookie_banners, block_ads, block_trackers, block_chats
Hide anything elsehide_selectors (repeat for several), or your own CSS in styles
Open a menu or tab firstclick , hover , or JavaScript in scripts
Wait for content to loadwait_for_selector , wait_until or delay
Freeze animations and carouselsreduce_motion
Dark or light coloursdark_mode

Pages that block automated browsers need stealth mode.

Very tall pages

Some tools can’t open an image tens of thousands of pixels tall. full_page_slices splits a full-page capture into pieces up to full_page_slice_height pixels tall (4000 by default). Ask for JSON to get a URL for each slice:

import { Shotsmith } from '@shotsmith/sdk';

const shotsmith = new Shotsmith({ accessKey: 'YOUR_ACCESS_KEY' });

const result = await shotsmith.takeJson({
  url: 'https://shotsmith.dev/sample',
  full_page: true,
  full_page_slices: true,
  full_page_slice_height: 1500,
});

console.log(result.slices);
<?php

require 'vendor/autoload.php';

use Shotsmith\Client;

$shotsmith = new Client('YOUR_ACCESS_KEY');

$result = $shotsmith->takeJson([
    'url' => 'https://shotsmith.dev/sample',
    'full_page' => true,
    'full_page_slices' => true,
    'full_page_slice_height' => 1500,
]);

echo $result['slices'];
curl -X POST "https://shotsmith.dev/v1/take" \
  -H "X-Access-Key: YOUR_ACCESS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://shotsmith.dev/sample",
    "full_page": true,
    "full_page_slices": true,
    "full_page_slice_height": 1500,
    "response_type": "json"
  }'
const res = await fetch('https://shotsmith.dev/v1/take', {
  method: 'POST',
  headers: {
    'X-Access-Key': 'YOUR_ACCESS_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    url: 'https://shotsmith.dev/sample',
    full_page: true,
    full_page_slices: true,
    full_page_slice_height: 1500,
    response_type: 'json',
  }),
});
if (!res.ok) throw new Error((await res.json()).error_message);

console.log(await res.json());
import json
import urllib.request

body = {
    "url": "https://shotsmith.dev/sample",
    "full_page": True,
    "full_page_slices": True,
    "full_page_slice_height": 1500,
    "response_type": "json"
}

req = urllib.request.Request(
    "https://shotsmith.dev/v1/take",
    data=json.dumps(body).encode(),
    headers={"X-Access-Key": "YOUR_ACCESS_KEY", "Content-Type": "application/json"},
    method="POST",
)

# Raises urllib.error.HTTPError on a 4xx/5xx response
with urllib.request.urlopen(req, timeout=60) as res:
    print(json.load(res))
<?php

$ch = curl_init('https://shotsmith.dev/v1/take');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['X-Access-Key: YOUR_ACCESS_KEY', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'url' => 'https://shotsmith.dev/sample',
        'full_page' => true,
        'full_page_slices' => true,
        'full_page_slice_height' => 1500,
        'response_type' => 'json',
    ]),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 60,
]);
$response = json_decode(curl_exec($ch), true);

if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 400) {
    throw new RuntimeException($response['error_message']);
}

print_r($response);
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	body := strings.NewReader(`{
	  "url": "https://shotsmith.dev/sample",
	  "full_page": true,
	  "full_page_slices": true,
	  "full_page_slice_height": 1500,
	  "response_type": "json"
	}`)

	req, _ := http.NewRequest("POST", "https://shotsmith.dev/v1/take", body)
	req.Header.Set("X-Access-Key", "YOUR_ACCESS_KEY")
	req.Header.Set("Content-Type", "application/json")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}
require "net/http"
require "json"

body = {
  "url" => "https://shotsmith.dev/sample",
  "full_page" => true,
  "full_page_slices" => true,
  "full_page_slice_height" => 1500,
  "response_type" => "json"
}

res = Net::HTTP.post(
  URI("https://shotsmith.dev/v1/take"),
  body.to_json,
  "X-Access-Key" => "YOUR_ACCESS_KEY",
  "Content-Type" => "application/json"
)
raise res.body unless res.is_a?(Net::HTTPSuccess)

puts JSON.parse(res.body)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Request {
    public static void main(String[] args) throws Exception {
        var body = """
            {
              "url": "https://shotsmith.dev/sample",
              "full_page": true,
              "full_page_slices": true,
              "full_page_slice_height": 1500,
              "response_type": "json"
            }
            """;

        var request = HttpRequest.newBuilder(URI.create("https://shotsmith.dev/v1/take"))
            .header("X-Access-Key", "YOUR_ACCESS_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(body))
            .build();

        var res = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(res.body());
    }
}
using System;
using System.Net.Http;
using System.Text;

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Access-Key", "YOUR_ACCESS_KEY");

var body = """
    {
      "url": "https://shotsmith.dev/sample",
      "full_page": true,
      "full_page_slices": true,
      "full_page_slice_height": 1500,
      "response_type": "json"
    }
    """;

var res = await http.PostAsync(
    "https://shotsmith.dev/v1/take",
    new StringContent(body, Encoding.UTF8, "application/json")
);
res.EnsureSuccessStatusCode();

Console.WriteLine(await res.Content.ReadAsStringAsync());
Response 200 OK
Content-Type: application/json
X-Capture-Id: 01m8kvpk6jsmeykdfs0wy6awbn
X-Cache: MISS
X-Render-Time: 2506
X-Quota-Limit: 15000
X-Quota-Remaining: 14998
X-RateLimit-Limit: 80
X-RateLimit-Remaining: 79
{
  "is_successful": true,
  "id": "01m8kyrjp7dedvgbf0rzyfzvex",
  "kind": "screenshot",
  "status": "succeeded",
  "source": "api",
  "url": "https://shotsmith.dev/sample",
  "format": "jpg",
  "cache_hit": false,
  "file_url": "https://shotsmith.dev/files/01m8kyrjp7dedvgbf0rzyfzvex.jpg?expires=1796052542&signature=…",
  "slices": [
    "https://shotsmith.dev/files/01m8kyrjp7dedvgbf0rzyfzvex.jpg?expires=1796052542&slice=0&signature=…",
    "https://shotsmith.dev/files/01m8kyrjp7dedvgbf0rzyfzvex.jpg?expires=1796052542&slice=1&signature=…",
    "https://shotsmith.dev/files/01m8kyrjp7dedvgbf0rzyfzvex.jpg?expires=1796052542&slice=2&signature=…"
  ],
  "content_type": "image/jpeg",
  "bytes": 122354,
  "width": 1280,
  "height": 3504,
  "duration_ms": 2506,
  "metadata": {
    "blocked": {
      "ads": 0,
      "trackers": 0,
      "cookies": 0,
      "chats": 0,
      "custom": 0,
      "resources": 0
    },
    "image_size": { "width": 1280, "height": 3504 }
  },
  "vision": null,
  "store": null,
  "external_identifier": null,
  "error": null,
  "created_at": "2026-11-29T14:35:16+00:00",
  "completed_at": "2026-11-29T14:35:16+00:00",
  "cache_url": "https://shotsmith.dev/files/01m8kyrjp7dedvgbf0rzyfzvex.jpg?expires=1796052542&signature=…"
}

WebP, AVIF and HEIF can’t store images taller or wider than 16,383 pixels. A long page captured on a phone, at three times the pixel density, easily goes past that, and the request fails with image_too_large. Use PNG or JPG for those, or keep WebP and add full_page_slices or image_width.

Size and quality

  • image_width or image_height resizes the result, keeping its proportions. Good for thumbnails.
  • image_quality (default 80) trades file size for detail in JPG, WebP and AVIF.
  • omit_background makes the background transparent on pages that don’t set one (PNG, WebP, AVIF, GIF and TIFF).

Your own HTML or Markdown

Send html or markdown instead of url to render content you generate, such as social cards or receipts. Use a POST request for anything longer than a line; the PDF guide has an example.