curl --request POST \
--url https://api.tamtam.ai/api/v2/people/extract \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"company_name": "Acme Corp",
"email": "jean.dupont@acme.com",
"firstname": "Jean",
"lastname": "Dupont",
"linkedin_url": "https://www.linkedin.com/in/jean-dupont"
}
'import requests
url = "https://api.tamtam.ai/api/v2/people/extract"
payload = {
"company_name": "Acme Corp",
"email": "jean.dupont@acme.com",
"firstname": "Jean",
"lastname": "Dupont",
"linkedin_url": "https://www.linkedin.com/in/jean-dupont"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_name: 'Acme Corp',
email: 'jean.dupont@acme.com',
firstname: 'Jean',
lastname: 'Dupont',
linkedin_url: 'https://www.linkedin.com/in/jean-dupont'
})
};
fetch('https://api.tamtam.ai/api/v2/people/extract', 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://api.tamtam.ai/api/v2/people/extract",
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([
'company_name' => 'Acme Corp',
'email' => 'jean.dupont@acme.com',
'firstname' => 'Jean',
'lastname' => 'Dupont',
'linkedin_url' => 'https://www.linkedin.com/in/jean-dupont'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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://api.tamtam.ai/api/v2/people/extract"
payload := strings.NewReader("{\n \"company_name\": \"Acme Corp\",\n \"email\": \"jean.dupont@acme.com\",\n \"firstname\": \"Jean\",\n \"lastname\": \"Dupont\",\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://api.tamtam.ai/api/v2/people/extract")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_name\": \"Acme Corp\",\n \"email\": \"jean.dupont@acme.com\",\n \"firstname\": \"Jean\",\n \"lastname\": \"Dupont\",\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tamtam.ai/api/v2/people/extract")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_name\": \"Acme Corp\",\n \"email\": \"jean.dupont@acme.com\",\n \"firstname\": \"Jean\",\n \"lastname\": \"Dupont\",\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\"\n}"
response = http.request(request)
puts response.read_body{
"contact_id": "<string>",
"experiences": [
{
"title": "<string>",
"company_linkedin_id": "<string>",
"company_name": "<string>",
"company_slug": "<string>",
"country_code": "<string>",
"description": "<string>",
"end_date": "2024-06",
"location": "<string>",
"start_date": "2022-01"
}
],
"firstname": "<string>",
"lastname": "<string>",
"linkedin_profile_id": "<string>",
"linkedin_url": "<string>",
"city": "<string>",
"country_code": "<string>",
"current_experience": {
"title": "<string>",
"company_linkedin_id": "<string>",
"company_name": "<string>",
"company_slug": "<string>",
"country_code": "<string>",
"description": "<string>",
"end_date": "2024-06",
"location": "<string>",
"start_date": "2022-01"
},
"headline": "<string>",
"photo_url": "<string>",
"state": "<string>",
"summary": "<string>"
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Extract a person's profile
Resolve a person from the best available input and return their full LinkedIn profile with experiences.
Resolution priority: linkedin_url > email > firstname/lastname.
All fields are optional, but at least one resolution path must be provided. company_name improves accuracy for email and name-based resolution.
Costs 1 credit.
curl --request POST \
--url https://api.tamtam.ai/api/v2/people/extract \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"company_name": "Acme Corp",
"email": "jean.dupont@acme.com",
"firstname": "Jean",
"lastname": "Dupont",
"linkedin_url": "https://www.linkedin.com/in/jean-dupont"
}
'import requests
url = "https://api.tamtam.ai/api/v2/people/extract"
payload = {
"company_name": "Acme Corp",
"email": "jean.dupont@acme.com",
"firstname": "Jean",
"lastname": "Dupont",
"linkedin_url": "https://www.linkedin.com/in/jean-dupont"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_name: 'Acme Corp',
email: 'jean.dupont@acme.com',
firstname: 'Jean',
lastname: 'Dupont',
linkedin_url: 'https://www.linkedin.com/in/jean-dupont'
})
};
fetch('https://api.tamtam.ai/api/v2/people/extract', 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://api.tamtam.ai/api/v2/people/extract",
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([
'company_name' => 'Acme Corp',
'email' => 'jean.dupont@acme.com',
'firstname' => 'Jean',
'lastname' => 'Dupont',
'linkedin_url' => 'https://www.linkedin.com/in/jean-dupont'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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://api.tamtam.ai/api/v2/people/extract"
payload := strings.NewReader("{\n \"company_name\": \"Acme Corp\",\n \"email\": \"jean.dupont@acme.com\",\n \"firstname\": \"Jean\",\n \"lastname\": \"Dupont\",\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://api.tamtam.ai/api/v2/people/extract")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_name\": \"Acme Corp\",\n \"email\": \"jean.dupont@acme.com\",\n \"firstname\": \"Jean\",\n \"lastname\": \"Dupont\",\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tamtam.ai/api/v2/people/extract")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_name\": \"Acme Corp\",\n \"email\": \"jean.dupont@acme.com\",\n \"firstname\": \"Jean\",\n \"lastname\": \"Dupont\",\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\"\n}"
response = http.request(request)
puts response.read_body{
"contact_id": "<string>",
"experiences": [
{
"title": "<string>",
"company_linkedin_id": "<string>",
"company_name": "<string>",
"company_slug": "<string>",
"country_code": "<string>",
"description": "<string>",
"end_date": "2024-06",
"location": "<string>",
"start_date": "2022-01"
}
],
"firstname": "<string>",
"lastname": "<string>",
"linkedin_profile_id": "<string>",
"linkedin_url": "<string>",
"city": "<string>",
"country_code": "<string>",
"current_experience": {
"title": "<string>",
"company_linkedin_id": "<string>",
"company_name": "<string>",
"company_slug": "<string>",
"country_code": "<string>",
"description": "<string>",
"end_date": "2024-06",
"location": "<string>",
"start_date": "2022-01"
},
"headline": "<string>",
"photo_url": "<string>",
"state": "<string>",
"summary": "<string>"
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
Account API key passed in the Authorization header
Body
Company name (improves matching accuracy for email and name-based resolution)
"Acme Corp"
Email address to resolve to a LinkedIn profile
"jean.dupont@acme.com"
Person first name
"Jean"
Person last name
"Dupont"
LinkedIn profile URL. If provided, used directly to extract the profile.
"https://www.linkedin.com/in/jean-dupont"
Response
OK
Tamtam contact ID
All experiences
Show child attributes
Show child attributes
First name
Last name
Tamtam LinkedIn profile ID
LinkedIn profile URL
City
Country code (2-letter ISO)
Current (most recent) experience with no end date
Show child attributes
Show child attributes
LinkedIn headline
Profile photo URL
State or region
LinkedIn About section