Quickstart
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.
Get Your API Key
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.
Make Your First Request
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.
Add Optional Parameters
You can include additional parameters to control what data is returned:
outputFormat
– Array of formats to return. Supports: html, text, markdown, json.screenshot
– Set totrue
to include a screenshot of the rendered page.extractLinks
– Set totrue
to extract all hyperlinks from the page.extractEmails
– Set totrue
to extract all email addresses found on the page.
Proxy Configuration
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.