# Shotlane docs

> Docs index: [llms.txt](https://shotlane.dev/llms.txt). All pages in one file: [llms-full.txt](https://shotlane.dev/llms-full.txt).

Shotlane opens any web page or HTML in current Chrome and gives you back a screenshot, a PDF or clean Markdown. One HTTP request, an SDK call, or a tool call from your AI agent.

## Quickstart

GET `/v1/screenshot`

```bash
curl -G https://shotlane.dev/v1/screenshot \
  -H "X-API-Key: $SHOTLANE_API_KEY" \
  -d url=github.com \
  -d full_page=true \
  -o github.png
```

```python
# curl -O https://shotlane.dev/sdk/shotlane.py
import os
from shotlane import Shotlane

sl = Shotlane(os.environ["SHOTLANE_API_KEY"])
png = sl.screenshot("github.com", full_page=True)
open("github.png", "wb").write(png)
```

```javascript
// curl -O https://shotlane.dev/sdk/shotlane.mjs
import { writeFile } from "node:fs/promises";
import { Shotlane } from "./shotlane.mjs";

const sl = new Shotlane(process.env.SHOTLANE_API_KEY);
const png = await sl.screenshot("github.com", { full_page: true });
await writeFile("github.png", png);
```

Response `200 OK`

```
content-type: image/png
content-length: 673138
x-credits-remaining: 49999
x-target-status: 200
x-render-time-ms: 7755
```

1. [Get a free API key](https://shotlane.dev/#signup): confirm your email, or sign in with GitHub or Google, and it's on your dashboard, with 100 free renders a month.
2. Make your first request, here a full-page screenshot of github.com. The response body is the image.
3. Pick what you need next:

[**Screenshots** Any page, element or HTML. Devices, full page, dark mode, logins, cookie banners removed.](https://shotlane.dev/docs/screenshot)
[**PDFs** Invoices and reports from HTML or Markdown, or any URL, with headers and page numbers.](https://shotlane.dev/docs/pdf)
[**Markdown** A page's main content for LLMs and search, with JavaScript run first. PDF links too.](https://shotlane.dev/docs/markdown)
[**MCP and agents** Give Claude, ChatGPT or Cursor a browser in one line of setup.](https://shotlane.dev/docs/mcp)

## How requests work

The same request three ways

GET:

```bash
curl -G https://shotlane.dev/v1/screenshot \
  -H "X-API-Key: $SHOTLANE_API_KEY" \
  -d url=example.com \
  -d width=1440 \
  -d format=jpeg \
  -o example.jpg
```

POST, JSON:

```bash
curl https://shotlane.dev/v1/screenshot \
  -H "X-API-Key: $SHOTLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "example.com", "width": 1440, "format": "jpeg"}' \
  -o example.jpg
```

POST, form:

```bash
curl https://shotlane.dev/v1/screenshot \
  -H "X-API-Key: $SHOTLANE_API_KEY" \
  -d url=example.com \
  -d width=1440 \
  -d format=jpeg \
  -o example.jpg
```

The base URL is `https://shotlane.dev`. Every render endpoint takes `GET` with query parameters or `POST` with a JSON or form body, so the same options work from a browser's address bar, `curl` or code. Use `POST` for large `html` or `markdown`.

Booleans are `true` or `false`; a list is comma-separated or a JSON array.

A successful render returns the file itself with its `Content-Type` (`image/png`, `application/pdf`, `text/markdown`…). `response_type=json` returns a [hosted link](https://shotlane.dev/docs/storage#hosted-links) and details instead. Errors are always JSON, with a message that says what to do next ([errors](https://shotlane.dev/docs/errors)).

## Client libraries

Install

```bash
curl -O https://shotlane.dev/sdk/shotlane.py    # Python 3.8+, standard library only
curl -O https://shotlane.dev/sdk/shotlane.mjs   # Node 18+, Deno, Bun
```

Single-file [SDKs for Python and Node](https://shotlane.dev/docs/sdks), with no dependencies: download one next to your code. They have a method for every endpoint, and the samples in these docs use them.

Any other language: the API is plain HTTP, and the [OpenAPI spec](https://shotlane.dev/openapi.json) works with any OpenAPI generator. AI agents connect through the [MCP server](https://shotlane.dev/docs/mcp).

## Credits

One successful render costs one credit: a screenshot, a PDF, a Markdown page, or one device in a multi-device check; a [scrolling video](https://shotlane.dev/docs/video) costs 3 paid credits. Failed renders, bot-protection pages ([100 a day, plus one per page that renders](https://shotlane.dev/docs/errors#never-charged)) and cache hits are free, and a refunded credit goes back to where it came from (free or paid). Free credits are spent first, then paid credits. Your free credits are topped up to 100 at the start of every month (UTC); paid credits never expire. Videos use paid credits only. [`/v1/account`](https://shotlane.dev/docs/authentication#account) shows `free_credits` and `paid_credits`, and every response carries `X-Credits-Remaining`. See [pricing](https://shotlane.dev/pricing).

## All endpoints

| Endpoint | What it does |
| --- | --- |
| [`/v1/screenshot`](https://shotlane.dev/docs/screenshot) | Screenshot of a URL, element or HTML (PNG, JPEG, WebP, AVIF, PDF, MHTML). |
| [`/v1/pdf`](https://shotlane.dev/docs/pdf) | PDF from a URL, HTML or Markdown. |
| [`/v1/markdown`](https://shotlane.dev/docs/markdown), [`/v1/extract`](https://shotlane.dev/docs/markdown#extract) | Main content as Markdown; JSON with metadata, links, HTML or text. |
| [`/v1/animate`](https://shotlane.dev/docs/video) | A scrolling video of the page as MP4, WebM or GIF. |
| [`/v1/screenshots`](https://shotlane.dev/docs/screenshot#multi), [`/v1/check`](https://shotlane.dev/docs/devices#check) | The same page on several devices; with the layout and JavaScript problems on each. |
| [`/v1/scrape`](https://shotlane.dev/docs/scrape), [`/v1/map`](https://shotlane.dev/docs/map), [`/v1/report`](https://shotlane.dev/docs/report) | Values by CSS selector; a site's URLs; SEO, link-preview and AI-crawler checks. |
| [`/v1/bulk`](https://shotlane.dev/docs/bulk), [`/v1/crawl`](https://shotlane.dev/docs/crawl) | Up to 500 URLs, or a whole site, as one ZIP in the background. |
| [`/v1/monitors`](https://shotlane.dev/docs/monitors) | Watch pages and get an email or webhook when they change. |
| [`/v1/account`](https://shotlane.dev/docs/authentication#account), [`/v1/usage`](https://shotlane.dev/docs/errors#usage), [`/v1/signup`](https://shotlane.dev/docs/authentication#agent-signup) | Credits and keys; usage and limits; sign up without a browser. |
| [`/mcp`](https://shotlane.dev/docs/mcp) | Remote MCP server for AI agents (OAuth or API key). |

Machine-readable docs for agents and tools: [llms.txt](https://shotlane.dev/llms.txt), [llms-full.txt](https://shotlane.dev/llms-full.txt) (every parameter in one Markdown file) and [OpenAPI](https://shotlane.dev/openapi.json). Every docs page is also Markdown: add `.md` to its URL.
