> For the complete documentation index, see [llms.txt](https://harishsg99.gitbook.io/simplyapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://harishsg99.gitbook.io/simplyapi/email-finder-api.md).

# Email finder API

## Email finder API

<mark style="color:green;">`POST`</mark> `https://www.simplyapi.co/email-finder/`

#### Headers

| Name    | Type   | Description          |
| ------- | ------ | -------------------- |
| api-key | string | Authentication token |

#### Request Body

| Name      | Type   | Description                                 |
| --------- | ------ | ------------------------------------------- |
| firstname | string | first name of the person                    |
| lastname  | string | last name of the person                     |
| domain    | string | domain for person's company or employed for |

{% tabs %}
{% tab title="200 Emails retrieved." %}

```
{
    "emailaddress": [
        "sg.harish@nocodeapps.io",
        "harish.sg@nocodeapps.io",
        "sgharish@nocodeapps.io",
        "harishsg@nocodeapps.io"
    ]
}
```

{% endtab %}
{% endtabs %}

```bash
curl --location --request POST 'http://www.simplyapi.tk/api/email-finder/' \
--header 'api-key: 0ed3ccc12ae2b472ad0637bf3600bd0c32d6b03c' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstname":"harish",
    "lastname":"sg",
    "domain":"nocodeapps.io"

}'
```

## Python for email finder API

```python
import requests
import json

url = "http://localhost:8000/api/email-finder/"

payload = json.dumps({
  "firstname": "harish",
  "lastname": "sg",
  "domain": "nocodeapps.io"
})
headers = {
  'api-key': '0ed3ccc12ae2b472ad0637bf3600bd0c32d6b03c',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

## PHP for email finder API

```python
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('http://localhost:8000/api/email-finder/');
$request->setMethod(HTTP_Request2::METHOD_POST);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setHeader(array(
  'api-key' => '0ed3ccc12ae2b472ad0637bf3600bd0c32d6b03c',
  'Content-Type' => 'application/json'
));
$request->setBody('{
\n    "firstname":"harish",
\n    "lastname":"sg",
\n    "domain":"nocodeapps.io"
\n
\n}');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}
```
