Skip to main content
POST
/
people
/
by-email
Reverse email lookup
curl --request POST \
  --url https://app.tryspecter.com/api/v1/people/by-email \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "email": "barney@example.com"
}
'
import requests

url = "https://app.tryspecter.com/api/v1/people/by-email"

payload = { "email": "barney@example.com" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'barney@example.com'})
};

fetch('https://app.tryspecter.com/api/v1/people/by-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://app.tryspecter.com/api/v1/people/by-email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'barney@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://app.tryspecter.com/api/v1/people/by-email"

payload := strings.NewReader("{\n \"email\": \"barney@example.com\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://app.tryspecter.com/api/v1/people/by-email")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"barney@example.com\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.tryspecter.com/api/v1/people/by-email")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"barney@example.com\"\n}"

response = http.request(request)
puts response.read_body
{
  "email": "barney@example.com",
  "person_id": "per_310bf5c3fda24292309031e0",
  "score": 8,
  "first_name": "Barney",
  "last_name": "Kelly-Wyatt",
  "linkedin_url": "https://www.linkedin.com/in/barney-kelly-wyatt",
  "company_id": "5e3a7f2b0aa7a3270a55f2a7"
}
{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}
{
"errorCode": "OUT_OF_CREDITS",
"message": "<string>"
}
{
"errorCode": "NOT_PERMITTED",
"message": "You do not have permission to access this resource."
}
{
"errorCode": "<string>",
"message": "<string>"
}
{
"errorCode": "<string>",
"message": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Request to resolve an email address to a person.

email
string
required

Email of the person to look up.

Example:

"barney@example.com"

Response

Successful match response containing person details and confidence score.

email
string
required

The email address that was looked up, echoed back.

Example:

"barney@example.com"

person_id
string
required

The matched person's Specter ID.

Example:

"per_310bf5c3fda24292309031e0"

score
number<float>
required

Confidence score for the match (1–10).

Example:

8

first_name
string

The person's first name.

Example:

"Barney"

last_name
string

The person's last name.

Example:

"Kelly-Wyatt"

linkedin_url
string

URL for the person's LinkedIn account.

Example:

"https://www.linkedin.com/in/barney-kelly-wyatt"

company_id
string

Specter company ID of the person's current company.

Example:

"5e3a7f2b0aa7a3270a55f2a7"