# ScreenshotOne — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API |
> |---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Website screenshot API — capture any URL, HTML, or markdown as PNG, JPEG, WebP, or PDF. Full-page, element selection, dark mode, ad blocking, and more.

**Category:** Developer Tools | **Website:** [screenshotone.com](https://screenshotone.com) | **Docs:** [screenshotone.com/docs/getting-started/](https://screenshotone.com/docs/getting-started/)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/screenshotone/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

> Also available via public x402 on Base (no account needed): [x402/screenshotone.md](https://beta.paywithlocus.com/x402/screenshotone.md)

> Also available via MPP (no account needed): [mpp/screenshotone.md](https://beta.paywithlocus.com/mpp/screenshotone.md)

## Endpoints

### Take Screenshot

Capture a screenshot of any URL, HTML content, or markdown. Returns the image as binary data (PNG, JPEG, WebP, PDF). Supports full-page capture, element selection, dark mode, ad blocking, custom viewport, and more.

**Estimated cost:** $0.055

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | No | URL to screenshot (one of url/html/markdown required) |
| `html` | string | No | HTML content to render |
| `markdown` | string | No | Markdown content to render |
| `format` | string | No | Output: png, jpeg, webp, gif, pdf (default: jpg) |
| `full_page` | boolean | No | Capture entire page (default: false) |
| `selector` | string | No | CSS selector for element screenshot |
| `viewport_width` | number | No | Browser width in pixels (default: 1280) |
| `viewport_height` | number | No | Browser height in pixels (default: 1024) |
| `device_scale_factor` | number | No | Device pixel ratio 1-5 (default: 1) |
| `image_quality` | number | No | Quality 0-100 (default: 80) |
| `dark_mode` | boolean | No | Enable dark mode |
| `block_cookie_banners` | boolean | No | Block cookie/GDPR banners |
| `block_ads` | boolean | No | Block advertisements |
| `delay` | number | No | Wait seconds before screenshot |
| `timeout` | number | No | Max seconds (default: 60) |
| `wait_for_selector` | string | No | CSS selector to wait for |
| `response_type` | string | No | "by_format" (default), "json", or "empty" |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/screenshotone/take \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>","html":"<string>","markdown":"<string>","format":"<string>","full_page":"<boolean>","selector":"<string>","viewport_width":"<number>","viewport_height":"<number>","device_scale_factor":"<number>","image_quality":"<number>","dark_mode":"<boolean>","block_cookie_banners":"<boolean>","block_ads":"<boolean>","delay":"<number>","timeout":"<number>","wait_for_selector":"<string>","response_type":"<string>"}'
```
