Parameters

Searches can be tailored according to many different parameters.

ParameterHeader nameDefault valueDescription
targetn/agoogle_searchData source
Available targets are listed here.
urln/aDirect URL (link) to a page you want to scrape.
domainn/acomcom, co.uk, fr, etc.
queryn/a
page_fromn/a1Starting page number.
num_pagesn/a10Number of results to retrieve in each page.
localen/aMatched with domain parameterThis will change the search page web interface language (not the results).
Example:
– en-US
– en-GB
geoX-Smartproxy-GeoThe geographical location that the result depends on.

– ZIP/postal code
– ISO 3166-1 alpha-2 country code, i.e. "IT"
device_typeX-Smartproxy-Device-TypedesktopDevice type and browser.
Supported:
– desktop
– desktop_chrome
– desktop_firefox
– mobile
– mobile_android
– mobile_ios
parseX-Smartproxy-Parsefalse'true' will return parsed output in JSON format. Leave blank for HTML – not all data sources can be parsed.
headlessX-Smartproxy-HeadlessEnable JavaScript rendering.
Supported:
– html
– png
session_idSession to re-use the same IP for multiple requests for up to 10 minutes
successful_status_codesDefine one or more HTTP response codes you consider successful and want to get the content for
http_methodUsed to make a POST request instead of GET
payloadBase64 encoded POST request body. Used together with http_method