https://api.hasdata.com/scrape/web with a JSON body using the fields below.
Basic Configuration
string
required
The URL of the page to scrape. Must be a valid absolute URI (e.g.
https://example.com).Proxy Settings
string
Type of proxy to use. Options:
datacenter, residential. Required if you’re targeting geo-restricted or bot-protected content.string
ISO 3166-1 alpha-2 country code for proxy location (e.g.
US, DE, IN).Data Extraction
object
CSS selectors for field-level extraction. Example:
{ "title": "h1", "link": "a @href" }.object
Structured AI rules for LLM-based extraction. Supports types: To learn more, see LLM Extraction.
string, number, boolean, list, item.Example:boolean
Capture a screenshot of the page.
boolean
Extract all email addresses found in the page content.
boolean
Extract all hyperlinks (
<a href="...">) from the page.Timing
integer
Delay (in milliseconds) after page load before scraping. Max: 30000.
string
CSS selector to wait for before scraping begins.Example:
.product-listingResource Control
boolean
Block loading of images and stylesheets.
boolean
Block common ad scripts and tracking pixels.
string[]
Block any network requests containing these substrings or domains.Example:
["googleanalytics", "doubleclick"]JavaScript Options
boolean
Enable JavaScript rendering (required for SPAs or dynamic content).
array
List of JavaScript actions to run on the page (click, scroll, wait, evaluate, etc.).Example:To learn more, see Page Interactions.
Advanced Settings
object
Custom headers to include in the request. Example:
{ "User-Agent": "custom-agent" }.To learn more, see Custom Headers and Cookies.string[]
Response format(s). Options:
html, text, markdown, json. Multiple formats allowed.