Skip to content
POST AI agent ready /v1/text/extract-emails

Extract Emails API - Free Email Extractor

Scans a text string and returns all detected email addresses. Uses RFC 5322-compliant pattern matching. Returns a deduplicated list.

Parameters

stringrequired

The text to scan for email addresses.

Code examples

curl -X POST https://api.botoi.com/v1/text/extract-emails \
  -H "Content-Type: application/json" \
  -d '{"text":"Reach us at support@botoi.com or billing@botoi.com for help."}'

When to use this API

Parse contact info from scraped web pages

Extract email addresses from "Contact Us" pages or directory listings during web scraping workflows.

Detect and redact emails in user-generated content

Find email addresses in forum posts or reviews so you can mask them before public display to protect privacy.

Frequently asked questions

Does this validate the extracted email addresses?
No. It extracts addresses that match the email format pattern. For deliverability validation, use the /v1/email/verify endpoint.
Are duplicates removed?
Yes. Each unique email address appears only once in the response.
Does this handle emails with subdomains?
Yes. Addresses like user@mail.example.co.uk are correctly detected and extracted.
What about mailto: links in text?
The API extracts the email address from mailto: links, returning the address without the mailto: prefix.

Get your API key

Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.