Screenshot
screenshotbooleanFalse
If you want to get a screenshot of the page you want to scrape, use thescreenshot=True parameter.
Screenshots are only available when using render_js=True.
When using screenshot=True, block_resources will automatically be set to False so the browser will load images and CSS before taking the screenshot.
If you need both the screenshot of the page and the HTML content of it, use screenshot=True and json_response=True (learn more about json_response).
If you need to wait for a particular amount of time, a DOM element, or a browser event, use our wait, wait_for and wait_browser parameters (learn more).
1curl "https://www.foxscrape.com/api/v1/?api_key=YOUR_API_KEY&url=YOUR-URL&screenshot=True" > ./screenshot.png
screenshot_selectorstring""
By default, the screenshot will only capture the portion of the page that is visible in the browser's viewport.
If you need to screenshot a particular area of the page, you can usescreenshot_selector=<CSS_selector> where <CSS_selector> is the CSS selector of the area you want to capture.
screenshot_full_pagebooleanFalse
By default, the screenshot will only capture the portion of the page that is visible in the browser's viewport.
If you need a screenshot of the full page from the target website usescreenshot_full_page=True.
If you need to change the size of the browser's viewport before taking a screenshot you can do it using window_width and window_height parameters (learn more).