Configure the browser's user agent to manipulate website responses during screenshot capture. The user agent, a crucial request header sent by the Add Screenshots browser when visiting a URL, carries vital information about the browser, device, and operating system.
Websites utilize user agents to discern the type of device making the request. For instance, a site might serve a mobile version if the user agent indicates a mobile device.
Additionally, user agents are employed for security measures such as bot detection and browser fingerprinting. Websites may block requests from bots by identifying known bot user agents. Browser fingerprinting, on the other hand, involves analyzing user agent data to create a unique identifier for tracking purposes.
To gain comprehensive insights into user agents and their impact on web requests, refer to the MDN User-Agent documentation. You can also explore a variety of user agent strings.
Here's a practical illustration employing a user agent for an antiquated browser version, Internet Explorer 6, released in 2001: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)".
// Line breaks added for readability https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&user_agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
&url=http://youtube.com
Your API key can be found on the API Keys page. Need an API Key? Sign up to get started.
For internal applications, replace YOUR_API_KEY with your own unique API Key.
For public facing websites or hotlinks, generate a signed URL.