Device Type
Learn how to set device types for more accurate scraping of responsive layouts and device-specific content.
Last updated
Was this helpful?
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=mobileYou can configure the p_device parameter using three supported device profiles:
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?
Was this helpful?

