# Quick start

> Take your first website screenshot with the Shotfly API in curl, Node.js or Python.

Shotfly renders a public web page in a real browser and returns an image. Create an API key in the dashboard; the secret (`sk_…`) is shown once, so keep it server-side.

curl:

```bash
curl "https://api.shotfly.dev/v1/screenshot?url=https://example.com&access_key=$SHOTFLY_SECRET_KEY" \
  -o shot.png
```

Node.js:

```js
const params = new URLSearchParams({ url: 'https://example.com', format: 'webp' })
const res = await fetch(`https://api.shotfly.dev/v1/screenshot?${params}`, {
  headers: { Authorization: `Bearer ${process.env.SHOTFLY_SECRET_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.message)
console.log('credits charged:', res.headers.get('x-credits-charged'))
```

Python:

```python
import os, requests
r = requests.get("https://api.shotfly.dev/v1/screenshot",
    params={"url": "https://example.com", "full_page": "true"},
    headers={"Authorization": f"Bearer {os.environ['SHOTFLY_SECRET_KEY']}"})
r.raise_for_status()
open("shot.png", "wb").write(r.content)
```

Every option is a parameter; see [Parameters](https://shotfly.dev/docs/parameters). Failed renders, bot challenges and blank pages return an error and cost nothing; the `X-Credits-Charged` header says what each request cost.

---

Source: https://shotfly.dev/docs/quickstart · Last updated 2026-11-27
