Python SDK

The People Data Labs Python Helper Library

The People Data Labs Python Helper Library makes it easy to interact with our APIs from your Python application. You can find the most recent version of the library on PyPi. The People Data Labs Python Helper Library supports Python applications written in Python 3.7 and above.

How To Install the Library

This library is available as a Python package, and you can install it like this:

pip install peopledatalabs

Using the Library

Make sure that you sign up for a free PDL API key if you don't already have one.

import json

# See https://github.com/peopledatalabs/peopledatalabs-python
from peopledatalabs import PDLPY

# Create a client, specifying your API key
CLIENT = PDLPY(
    api_key="YOUR API KEY",
)

# Create a parameters JSON object
PARAMS = {
    "profile": ["linkedin.com/in/seanthorne"]
}

# Pass the parameters object to the Person Enrichment API
json_response = CLIENT.person.enrichment(**PARAMS).json()

# Print the API response in JSON format
print(json_response)

More Information, Pull Requests, Feature Suggestions and Bug Reports

We've open-sourced the library, which is available on GitHub. Go there to view more information. You can also submit pull requests, feature suggestions and bug reports.