# Screenshot

> A PNG of any page, viewport or full length.

Source: http://localhost:3000/docs/endpoints/screenshot

## Screenshot: `POST /v1/screenshot/`

A rendered PNG of any page, viewport or full length. Cost: 3 credits. Available on the free demo.

```bash
curl -X POST https://api.hushsearch.io/v1/screenshot/ \
  -H "X-API-Key: hs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/",
  "full_page": false
}'
```

Renders the page in a browser and returns the image as base64.

## Parameters

| Field | Type | Default | Notes |
|---|---|---|---|
| `url` | string | — | **Required.** Up to 2,048 characters. |
| `full_page` | boolean | `false` | Capture the full scroll height instead of the viewport. |

## Response

```json
{
  "url": "https://example.com/",
  "image_base64": "iVBORw0KGgo…",
  "full_page": false,
  "credits_used": 3,
  "credits_remaining": 497,
  "response_time_ms": 2300
}
```

Decode `image_base64` to get the PNG bytes. The free demo always captures the viewport.
