Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This API allows you to scrape email addresses from a specified URL. With our simple endpoint, you can efficiently extract emails for marketing, outreach, or any other bulk email needs.
- Base URL
- https://api.letsextract.com/v1
- Endpoint
- Extract Emails
- POST /extract
- Request Headers
- Content-Type: application/json
- Authorization: Bearer YOUR_API_KEY
- Request Body
- {
- "url": "https://example.com",
- "options": {
- "deep_scrape": true,
- "filter_domain": "example.com"
- }
- }
- Parameters
- url: (string) The website URL from which you want to extract email addresses.
- options: (object) Optional parameters.
- deep_scrape: (boolean) When set to true, the scraper will follow links on the provided page to find additional email addresses.
- filter_domain: (string) Optional. If provided, only emails from this domain will be included in the results.
- Response
- Successful Response
- Status Code: 200 OK
- {
- "status": "success",
- "data": [
- ],
- "message": "Emails extracted successfully."
- }
- Error Response
- Status Code: 400 Bad Request
- {
- "status": "error",
- "message": "Invalid URL provided."
- }
- Example
- Here’s an example of how to use the API with curl:
- curl -X POST https://api.letsextract.com/v1/extract \
- -H "Content-Type: application/json" \
- -H "Authorization: Bearer YOUR_API_KEY" \
- -d '{
- "url": "https://letsextract.com/email-extractor/",
- "options": {
- "deep_scrape": true,
- "filter_domain": "letsextract.com"
- }
- }'
- Documentation URL
- For more details, visit our documentation page: https://letsextract.com/email-extractor/
Advertisement
Add Comment
Please, Sign In to add comment