{"id":26188177,"url":"https://github.com/peopledatalabs/peopledatalabs-ruby","last_synced_at":"2026-03-11T10:05:00.391Z","repository":{"id":40251121,"uuid":"487383118","full_name":"peopledatalabs/peopledatalabs-ruby","owner":"peopledatalabs","description":"A Ruby client for the People Data Labs API","archived":false,"fork":false,"pushed_at":"2025-10-06T12:15:11.000Z","size":57,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-20T22:11:02.966Z","etag":null,"topics":["api","company-data","company-search","contact-data","enrichment","people-data","peopledatalabs","person-search","ruby","ruby-gem","sdk-ruby","search"],"latest_commit_sha":null,"homepage":"https://docs.peopledatalabs.com/docs/ruby-sdk","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peopledatalabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-30T21:16:13.000Z","updated_at":"2026-01-18T17:08:32.000Z","dependencies_parsed_at":"2024-09-10T07:38:31.059Z","dependency_job_id":"5f853b87-9aef-4333-8935-9e9c7026a714","html_url":"https://github.com/peopledatalabs/peopledatalabs-ruby","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.5,"last_synced_commit":"8fa5547efb115533b90b408a7a13cb97d3da0dff"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/peopledatalabs/peopledatalabs-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peopledatalabs%2Fpeopledatalabs-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peopledatalabs%2Fpeopledatalabs-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peopledatalabs%2Fpeopledatalabs-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peopledatalabs%2Fpeopledatalabs-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peopledatalabs","download_url":"https://codeload.github.com/peopledatalabs/peopledatalabs-ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peopledatalabs%2Fpeopledatalabs-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30151958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T21:15:50.531Z","status":"ssl_error","status_checked_at":"2026-03-05T21:15:11.173Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","company-data","company-search","contact-data","enrichment","people-data","peopledatalabs","person-search","ruby","ruby-gem","sdk-ruby","search"],"created_at":"2025-03-11T23:57:12.378Z","updated_at":"2026-03-11T10:04:55.372Z","avatar_url":"https://github.com/peopledatalabs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://www.peopledatalabs.com/images/company-logo.png\" style=\"background-color: white; padding: 5px 10px;\" width=\"250\" alt=\"People Data Labs Logo\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003ePeople Data Labs Ruby Library\u003c/h1\u003e\n\u003cp align=\"center\"\u003eOfficial Ruby client for the People Data Labs API.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/peopledatalabs/peopledatalabs-ruby\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/repo%20status-Active-limegreen\" alt=\"Repo Status\"\u003e\n  \u003c/a\u003e\u0026nbsp;\n  \u003ca href=\"https://rubygems.org/gems/peopledatalabs\"\u003e\n    \u003cimg src=\"https://img.shields.io/gem/v/peopledatalabs.svg\" alt=\"People Data Labs on RubyGems\" /\u003e\n  \u003c/a\u003e\u0026nbsp;\n  \u003ca href=\"https://github.com/peopledatalabs/peopledatalabs-ruby/actions/workflows/test.yaml\"\u003e\n    \u003cimg src=\"https://github.com/peopledatalabs/peopledatalabs-ruby/actions/workflows/test.yaml/badge.svg\" alt=\"Tests Status\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n#\nThis is a simple Ruby client library to access the various API endpoints provided by [People Data Labs](https://www.peopledatalabs.com/).\n\nThis library bundles up PDL API requests into simple function calls, making it easy to integrate into your projects. You can use the various [API endpoints](#endpoints) to access up-to-date, real-world data from our massive [Person](https://docs.peopledatalabs.com/docs/stats) and [Company](https://docs.peopledatalabs.com/docs/company-stats) Datasets.\n\n## Table of Contents\n- [🔧 Installation](#installation)\n- [🚀 Usage](#usage)\n- [🏝 Sandbox Usage](#sandbox)\n- [🌐 Endpoints](#endpoints)\n- [📘 Documentation](#documentation)\n- [⚠️ Upgrading from v1.X.X to v2.0.0](#upgrading)\n\n## Installation \u003ca name=\"installation\"\u003e\u003c/a\u003e\n\n1. Add this line to your application's Gemfile:\n\n```ruby\ngem 'peopledatalabs'\n```\n\n2. And then execute:\n\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n\n```bash\n$ gem install peopledatalabs\n```\n\n3. Sign up for a [free PDL API key](https://www.peopledatalabs.com/signup)\n\n## 🚀 Usage \u003ca name=\"usage\"\u003e\u003c/a\u003e\n\nFirst, add your API Key:\n```ruby\nPeopledatalabs.api_key = 'api_key'\n```\n\nThen, send requests to any PDL API Endpoint:\n\n**Using Person APIs**\n```ruby\n# By Enrichment\nPeopledatalabs::Enrichment.person(params: { phone: '4155688415' })\n\n# By Bulk Enrichment\nPeopledatalabs::Bulk.person(params: {requests: [{params: {profile: ['linkedin.com/in/seanthorne']}}, {params: {profile: ['linkedin.com/in/randrewn']}}]})\n\n# By Search (SQL)\nPeopledatalabs::Search.person(searchType: 'sql', query: \"SELECT * FROM person WHERE job_company_name='people data labs'\")\n\n# By Search (Elasticsearch)\nPeopledatalabs::Search.person(searchType: 'elastic', query: {\"query\": {\"term\": {\"job_company_name\": \"people data labs\"}}})\n\n# By PDL_ID\nPeopledatalabs::Retrieve.person(person_id: 'qEnOZ5Oh0poWnQ1luFBfVw_0000')\n\n# By Fuzzy Enrichment\nPeopledatalabs::Identify.person(params: { name: 'sean thorne' })\n```\n\n**Using Company APIs**\n```ruby\n# By Enrichment\nPeopledatalabs::Enrichment.company(params: { website: 'peopledatalabs.com' })\n\n# By Bulk Enrichment\nPeopledatalabs::Bulk.company(params: {requests: [{params: {profile: ['linkedin.com/company/peopledatalabs']}}, {params: {profile: ['linkedin.com/company/apple']}}]})\n\n# By Search (SQL)\nPeopledatalabs::Search.company(searchType: 'sql', query: \"SELECT * FROM company WHERE tags='big data' AND industry='financial services' AND location.country='united states'\")\n\n# By Search (Elasticsearch)\nPeopledatalabs::Search.company(searchType: 'elastic', query: {\"query\": \"must\": [{\"term\": {\"tags\": \"big data\"}}, {\"term\": {\"industry\": \"financial services\"}}, {\"term\": {\"location_country\": \"united states\"}}]})\n```\n\n**Using Autocomplete API**\n```ruby\n# Get Autocomplete Suggestions\nPeopledatalabs::Autocomplete.retrieve(field: 'title', text: 'full', size: 10)\n```\n\n**Using Cleaner APIs**\n```ruby\n# Clean Raw Company Strings\nPeopledatalabs::Cleaner.company(kind: 'name', value: 'peOple DaTa LabS')\n\n# Clean Raw Location Strings\nPeopledatalabs::Cleaner.location(value: '455 Market Street, San Francisco, California 94105, US')\n\n# Clean Raw School Strings\nPeopledatalabs::Cleaner.school(kind: 'name', value: 'university of oregon')\n```\n\n**Using Job Title Enrichment API**\n```ruby\n# Get Job Title Enrichment\nPeopledatalabs::JobTitle.retrieve(job_title: 'data scientist')\n```\n\n**Using Skill Enrichment API**\n```ruby\n# Get Skill Enrichment\nPeopledatalabs::Skill.retrieve(skill: 'c++')\n```\n\n**Using IP Enrichment API**\n```ruby\n# Get IP Enrichment\nPeopledatalabs::Enrichment.ip(ip: '72.212.42.169')\n```\n\n## 🏝 Sandbox Usage \u003ca name=\"sandbox\"\u003e\u003c/a\u003e\n```ruby\n# To enable sandbox usage, use the following flag\nPeopledatalabs.sandbox = true\n```\n\n## 🌐 Endpoints \u003ca name=\"endpoints\"\u003e\u003c/a\u003e\n\n**Person Endpoints**\n| API Endpoint | peopledatalabs Function |\n|-|-|\n| [Person Enrichment API](https://docs.peopledatalabs.com/docs/enrichment-api) | `Peopledatalabs::Enrichment.person(...params)` |\n| [Person Bulk Person Enrichment API](https://docs.peopledatalabs.com/docs/bulk-enrichment-api) | `Peopledatalabs::Bulk.person(...records)` |\n| [Person Search API](https://docs.peopledatalabs.com/docs/search-api) | `Peopledatalabs::Search.person(...params)` |\n| [Person Retrieve API](https://docs.peopledatalabs.com/docs/person-retrieve-api) | `Peopledatalabs::Autocomplete.retrieve(...params)` |\n| [Person Identify API](https://docs.peopledatalabs.com/docs/identify-api) | `Peopledatalabs::Identify.person(...params)` |\n\n**Company Endpoints**\n| API Endpoint | peopledatalabs Function |\n|-|-|\n| [Company Enrichment API](https://docs.peopledatalabs.com/docs/company-enrichment-api) | `Peopledatalabs::Enrichment.company(...params)` |\n| [Company Bulk Enrichment API](https://docs.peopledatalabs.com/docs/bulk-company-enrichment-api) | `Peopledatalabs::Bulk.company(...params)` |\n| [Company Search API](https://docs.peopledatalabs.com/docs/company-search-api) | `Peopledatalabs::Search.company(...params)` |\n\n**IP Endpoints**\n| API Endpoint | peopledatalabs Function |\n|-|-|\n| [IP Enrichment API](https://docs.peopledatalabs.com/docs/ip-enrichment-api) | `Peopledatalabs::Enrichment.ip(...params)` |\n\n**Supporting Endpoints**\n| API Endpoint | peopledatalabs Function |\n|-|-|\n| [Autocomplete API](https://docs.peopledatalabs.com/docs/autocomplete-api) | `Peopledatalabs::Autocomplete.retrieve(...params)` |\n| [Company Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#companyclean) | `Peopledatalabs::Cleaner.company(...params)` |\n| [Location Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#locationclean) | `Peopledatalabs::Cleaner.location(...params)` |\n| [School Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#schoolclean) | `Peopledatalabs::Cleaner.school(...params)` |\n| [Job Title Enrichment API](https://docs.peopledatalabs.com/docs/job-title-enrichment-api) | `Peopledatalabs::JobTitle.retrieve(...params)` |\n| [Skill Enrichment API](https://docs.peopledatalabs.com/docs/skill-enrichment-api) | `Peopledatalabs::Skill.retrieve(...params)` |\n\n## 📘 Documentation \u003ca name=\"documentation\"\u003e\u003c/a\u003e\n\nAll of our API endpoints are documented at: https://docs.peopledatalabs.com/\n\nThese docs describe the supported input parameters, output responses and also provide additional technical context.\n\nAs illustrated in the [Endpoints](#endpoints) section above, each of our API endpoints is mapped to a specific method in the peopledatalabs class.  For each of these class methods, **all function inputs are mapped as input parameters to the respective API endpoint**, meaning that you can use the API documentation linked above to determine the input parameters for each endpoint.\n\nAs an example:\n\nThe following is **valid** because `name` is a [supported input parameter to the Person Identify API](https://docs.peopledatalabs.com/docs/identify-api-reference#input-parameters):\n```ruby\nPeopledatalabs::Identify.person(params: { name: 'sean thorne' })\n```\n\nConversely, this would be **invalid** because `fake_parameter` is not an input parameter to the Person Identify API:\n```ruby\nPeopledatalabs::Identify.person(params: { fake_parameter: 'anything' })\n```\n\n## ⚠️ Upgrading from v1.X.X to v2.0.0 \u003ca name=\"upgrading\"\u003e\u003c/a\u003e\n\nBulk Person and Person Search now use .person instead of .people\n\ni.e. Peopledatalabs::Bulk.people(...records) is now Peopledatalabs::Bulk.person(...records)\n\u003cbr /\u003ei.e. Peopledatalabs::Search.people(...params) is now Peopledatalabs::Search.person(...params)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeopledatalabs%2Fpeopledatalabs-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeopledatalabs%2Fpeopledatalabs-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeopledatalabs%2Fpeopledatalabs-ruby/lists"}