GET /selected-multiple

webscraping.ai

Summary: HTML of multiple page areas by URL and CSS selectors
Operation ID: getSelectedMultiple
Auth: unknown
Description

Always returns JSON

Parameters (11)

country (string, query, optional, default: us)

Country of the proxy to use (US by default). Only available on Startup and Custom plans.

Constraints: {'enum': ['us', 'gb', 'de', 'it', 'fr', 'ca', 'es', 'ru', 'jp', 'kr']}

device (string, query, optional, default: desktop)

Type of device emulation.

Constraints: {'enum': ['desktop', 'mobile', 'tablet']}

error_on_404 (boolean, query, optional, default: False)

Return error on 404 HTTP status on the target page (false by default).

error_on_redirect (boolean, query, optional, default: False)

Return error on redirect on the target page (false by default).

headers (object, query, optional)

HTTP headers to pass to the target page. Can be specified either via a nested query parameter (...&headers[One]=value1&headers=[Another]=value2) or as a JSON encoded object (...&headers={"One": "value1", "Another": "value2"})

js (boolean, query, optional, default: True)

Execute on-page JavaScript using a headless browser (true by default)

js_timeout (integer, query, optional, default: 2000)

Maximum JavaScript rendering time in ms. Increase it in case if you see a loading indicator instead of data on the target page.

Constraints: {'minimum': 1, 'maximum': 20000}

proxy (string, query, optional, default: datacenter)

Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default). Note that residential proxy requests are more expensive than datacenter, see the pricing page for details.

Constraints: {'enum': ['datacenter', 'residential']}

selectors (array, query, optional)

Multiple CSS selectors (null by default, returns whole page HTML)

timeout (integer, query, optional, default: 10000)

Maximum processing time in ms. Increase it in case of timeout errors (10000 by default, maximum is 30000)

Constraints: {'minimum': 1, 'maximum': 30000}

url (string, query, required)

URL of the target page

No probe data for this endpoint yet.