The Web Scraping API lets you scrape any public web page without handling proxies, headless browsers, or captchas. You send a URL, and we return the raw page content and optionally parsed data.
Sign in at hasdata.com, go to your account settings, and copy your API key.
All requests must include your key in the x-api-key
header.
Response
Maximum page load time is restricted to 300 seconds. In cases where a request fails after 300 seconds, you will not be charged for the unsuccessful request.
You can include additional parameters to control what data is returned:
outputFormat
– Array of formats to return. Supports: html, text, markdown, json.screenshot
– Set to true
to include a screenshot of the rendered page.extractLinks
– Set to true
to extract all hyperlinks from the page.extractEmails
– Set to true
to extract all email addresses found on the page.To scrape content with location-specific views or bypass stricter anti-bot systems, you can configure proxies:
proxyType
– Choose proxy type. Options: residential
, datacenter
.proxyCountry
– Set a specific country for the proxy. Use ISO 3166-1 alpha-2 format (e.g. US
, DE
, IN
).That’s it. You’re ready to start scraping. For advanced usage and all parameters, see the API Params section.