The Query Builder is a coding-free tool for constructing queries for the Person and Company Search APIs. It shows real-time profile match counts without using API credits and generates code examples for executing and retrieving profile results.
- Choose the data type (Person or Company) you want to query.
- If you are querying for Person data, you must also select which dataset you want to use. We recommend selecting the resume dataset as it covers most use cases and contains the least duplication.
- Select the "Add Rule" button to add a rule to determine which profiles should be returned.
- A dropdown menu will appear with a list of available fields based on the selected data type. Input parameters correspond to fields from the Person or Company datasets.
- Once the field is selected, choose the Matching Logic you want to use.
- Next, define the field value(s) for the rule. Fields with canonical values (such as
education.majors, and more) will autocomplete as you type.
- For more complex queries, you can use the "Add Group" feature. Select the logical operator (
OR) to determine how the rules within the group will be combined. For example, if you want to match profiles that satisfy at least one rule within the group, select
- Finally select "Build Query" to generate working code snippets that reflect your query. Code snippets are provided in PDL's JS SDK, Python SDK, Ruby SDK, and Go SDK, as well as pure Python, cURL, SQL, and ESQuery. Additionally, the tool will display the total number of profile matches for your query in real-time, without utilizing any API credits.
Tips for Getting Started
To get results quickly, simply copy the cURL snippet and replace
"<INSERT YOUR API KEY>"with your API Key. Paste the query into the the command line to retrieve the records.
The following example demonstrates how to create nested queries using the "Add Group" feature.
In this scenario, a recruiter wants to find Full Stack Developers in San Francisco and UX Researchers in New York. By utilizing the Query Builder tool, the recruiter can construct a query that meets these specific criteria.
For more information, check out our detailed walkthroughs of the Query Builder:
Updated 3 months ago