Examples - Identify API

Code examples and walkthroughs using the Person Identify API

On this page you'll find a collection of full-running code examples that illustrate various aspects of the functionality of the Identify API.

Code examples here are shown using both Python3 and cURL.

📘

See a bug? Want to see a specific example?

Feel free to use the Suggest Edits button in the top right-hand corner of this page to point out any bugs or request any specific code examples for this API endpoint you'd like to see here!

Basic Usage

I would like to find the most strongly associated profiles for the name "Sean Thorne"

import requests

API_KEY = "ENTER YOUR API KEY"

PDL_URL = "https://api.peopledatalabs.com/v5/person/identify"

PARAMS = {
  "name": "sean thorne",
  "pretty": True,
  "api_key": API_KEY
}

response = requests.request("GET", PDL_URL, params=PARAMS)

print(response.text)

response_data = response.json()
matches = response_data['matches']

print(f"Found {len(matches)} matches")
API_KEY="ENTER YOUR API KEY HERE"
curl -X GET -G \
  "https://api.peopledatalabs.com/v5/person/identify"\
  -H "X-Api-Key: ${API_KEY}" \
  --data-urlencode 'profile=linkedin.com/in/seanthorne'\
  --data-urlencode 'pretty=True'

Associated LinkedIn Profiles

I would like to find the most strongly associated profiles for a particular linkedin account

import requests

API_KEY = "ENTER YOUR API KEY"

PDL_URL = "https://api.peopledatalabs.com/v5/person/identify"

PARAMS = {
  "profile": "linkedin.com/in/seanthorne",
  "pretty": True,
  "api_key": API_KEY
}

response = requests.request("GET", PDL_URL, params=PARAMS)

print(response.text)

response_data = response.json()
matches = response_data['matches']

print(f"Found {len(matches)} matches")
API_KEY="ENTER YOUR API KEY HERE"
curl -X GET -G \
  "https://api.peopledatalabs.com/v5/person/identify"\
  -H "X-Api-Key: ${API_KEY}" \
  --data-urlencode 'profile=linkedin.com/in/seanthorne'\
  --data-urlencode 'pretty=True'

Did this page help you?