curl --request POST \
--url https://api.agntdata.dev/v1/data/agnt/people/enrich \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"identifiers": {
"linkedin_url": "https://linkedin.com/in/patrickcollison"
},
"fields": [
"email",
"job_title",
"company_name",
"company_domain"
]
}
'import requests
url = "https://api.agntdata.dev/v1/data/agnt/people/enrich"
payload = {
"identifiers": { "linkedin_url": "https://linkedin.com/in/patrickcollison" },
"fields": ["email", "job_title", "company_name", "company_domain"]
}
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({
identifiers: {linkedin_url: 'https://linkedin.com/in/patrickcollison'},
fields: ['email', 'job_title', 'company_name', 'company_domain']
})
};
fetch('https://api.agntdata.dev/v1/data/agnt/people/enrich', 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.agntdata.dev/v1/data/agnt/people/enrich",
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([
'identifiers' => [
'linkedin_url' => 'https://linkedin.com/in/patrickcollison'
],
'fields' => [
'email',
'job_title',
'company_name',
'company_domain'
]
]),
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.agntdata.dev/v1/data/agnt/people/enrich"
payload := strings.NewReader("{\n \"identifiers\": {\n \"linkedin_url\": \"https://linkedin.com/in/patrickcollison\"\n },\n \"fields\": [\n \"email\",\n \"job_title\",\n \"company_name\",\n \"company_domain\"\n ]\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.agntdata.dev/v1/data/agnt/people/enrich")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"identifiers\": {\n \"linkedin_url\": \"https://linkedin.com/in/patrickcollison\"\n },\n \"fields\": [\n \"email\",\n \"job_title\",\n \"company_name\",\n \"company_domain\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/agnt/people/enrich")
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 \"identifiers\": {\n \"linkedin_url\": \"https://linkedin.com/in/patrickcollison\"\n },\n \"fields\": [\n \"email\",\n \"job_title\",\n \"company_name\",\n \"company_domain\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"full_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"work_email": "<string>",
"personal_email": "<string>",
"verified_email": "<string>",
"email_status": "<string>",
"mobile": "<string>",
"linkedin_url": "<string>",
"twitter_url": "<string>",
"job_title": "<string>",
"seniority": "<string>",
"department": "<string>",
"company": {
"name": "<string>",
"domain": "<string>",
"linkedin_url": "<string>"
},
"location": "<string>"
},
"meta": {
"costCents": 123,
"purchasedBalanceCents": 123,
"subscriptionRemainingCents": 123,
"cached": true,
"latencyMs": 123,
"priceRange": {
"minCents": 123,
"maxCents": 123
},
"budgetCents": 123,
"budgetCentsPerRecord": 123,
"providersAttempted": 123,
"fieldsReturned": [
"<string>"
],
"fieldsMissing": [
"<string>"
],
"records": 123
}
}Enrich a person
Enrich a person with normalized fields (email, mobile, job title, company, LinkedIn URL, location, …). REQUIRES a identifiers object containing ONLY email and/or linkedin_url — these are the unique handles we use to resolve the person upstream. first_name, last_name, domain, company, etc. are NOT accepted here and will return a VALIDATION_ERROR. If you only have a name + company, call /people/email-finder first to obtain an email, then pass that email here. Optional fields[] narrows the waterfall to only fetch the fields you care about. agntdata runs a field-aware waterfall: it stops once all requested fields are filled or your max_cost_cents budget is exhausted.
curl --request POST \
--url https://api.agntdata.dev/v1/data/agnt/people/enrich \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"identifiers": {
"linkedin_url": "https://linkedin.com/in/patrickcollison"
},
"fields": [
"email",
"job_title",
"company_name",
"company_domain"
]
}
'import requests
url = "https://api.agntdata.dev/v1/data/agnt/people/enrich"
payload = {
"identifiers": { "linkedin_url": "https://linkedin.com/in/patrickcollison" },
"fields": ["email", "job_title", "company_name", "company_domain"]
}
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({
identifiers: {linkedin_url: 'https://linkedin.com/in/patrickcollison'},
fields: ['email', 'job_title', 'company_name', 'company_domain']
})
};
fetch('https://api.agntdata.dev/v1/data/agnt/people/enrich', 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.agntdata.dev/v1/data/agnt/people/enrich",
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([
'identifiers' => [
'linkedin_url' => 'https://linkedin.com/in/patrickcollison'
],
'fields' => [
'email',
'job_title',
'company_name',
'company_domain'
]
]),
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.agntdata.dev/v1/data/agnt/people/enrich"
payload := strings.NewReader("{\n \"identifiers\": {\n \"linkedin_url\": \"https://linkedin.com/in/patrickcollison\"\n },\n \"fields\": [\n \"email\",\n \"job_title\",\n \"company_name\",\n \"company_domain\"\n ]\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.agntdata.dev/v1/data/agnt/people/enrich")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"identifiers\": {\n \"linkedin_url\": \"https://linkedin.com/in/patrickcollison\"\n },\n \"fields\": [\n \"email\",\n \"job_title\",\n \"company_name\",\n \"company_domain\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/agnt/people/enrich")
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 \"identifiers\": {\n \"linkedin_url\": \"https://linkedin.com/in/patrickcollison\"\n },\n \"fields\": [\n \"email\",\n \"job_title\",\n \"company_name\",\n \"company_domain\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"full_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"work_email": "<string>",
"personal_email": "<string>",
"verified_email": "<string>",
"email_status": "<string>",
"mobile": "<string>",
"linkedin_url": "<string>",
"twitter_url": "<string>",
"job_title": "<string>",
"seniority": "<string>",
"department": "<string>",
"company": {
"name": "<string>",
"domain": "<string>",
"linkedin_url": "<string>"
},
"location": "<string>"
},
"meta": {
"costCents": 123,
"purchasedBalanceCents": 123,
"subscriptionRemainingCents": 123,
"cached": true,
"latencyMs": 123,
"priceRange": {
"minCents": 123,
"maxCents": 123
},
"budgetCents": 123,
"budgetCentsPerRecord": 123,
"providersAttempted": 123,
"fieldsReturned": [
"<string>"
],
"fieldsMissing": [
"<string>"
],
"records": 123
}
}Authorizations
Bearer token. Pass your agntdata API key as: Authorization: Bearer agnt_live_...
Body
Unique handles used to resolve a person upstream. Provide AT LEAST ONE of email or linkedin_url. Name + company are NOT accepted here — for that flow, call /people/email-finder first to obtain an email.
Show child attributes
Show child attributes
email, work_email, personal_email, verified_email, mobile, linkedin_url, twitter_url, full_name, first_name, last_name, job_title, seniority, department, company_name, company_domain, location x >= 0