Skip to main content

Search Persons

Endpoint Overview

The Search persons endpoint retrieves an array of person object models based on specific filters.

  • URL: https://api.profileapi.com/2024-03-01/persons
  • HTTP Method: POST

Request

Parameters

Utilize the following parameters to refine your search and retrieve tailored person information

Expression

  • Key: expression
  • Data Type: object
  • Description: Enables advanced filtering by specifying conditions that must be met. Use the all field to list conditions that must all be satisfied (with optional exclusions) and the any field to list conditions where at least one must be met.
  • Structure:
    • all: An array of conditions that must all be satisfied. Conditions can also include an exclude flag.
    • any: An array of conditions where at least one must be satisfied.
  • Example:
{
"all": [
{
"categoryKey": "countryCode",
"name": "US"
},
{
"categoryKey": "unitedStatesStateCode",
"name": "CA",
"exclude": true
}
],
"any": [
{"categoryKey": "seniority", "name": "C-Level+"},
{"categoryKey": "seniority", "name": "Vice President"}
]
}

Limit

  • Key: limit
  • Data Type: number
  • Description: Specifies the maximum number of results to return. The default value is 10, with a maximum allowed value of 1000.
  • Example: 100

Fields To Return

  • Key: fieldsToReturn
  • Data Type: string
  • Description: Specifies which fields should be returned in the response.
  • Options:
NameDefaultCreditsDescription
idOnlyfalse0Return only person IDs.
emailfalse1Return only the person's email.
phonefalse5Return only the person's phone number.
basictrue1Return basic person fields (e.g., name, locations, and links) without email or phone.
basicWithEmailfalse2Return basic person fields with email but without phone.
basicWithPhonefalse6Return basic person fields with phone but without email.
basicWithEmailAndPhonefalse7Return basic person fields with both email and phone.
premiumfalse2Return premium person fields (e.g., experiences, educations) without email or phone.
premiumWithEmailfalse3Return premium person fields with email but without phone.
premiumWithPhonefalse7Return premium person fields with phone but without email.
premiumWithEmailAndPhonefalse8Return premium person fields with both email and phone.

Please refer to the person object model for a complete list of basic vs. premium fields.

Example

{
"expression": {
"all": [
{
"categoryKey": "countryCode",
"name": "US"
},
{
"categoryKey": "unitedStatesStateCode",
"name": "CA",
"exclude": true
}
],
"any": [
{"categoryKey": "seniority", "name": "C-Level+"},
{"categoryKey": "seniority", "name": "Vice President"}
]
},
"limit": 100,
"fieldsToReturn": "idOnly"
}

Response

The response returns an array of person object models, along with pagination information.

Example

{
"data": {
"results": [
{
"id": "e7c2a3f458ef11edb8780242ac120002",
"name": "Joe Doe",
"firstName": "Joe",
"lastName": "Doe",
"photoUrl": "https://d1hbpr09pwz0sk.cloudfront.net/logourl/06f524f",
"birthYear": 1988,
"emails": [
{
"email": "[email protected]",
"type": "professional",
"lastValidatedAt": "2020-08-12T02:12:33.231Z",
"scoreValue": 0.95
}
],
"phones": [
{
"phone": "+1234567890",
"type": "mobile",
"lastValidatedAt": "2020-08-12T02:12:33.231Z",
"scoreValue": 0.90
}
],
"angellistUrl": "https://angel.co/joedoe",
"crunchbaseUrl": "https://www.crunchbase.com/person/joedoe",
"facebookUrl": "https://facebook.com/joedoe",
"githubUrl": "https://github.com/joedoe",
"linkedInUrl": "https://linkedin.com/in/joedoe",
"xUrl": "https://twitter.com/joedoe",
"youtubeUrl": "https://youtube.com/user/joedoe",
"unitedStatesStateCode": "CA",
"unitedStatesCity": "Seattle",
"unitedStatesZipCode": "98119",
"unitedStatesRegion": "West Coast",
"countryCode": "US",
"worldRegion": "Americas",
"experiences": [
{
"id": "a1b2c3d4e5f611edb8780242ac120003",
"name": "Acme Inc.",
"department": "Engineering",
"team": "Backend",
"role": "Individual Contributor",
"seniority": "Manager",
"startedAt": "2018-06-15",
"endedAt": "2022-11-30"
}
],
"educations": [
{
"degree": "Bachelor of Science",
"institutionDivision": "Engineering",
"institutionDivisionDepartment": "Computer Science",
"institutionLevel": "University",
"institutionName": "University of Washington",
"startYear": "2006",
"endYear": "2010"
}
]
}
],
"pagination": {
"nextStart": [
{
"id": "9e6a55b258ef11edb8780242ac121233",
"score": 0.92
}
]
}
}
}