Parameters
Searches can be tailored according to many different parameters.
Parameter | Header name | Default value | Description |
---|---|---|---|
target | n/a | google_search | Data source Available targets are listed here. |
url | n/a | Direct URL (link) to a page you want to scrape. | |
domain | n/a | com | com, co.uk, fr, etc. |
query | n/a | ||
page_from | n/a | 1 | Starting page number. |
num_pages | n/a | 10 | Number of results to retrieve in each page. |
locale | n/a | Matched with domain parameter | This will change the search page web interface language (not the results). Example: – en-US – en-GB |
geo | X-Smartproxy-Geo | The geographical location that the result depends on. – ZIP/postal code – ISO 3166-1 alpha-2 country code, i.e. "IT" | |
device_type | X-Smartproxy-Device-Type | desktop | Device type and browser. Supported: – desktop – desktop_chrome – desktop_firefox – mobile – mobile_android – mobile_ios |
parse | X-Smartproxy-Parse | false | 'true' will return parsed output in JSON format. Leave blank for HTML – not all data sources can be parsed. |
headless | X-Smartproxy-Headless | Enable JavaScript rendering. Supported: – html – png | |
session_id | Session to re-use the same IP for multiple requests for up to 10 minutes | ||
successful_status_codes | Define one or more HTTP response codes you consider successful and want to get the content for | ||
http_method | Used to make a POST request instead of GET | ||
payload | Base64 encoded POST request body. Used together with http_method |
Updated 11 days ago