Skip to main content

Parameters supported by Web Scraping API solution

Core and Advanced plans are no longer available for purchase. Please consider migrating to the all-in-one Web Scraper API; check out the guide here.
Supported parameters differ for Core and Advanced plan users.Note that supported parameters may vary slightly depending on the target template. Read more.
ParameterDefault valueDescriptionExampleCore
url or querynullMandatory. Some target templates support query parameter, otherwise url is required.https://ip.decodo.com✅ Only url
targetnullNecessary for specific target templatesgoogle_search
headlessnull
Some target templates force JS rendering by default
html value enables JavaScript rendering. Read more.
png value enables screenshot response. Read more.
html
geoauto-randomizedThe geographical location on which the result depends. Read more.United States✅ Supported geo locations: US, CA, GB, DE, FR, NL, JP, RO
domaincomSpecify top-level domain: com, co.uk, fr, etc.com
localeMatched with domain parameterThis will change the search page web interface language (not the results).
Example: – en-US – en-GB
en-gb
headersnullAdds request headers to the target request.User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
cookiesnullClient cookie. Allows users to open up pages as if they are logged in.Cookie: sessionid=8e1f3b56-7abc-47e6-b2e2-1d273b0a1c4d; logged_in=true; locale=en-US
force_cookiesfalseBy default, user-provided cookies are not forwarded to the target.
Set this parameter to true to override this behaviour.
true
force_headersfalseBy default, user-provided headers are not forwarded to the target.
Set this parameter to true to override this behaviour.
true
device_typedesktopDevice type and browser. Read more.desktop
parsefalseFor certain target templates dedicated parsers are available.
To retrieve structured data, set parse parameter to true. Read more.
true
session_idnullSession to re-use the same IP for multiple requests for up to 10 minutes1234
http_methodGETUsed to make a POST request instead of GET.POST
payloadnullBase64 encoded POST request body. Used when http_method is POST.{foo: bar}
successful_status_codesnullDefine one or more HTTP response codes you consider successful and want to get the content for.401, 404
markdownfalseParses HTML output into Markdown. Results in less tokens when feeding results into LLM models. Read more.true
xhrfalseRetrieves a list of XHR and fetch requests. Read more.true

Support

Need help or just want to say hello? Our support is available 24/7.
You can also reach us anytime via email at support@decodo.com.

Feedback

Can’t find what you’re looking for? Request an article!
Have feedback? Share your thoughts on how we can improve.