For the complete documentation index, see llms.txt. This page is also available as Markdown.

Device Type

Learn how to set device types for more accurate scraping of responsive layouts and device-specific content.

Instead of manually setting viewports, touch support, and User-Agent headers in your local library config (which can create fingerprint mismatches and trigger connection timeouts), the Headless Browser allows you to emulate specific device classes natively by adding the p_device query parameter to your connection string:

wss://username:password@ubc.oxylabs.io?p_device=mobile

Supported device profiles

You can configure the p_device parameter using three supported device profiles:

Parameter value
Description

desktop (default)

Full-size viewport, desktop platform headers, standard mouse/keyboard input schemas, and a desktop User-Agent string.

mobile

Compact mobile viewport, touch event APIs enabled, mobile OS platform headers, and a mobile User-Agent.

Last updated

Was this helpful?