Ruby SDK

Getting started with the People Data Labs Ruby Helper Library, which is an open-source SDK that lets you write Ruby code to make HTTP requests to our APIs

The People Data Labs Ruby Helper Library

The People Data Labs Ruby Helper Library makes it easy to interact with our APIs from your Ruby application. You can find the most recent version of the library on RubyGems.

How To Install the Library

This library is available as a Ruby gem, and you can install it like this:

gem install peopledatalabs

Using the Library

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

# See
require 'peopledatalabs'
require 'json'

# Set your API key
Peopledatalabs.api_key = 'api_key'

# Pass parameters to the Person Enrichment API
result = Peopledatalabs::Enrichment.person(params: { profile: '' })

# Check for successful response
if result['status'] == 200
    # Print the API response in JSON format
    puts JSON.pretty_generate(result['data'])
    puts "Status: #{result['status']};"\
       "\nReason: #{result['error']['type']};"\
       "\nMessage: #{result['error']['message']};"

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.