scrapingant
v1.0.1Scrape webpages, handle JavaScript and CAPTCHA, extract structured data
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scrape_webpage Scrape Webpage
Scrape content from a webpage with optional browser rendering, JavaScript execution, and proxy configuration. Supports cookie injection, resource blocking, and element-specific wait conditions for dynamic content.
| Parameter | Type | Description |
|---|---|---|
url * | string | The target URL to scrape. Must be a valid, complete URL. |
block_resource | string | Resource types to block from loading in the browser (e.g., image, stylesheet, script, font). Can be specified multiple times for multiple types. Only applies when browser rendering is enabled. Useful… |
browser | boolean | Whether to render the page using a headless browser to execute JavaScript and load dynamic content. Enabled by default. Disable to retrieve raw server response only. |
cookies | string | Session cookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2). Useful for authenticated scraping. |
js_snippet | string | Base64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser rendering is enabled. Useful for custom interactions like scrolling or form submission. |
proxy_country | string | Country code for the proxy location (e.g., US, GB, DE). If not specified, a random country will be used. Only applies when using a proxy. |
proxy_type | string | Proxy type for the request: datacenter (faster, shared IPs) or residential (slower, real user IPs). Defaults to datacenter. |
return_page_source | boolean | Return the unaltered HTML source from the server without browser-based JavaScript rendering. Only applies when browser rendering is enabled. Useful for comparing server-side vs. client-side rendered c… |
wait_for_selector | string | CSS selector of an element to wait for before returning results. The scraper will poll until the element appears in the DOM. Only applies when browser rendering is enabled. Useful for waiting on dynam… |
scrape_webpage_submit Scrape Webpage Submit
Scrape content from a webpage using optional headless browser rendering, JavaScript execution, and proxy configuration. Supports cookie injection, resource blocking, and element-specific wait conditions for dynamic content.
| Parameter | Type | Description |
|---|---|---|
url * | string | The target URL to scrape. Must be a valid, complete URL. |
block_resource | string | Resource types to block from loading in the browser (e.g., image, stylesheet, script, font). Reduces bandwidth and speeds up scraping. Only applies when browser is enabled. Can be specified multiple t… |
browser | boolean | Enable headless browser rendering to execute JavaScript and handle dynamic content. Defaults to true. When disabled, only raw server response is returned. |
cookies | string | HTTP cookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2). |
js_snippet | string | Base64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser is enabled. Useful for interactions, scrolling, or data extraction. |
proxy_country | string | Country code for proxy location (e.g., US, GB, DE). If not specified, a random country is selected. Only applies when using a proxy. |
proxy_type | string | Proxy type for the request: datacenter (faster, shared IPs) or residential (slower, real user IPs). Defaults to datacenter. |
return_page_source | boolean | Return the unaltered page source as received from the server without JavaScript rendering. Only applies when browser is enabled. Defaults to false. |
wait_for_selector | string | CSS selector of an element to wait for before returning results. The scraper will poll until the element appears or timeout occurs. Only applies when browser is enabled. |
scrape_webpage_replace Scrape Webpage Replace
Scrape a webpage with optional browser rendering, JavaScript execution, and proxy configuration. Supports cookie injection, resource blocking, and element-based wait conditions for dynamic content.
| Parameter | Type | Description |
|---|---|---|
url * | string | The target URL to scrape. Must be a valid HTTP or HTTPS URL. |
block_resource | string | Resource types to block from loading in the browser (e.g., image, stylesheet, script, font). Can be specified multiple times for multiple types. Only applies when browser is enabled. Reduces bandwidth… |
browser | boolean | Whether to use a headless browser for scraping to render JavaScript and handle dynamic content. Enabled by default. Required for JS execution, page source capture, and element waiting. |
cookies | string | Cookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2). |
js_snippet | string | Base64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser is enabled. Useful for interactions, scrolling, or data extraction. |
proxy_country | string | Country code for the proxy location (e.g., US, GB, DE). If not specified, a random country will be used. Only applies when using proxies. |
proxy_type | string | Type of proxy to use for the request: datacenter (default) for speed or residential for authenticity. Datacenter proxies are faster; residential proxies better mimic real users. |
return_page_source | boolean | Return the unaltered HTML returned by the server without JavaScript rendering. Only applies when browser is enabled. When true, JavaScript will not be executed. |
wait_for_selector | string | CSS selector of an element to wait for before returning results. The scraper will poll until the element appears in the DOM. Only applies when browser is enabled. |
scrape_webpage_modify Scrape Webpage Modify
Scrape a webpage with optional browser rendering, JavaScript execution, and proxy configuration. Supports waiting for dynamic content, blocking resources, and injecting custom scripts.
| Parameter | Type | Description |
|---|---|---|
url * | string | The target URL to scrape. Must be a valid HTTP or HTTPS URL. |
block_resource | string | Resource types to block from loading in the browser (e.g., image, stylesheet, script, font, xhr, fetch). Reduces bandwidth and speeds up scraping. Only applies when browser is enabled. Can be specifie… |
browser | boolean | Whether to use a headless browser for scraping to render JavaScript and handle dynamic content. Enabled by default. Required for JS execution, page waiting, and resource blocking features. |
cookies | string | HTTP cookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2). |
js_snippet | string | Base64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser is enabled. Useful for interactions, data extraction, or triggering additional content loads. |
proxy_country | string | Country code for the proxy location (e.g., US, GB, DE). If not specified, a random country will be used. Only applies when using a proxy. |
proxy_type | string | Type of proxy to route the request through: datacenter (faster, shared IPs) or residential (slower, real user IPs). Defaults to datacenter. |
return_page_source | boolean | Return the unaltered HTML source as received from the server without JavaScript rendering. Only applies when browser is enabled. Disabled by default. |
wait_for_selector | string | CSS selector of an element to wait for before returning results. The scraper will poll until the element appears in the DOM. Only applies when browser is enabled. |
scrape_webpage_remove Scrape Webpage Remove
Scrape a webpage with optional browser rendering, JavaScript execution, and proxy configuration. Supports cookie injection, resource blocking, and element-waiting strategies for dynamic content extraction.
| Parameter | Type | Description |
|---|---|---|
url * | string | The target URL to scrape. Must be a valid, complete URL. |
block_resource | string | Resource types to block from loading in the browser (e.g., image, stylesheet, script, font). Reduces bandwidth and speeds up scraping. Only applies when browser is enabled. Can be specified multiple t… |
browser | boolean | Whether to use a headless browser for scraping to handle JavaScript-rendered content. Enabled by default. Required for JS execution and resource blocking features. |
cookies | string | HTTP cookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2). |
js_snippet | string | Base64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser is enabled. Useful for interactions, scrolling, or data extraction. |
proxy_country | string | Country code for the proxy location (e.g., US, GB, DE). If not specified, a random country will be used. |
proxy_type | string | Type of proxy to route the request through: datacenter (faster, shared IPs) or residential (slower, real user IPs). Defaults to datacenter. |
return_page_source | boolean | Return the unaltered HTML as received from the server without JavaScript rendering. Only applies when browser is enabled. Disabled by default. |
wait_for_selector | string | CSS selector of an element to wait for before returning results. The service will poll until the element appears in the DOM. Only applies when browser is enabled. |
get_usage Get Usage
Retrieve the current API credits usage status and consumption metrics for your Scrapingant account.