# 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();
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://harishsg99.gitbook.io/simplyapi/email-finder-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
