Find person ID
curl --request POST \
--url https://app.tryspecter.com/api/v1/people/resolve \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"to_resolve": [
{
"linkedin_url": "https://www.linkedin.com/in/patrickcollison"
},
{
"linkedin_id": "dhorowitz"
},
{
"linkedin_num_id": 123456789
}
]
}
'import requests
url = "https://app.tryspecter.com/api/v1/people/resolve"
payload = { "to_resolve": [{ "linkedin_url": "https://www.linkedin.com/in/patrickcollison" }, { "linkedin_id": "dhorowitz" }, { "linkedin_num_id": 123456789 }] }
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({
to_resolve: [
{linkedin_url: 'https://www.linkedin.com/in/patrickcollison'},
{linkedin_id: 'dhorowitz'},
{linkedin_num_id: 123456789}
]
})
};
fetch('https://app.tryspecter.com/api/v1/people/resolve', 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/resolve",
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([
'to_resolve' => [
[
'linkedin_url' => 'https://www.linkedin.com/in/patrickcollison'
],
[
'linkedin_id' => 'dhorowitz'
],
[
'linkedin_num_id' => 123456789
]
]
]),
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/resolve"
payload := strings.NewReader("{\n \"to_resolve\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/patrickcollison\"\n },\n {\n \"linkedin_id\": \"dhorowitz\"\n },\n {\n \"linkedin_num_id\": 123456789\n }\n ]\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/resolve")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"to_resolve\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/patrickcollison\"\n },\n {\n \"linkedin_id\": \"dhorowitz\"\n },\n {\n \"linkedin_num_id\": 123456789\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/people/resolve")
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 \"to_resolve\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/patrickcollison\"\n },\n {\n \"linkedin_id\": \"dhorowitz\"\n },\n {\n \"linkedin_num_id\": 123456789\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"query": {
"linkedin_url": "https://www.linkedin.com/in/sarahchen9776"
},
"matches": [
{
"person_id": "per_7f8d9e2a1b3c4d5e6f7g8h9i0",
"full_name": "Sarah Chen",
"linkedin_url": "https://www.linkedin.com/in/sarahchen9776"
}
]
},
{
"query": {
"linkedin_id": "someone-not-in-specter"
},
"matches": []
}
]{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "NOT_PERMITTED",
"message": "You do not have permission to access this resource."
}{
"errorCode": "<string>",
"message": "<string>"
}People
Find person ID
Resolve a batch of LinkedIn identifiers (profile URL, vanity id, numeric id, or URN) into the Specter person_id. Re-use that id with the id-only people endpoints such as Get person by ID.
Free. This call does not consume credits. The id-only endpoints you call next are charged as usual.
What you need
One or more LinkedIn identifiers to resolve (1–50 per request). No Specter ID is required; that is what this returns.
Behaviour
- Pass identifiers under
to_resolve(1–50 per request). Each entry must carry exactly one identifier; none, or more than one, returns a validation error. - The response has one result group per input, in the same order, so you can attribute each result back to what you sent.
queryechoes the identifier. - Every identifier form addresses a single profile, so
matchesholds at most one person. - An identifier Specter doesn’t hold keeps its place with an empty
matcheslist. Nothing is enriched — use Enrich person when you want the profile fetched.
What you do next
- Get the full profile. Pass the returned
person_idto Get person by ID. - Reach out. Get a verified address with Get person email.
- Watch for moves. Pull their signal history with Get person talent signals.
POST
/
people
/
resolve
Find person ID
curl --request POST \
--url https://app.tryspecter.com/api/v1/people/resolve \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"to_resolve": [
{
"linkedin_url": "https://www.linkedin.com/in/patrickcollison"
},
{
"linkedin_id": "dhorowitz"
},
{
"linkedin_num_id": 123456789
}
]
}
'import requests
url = "https://app.tryspecter.com/api/v1/people/resolve"
payload = { "to_resolve": [{ "linkedin_url": "https://www.linkedin.com/in/patrickcollison" }, { "linkedin_id": "dhorowitz" }, { "linkedin_num_id": 123456789 }] }
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({
to_resolve: [
{linkedin_url: 'https://www.linkedin.com/in/patrickcollison'},
{linkedin_id: 'dhorowitz'},
{linkedin_num_id: 123456789}
]
})
};
fetch('https://app.tryspecter.com/api/v1/people/resolve', 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/resolve",
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([
'to_resolve' => [
[
'linkedin_url' => 'https://www.linkedin.com/in/patrickcollison'
],
[
'linkedin_id' => 'dhorowitz'
],
[
'linkedin_num_id' => 123456789
]
]
]),
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/resolve"
payload := strings.NewReader("{\n \"to_resolve\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/patrickcollison\"\n },\n {\n \"linkedin_id\": \"dhorowitz\"\n },\n {\n \"linkedin_num_id\": 123456789\n }\n ]\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/resolve")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"to_resolve\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/patrickcollison\"\n },\n {\n \"linkedin_id\": \"dhorowitz\"\n },\n {\n \"linkedin_num_id\": 123456789\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/people/resolve")
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 \"to_resolve\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/patrickcollison\"\n },\n {\n \"linkedin_id\": \"dhorowitz\"\n },\n {\n \"linkedin_num_id\": 123456789\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"query": {
"linkedin_url": "https://www.linkedin.com/in/sarahchen9776"
},
"matches": [
{
"person_id": "per_7f8d9e2a1b3c4d5e6f7g8h9i0",
"full_name": "Sarah Chen",
"linkedin_url": "https://www.linkedin.com/in/sarahchen9776"
}
]
},
{
"query": {
"linkedin_id": "someone-not-in-specter"
},
"matches": []
}
]{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "NOT_PERMITTED",
"message": "You do not have permission to access this resource."
}{
"errorCode": "<string>",
"message": "<string>"
}Authorizations
Body
application/json
The identifiers to resolve.
Required array length:
1 - 50 elementsShow child attributes
Show child attributes
Response
One result group per input identifier, in the same order as to_resolve.
Was this page helpful?