curl --request POST \
--url https://api.tamtam.ai/api/v2/people/experiences \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"linkedin_url": "https://www.linkedin.com/in/jean-dupont",
"custom": {}
}
],
"force": true,
"refresh_only": true
}
'import requests
url = "https://api.tamtam.ai/api/v2/people/experiences"
payload = {
"requests": [
{
"linkedin_url": "https://www.linkedin.com/in/jean-dupont",
"custom": {}
}
],
"force": True,
"refresh_only": True
}
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({
requests: [{linkedin_url: 'https://www.linkedin.com/in/jean-dupont', custom: {}}],
force: true,
refresh_only: true
})
};
fetch('https://api.tamtam.ai/api/v2/people/experiences', 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/experiences",
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([
'requests' => [
[
'linkedin_url' => 'https://www.linkedin.com/in/jean-dupont',
'custom' => [
]
]
],
'force' => true,
'refresh_only' => true
]),
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/experiences"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\",\n \"custom\": {}\n }\n ],\n \"force\": true,\n \"refresh_only\": true\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/experiences")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\",\n \"custom\": {}\n }\n ],\n \"force\": true,\n \"refresh_only\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tamtam.ai/api/v2/people/experiences")
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 \"requests\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\",\n \"custom\": {}\n }\n ],\n \"force\": true,\n \"refresh_only\": true\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"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"
}
],
"linkedin_url": "<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"
},
"custom": {},
"error": "profile_unknown",
"source": "cached"
}
]
}{
"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"
}Read people's experiences
Return the LinkedIn experiences of up to 20 profiles, current position first, at the refresh price rather than the discovery price.
For a profile Tamtam already holds this is free: experiences refreshed within the last 30 days are answered from what Tamtam holds with no provider call (source: cached), older ones are re-read from LinkedIn (source: refreshed). Pass force: true to re-read regardless.
For a profile Tamtam does not hold, the row falls back to a full extract, which creates a contact and costs 1 credit exactly as POST /v2/people/extract (source: extracted). Pass refresh_only: true to refuse that fallback; the row then carries error: profile_unknown and nothing is spent.
Each row answers on its own: one profile gone from LinkedIn or one failed provider call is an error on that row while the rest are answered. The one whole-batch refusal is 402, checked before anything runs, when the fallback extracts the batch would need cannot be paid for.
Free for a profile Tamtam holds; 1 credit per profile it extracts.
curl --request POST \
--url https://api.tamtam.ai/api/v2/people/experiences \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"linkedin_url": "https://www.linkedin.com/in/jean-dupont",
"custom": {}
}
],
"force": true,
"refresh_only": true
}
'import requests
url = "https://api.tamtam.ai/api/v2/people/experiences"
payload = {
"requests": [
{
"linkedin_url": "https://www.linkedin.com/in/jean-dupont",
"custom": {}
}
],
"force": True,
"refresh_only": True
}
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({
requests: [{linkedin_url: 'https://www.linkedin.com/in/jean-dupont', custom: {}}],
force: true,
refresh_only: true
})
};
fetch('https://api.tamtam.ai/api/v2/people/experiences', 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/experiences",
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([
'requests' => [
[
'linkedin_url' => 'https://www.linkedin.com/in/jean-dupont',
'custom' => [
]
]
],
'force' => true,
'refresh_only' => true
]),
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/experiences"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\",\n \"custom\": {}\n }\n ],\n \"force\": true,\n \"refresh_only\": true\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/experiences")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\",\n \"custom\": {}\n }\n ],\n \"force\": true,\n \"refresh_only\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tamtam.ai/api/v2/people/experiences")
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 \"requests\": [\n {\n \"linkedin_url\": \"https://www.linkedin.com/in/jean-dupont\",\n \"custom\": {}\n }\n ],\n \"force\": true,\n \"refresh_only\": true\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"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"
}
],
"linkedin_url": "<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"
},
"custom": {},
"error": "profile_unknown",
"source": "cached"
}
]
}{
"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
Profiles to read, at most 20 per call.
1 - 20 elementsShow child attributes
Show child attributes
Re-read the experiences from LinkedIn even when Tamtam refreshed them within the last 30 days. Default false: a profile refreshed within 30 days is answered from what Tamtam holds, at no cost and no provider call.
Never fall back to a full profile extract for a profile Tamtam does not hold. Default false: an unknown profile is extracted, which creates a contact and costs 1 credit, exactly as POST /v2/people/extract. Set true for a run that must not spend discovery credits; unknown profiles then come back with error profile_unknown.
Response
OK
One entry per request row, in the same order.
Show child attributes
Show child attributes