Quickstart
Get started with the ValidatedMails Discover API
Find email addresses, phone numbers, and social links in a website’s HTML.
1. Set up your key
Create an API key and save it as the server environment variable VALIDATEDMAILS_API_KEY. Follow the key setup instructions if this is your first request.
Discovery normally costs 2 credits when it finds at least one contact signal. Unknown, blocked, timeout, and invalid_url results are not charged.
2. Submit a public website URL
curl -X POST https://api.validatedmails.com/discover \
-H "Authorization: Bearer $VALIDATEDMAILS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","crawl_depth":1}'Replace the example URL with a public HTTP or HTTPS page. This endpoint uses POST. It reads the HTML without running JavaScript.
3. Read the extracted contacts
{
"status": "ok",
"source_url": "https://example.com/contact",
"email": { "values": ["info@example.com"] },
"response_ms": 312,
"trace_id": "..."
}The example is illustrative. Empty contact fields are omitted. Check for a field before reading its values; extraction does not verify email deliverability.
Send discovered addresses to the validation API if you also need to verify them.
Handle the outcome
- ok: at least one contact signal was found.
- unknown: no usable contacts were extracted, or the page could not be processed.
- blocked: the website denied access or returned a block page.
- timeout: the fetch exceeded the time budget.
- invalid_url: the URL failed validation or network safety checks.
These are JSON outcome values, distinct from the API’s HTTP status. See HTTP error handling for authentication and request failures.
Try contact pages when needed
Set crawl_depth to 2 or 3 to allow fallback to likely contact or about pages on the same site. Discovery only tries another page if the current page has no contact signals, and stops when it finds any.
Read the full endpoint reference for input fields, limits, response fields, and charging rules.