/email_extractor

The /email_extractor node is useful for extracting email addresses from the content of a provided URL. Users can submit a URL, and the endpoint will fetch the content of that URL and return all email addresses found within the page.

Request Method

  • POST

Request Body

  • url: The URL of the web page from which to extract email addresses. This must be provided as a JSON object in the request body.

Response

  • emails: An array of email addresses extracted from the provided URL.

How to Make a Call

To use the /email_extractor endpoint, you need to make a POST request to the following URL:

https://node.nodetrigger.com/email_extractor

Include the URL of the web page you want to extract emails from in the JSON body of your request.

Real-life Examples

Example 1: Extracting emails from a contact page

curl -X POST https://node.nodetrigger.com/email_extractor \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/contact"}'

Example 2: Extracting emails from a blog post

curl -X POST https://node.nodetrigger.com/email_extractor \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/blog-post"}'

In both examples, replace https://example.com/contact and https://example.com/blog-post with the actual URL from which you want to extract email addresses.

The response will be a JSON object containing an array of email addresses found on the provided URL.


Response Example:

{
    "emails": [
        "info@example.com",
        "support@example.com"
    ]
}