pub struct OnPageApiInstantPagesPost {Show 20 fields
pub url: String,
pub custom_user_agent: Option<String>,
pub browser_preset: Option<String>,
pub browser_screen_width: Option<i32>,
pub browser_screen_height: Option<i32>,
pub browser_screen_scale_factor: Option<f64>,
pub store_raw_html: Option<bool>,
pub accept_language: Option<String>,
pub load_resources: Option<bool>,
pub enable_javascript: Option<bool>,
pub enable_browser_rendering: Option<bool>,
pub disable_cookie_popup: Option<bool>,
pub return_despite_timeout: Option<bool>,
pub enable_xhr: Option<bool>,
pub custom_js: Option<String>,
pub validate_micromarkup: Option<bool>,
pub check_spell: Option<bool>,
pub checks_threshold: Option<Value>,
pub switch_pool: Option<bool>,
pub ip_pool_for_scan: Option<String>,
}Expand description
Fields§
§url: StringPage URL to crawl.
custom_user_agent: Option<String>Custom User-Agent header sent while loading the page.
browser_preset: Option<String>Device preset for rendering: “desktop”, “mobile”, or “tablet”.
browser_screen_width: Option<i32>Viewport width used for rendering, in pixels.
browser_screen_height: Option<i32>Viewport height used for rendering, in pixels.
browser_screen_scale_factor: Option<f64>Device pixel ratio used for rendering.
store_raw_html: Option<bool>Store the raw HTML for later retrieval.
accept_language: Option<String>Value of the Accept-Language header sent while loading the page.
load_resources: Option<bool>Load page resources (images, scripts, stylesheets) while crawling.
enable_javascript: Option<bool>Execute page JavaScript (incurs extra cost).
enable_browser_rendering: Option<bool>Emulate full browser rendering to measure Core Web Vitals.
Hide cookie-consent popups before loading the page.
return_despite_timeout: Option<bool>Return partial results even if the request times out.
enable_xhr: Option<bool>Allow XMLHttpRequest calls while rendering the page.
custom_js: Option<String>Custom JavaScript to execute on the page.
validate_micromarkup: Option<bool>Validate structured microdata markup.
check_spell: Option<bool>Check spelling on the page using the Hunspell library.
checks_threshold: Option<Value>Custom threshold values for the checks in the response.
switch_pool: Option<bool>Retry using a different proxy pool if the first attempt fails.
ip_pool_for_scan: Option<String>Proxy location to load the page from: “us” or “de”.