SDKs
Official Python SDK
Official Python SDK
We’ve built a Python client library, peopledatalabs
, to help streamline and simplify the process of integrating PDL API endpoints into your application. Written in pure Python, this library supports all our API endpoints, such as the Person Enrichment API. For example:
result = client.person.enrichment(
phone="4155688415",
pretty=True,
)
if result.ok:
print(result.text)
else:
print(
f"Status: {result.status_code};"
f"\nReason: {result.reason};"
f"\nMessage: {result.json()['error']['message']};"
)
For more usage information, see the following resources:
How to get it
This library is available as a Python package, and you can install it with:
pip install peopledatalabs
Open Source
We've also open-sourced the library, which is available on github. Pull requests, feature suggestions and bug reports are all welcome!
Official JavaScript SDK
Official JavaScript SDK
We’ve built a JavaScript client library, peopledatalabs-js
, to help streamline and simplify the process of integrating PDL API endpoints into your application. Written in pure JavaScript, it supports both frontend and backend applications. This library supports all our API endpoints, such as the Person Enrichment API. For example:
PDLJS.person.enrichment({profile: “linkedin.com/in/seanthorne” }).then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
For more usage information, see the following resources:
How to get it
This library is available as an npm package, and you can install it with:
npm i peopledatalabs
Open Source
We've also open-sourced the library, which is available on github. Pull requests, feature suggestions and bug reports are all welcome!
Official Ruby SDK
Official Ruby SDK
We’ve built a Ruby client library, peopledatalabs
, to help streamline and simplify the process of integrating PDL API endpoints into your application. Written in pure Ruby, this library supports all our API endpoints, such as the Person Enrichment API. For example:
require 'peopledatalabs'
require 'json'
Peopledatalabs.api_key = 'api_key'
result = Peopledatalabs::Enrichment.person(params: { phone: '4155688415' })
if result['status'] == 200
puts JSON.pretty_generate(result['data'])
else
puts "Status: #{result['status']};"\
"\nReason: #{result['error']['type']};"\
"\nMessage: #{result['error']['message']};"
end
For more usage information, see the following resources:
How to get it
This library is available as a Ruby gem, and you can install it by doing the following:
- Add the gem to your application's Gemfile:
gem 'peopledatalabs'
- Then execute:
bundle
Or you can install it yourself by running:
gem install peopledatalabs
Open Source
We've also open-sourced the library, which is available on github. Pull requests, feature suggestions and bug reports are all welcome!
Updated 12 days ago