Emails Detector

Extracts emails from text for validation and compliance.

The Detect Emails API is useful for processing and validating large datasets to identify email addresses or detecting emails in places where they're not supposed to be.

This API is ideal for developers working on data validation tools, form processing applications, or compliance monitoring systems. It automates the extraction of email addresses, ensuring accuracy and consistency. Use cases include cleaning and validating customer databases, monitoring for unauthorized email inclusion, and enhancing contact information management.

AI jobs involve two key steps:

  1. Submitting the AI job: Initiating the process by sending the job request.
  2. Monitoring and receiving results: Continuously checking the job status and obtaining the final output upon successful completion.

Step 1. Submit the AI Job request

Endpoints: POST - /api/v1/content/detect_emails

Attribute Type Mandatory Description
content String Yes Provide the content from where email addresses need to be detected.

REQUEST EXAMPLE:

{
  "content": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Contact us at example@email.com or lorem.ipsum@email.com for more information."
}

RESPONSE EXAMPLE:

{
  "status_url": "https://sharpapi.com/api/v1/content/translate/job/status/5de4887a-0dfd-49b6-8edb-9280e468c210",
  "job_id": "5de4887a-0dfd-49b6-8edb-9280e468c210"
}

Step 2. Monitor & Fetch AI Job Results

Endpoints: GET - /api/v1/content/detect_emails/job/status/:uuid

An endpoint is used to check on the progress of the requested API job.

RESULT EXAMPLE:

{
  "data": {
    "type": "api_job_result",
    "id": "06f4a1ba-b6b1-48b3-b071-807e3d41db4d",
    "attributes": {
      "status": "success",
      "type": "content_detect_emails",
      "result": [
        "example@email.com",
        "lorem.ipsum@email.com"
      ]
    }
  }
}

When Laravel/PHP E-commerce App Meets AI

Hey fellow Laravel enthusiasts! In the ever-evolving landscape of e-commerce, integrating AI into your Laravel applications is not just a luxury, it’s a necessity. With SharpAPI’s Laravel package, it’s now easier than ever. In this blog, I’ll guide you through 10 transformative use cases for enhancing your Laravel-based e-commerce applications using SharpAPI.