Documentation Index
Fetch the complete documentation index at: https://docs.domshot.dev/llms.txt
Use this file to discover all available pages before exploring further.
Custom User Agent
Set a custom user agent to test how pages render for different browsers and devices.Basic usage
bash
User agent object format
Fields
| Field | Type | Required | Description |
|---|---|---|---|
userAgent | string | No | Full user agent string |
platform | string | No | Platform identifier (e.g., “Win32”, “iPhone”) |
userAgentMetadata | object | No | Client Hints user agent data |
Common user agents
| Use case | User agent |
|---|---|
| Chrome Windows | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 |
| Safari iPhone | Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) |
| Googlebot | Mozilla/5.0 (compatible; Googlebot/2.1) |
Parameters
| Parameter | Type | Description |
|---|---|---|
customUserAgent | string | JSON object with user agent details |
See also
- Custom Headers - Set custom HTTP headers
- Custom Cookies - Set custom cookies