A new version of the ScreenshotOne API has been just deployed. It allows you to set both locale and language of the browser when rendering screenshots with one simple option.
Set locale and language of the browser
A new version of the ScreenshotOne API has been just deployed. It allows you to set both locale and language of the browser when rendering screenshots with one simple option.
In order to set locale and language of the browser, you only need to specify the Accept-Language
header in the request, like this:
https://api.screenshotone.com/take?headers=accept-language:de-DE&url...&access_key=...
The API is smart enough to understand that the Accept-Language
header is a locale and language header and will set the locale and language of the browser accordingly:
Accept-Language
header to the website.All dates, numbers, and currencies will be displayed in the specified locale and language.
If you are curious about how it works under the hood, you can check out the Puppeteer guide with working examples on how to set the locale and language of the browser. The solution is based on the same approach.
In case you encounter any issues, or have any questions, please feel free to reach out to us at support@screenshotone.com.
Interviews, tips, guides, industry best practices, and news.
You can record a page navigation when recording scrolling screenshot video. It allows render less boring and more engaging videos.
A new and improved request log has been deployed. That is a good beginning of the week! Check out why.
On rare occasions, you might need to get the HTTP status code and headers of the target host. It is pretty easy to do now.
Exhaustive documentation, ready SDKs, no-code tools, and other automation to help you render website screenshots and outsource all the boring work related to that to us.