baranka

LetsExtract Email Scraper API

Apr 9th, 2025
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.63 KB | Help | 0 0
  1. 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.
  2.  
  3. Base URL
  4. https://api.letsextract.com/v1
  5. Endpoint
  6. Extract Emails
  7. POST /extract
  8. Request Headers
  9. Content-Type: application/json
  10. Authorization: Bearer YOUR_API_KEY
  11. Request Body
  12. {
  13.   "url": "https://example.com",
  14.   "options": {
  15.     "deep_scrape": true,
  16.     "filter_domain": "example.com"
  17.   }
  18. }
  19. Parameters
  20. url: (string) The website URL from which you want to extract email addresses.
  21. options: (object) Optional parameters.
  22. deep_scrape: (boolean) When set to true, the scraper will follow links on the provided page to find additional email addresses.
  23. filter_domain: (string) Optional. If provided, only emails from this domain will be included in the results.
  24. Response
  25. Successful Response
  26. Status Code: 200 OK
  27.  
  28. {
  29.   "status": "success",
  30.   "data": [
  31.   ],
  32.   "message": "Emails extracted successfully."
  33. }
  34. Error Response
  35. Status Code: 400 Bad Request
  36.  
  37. {
  38.   "status": "error",
  39.   "message": "Invalid URL provided."
  40. }
  41. Example
  42. Here’s an example of how to use the API with curl:
  43.  
  44. curl -X POST https://api.letsextract.com/v1/extract \
  45. -H "Content-Type: application/json" \
  46. -H "Authorization: Bearer YOUR_API_KEY" \
  47. -d '{
  48.   "url": "https://letsextract.com/email-extractor/",
  49.   "options": {
  50.     "deep_scrape": true,
  51.     "filter_domain": "letsextract.com"
  52.   }
  53. }'
  54. Documentation URL
  55. For more details, visit our documentation page: https://letsextract.com/email-extractor/
Advertisement
Add Comment
Please, Sign In to add comment