Skip to main content
POST
/
sourcing
/
advanced
/
profiles
/
search
Advanced sourcing profile search
curl --request POST \
  --url https://app.leonar.app/api/v1/sourcing/advanced/profiles/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "job_title": [
    "VP of Product",
    "Head of Product"
  ],
  "company": [
    "Stripe",
    "Datadog"
  ],
  "location": [
    "Paris, France",
    "London, United Kingdom"
  ],
  "skills": [
    "SaaS",
    "Product Management"
  ],
  "company_filter": "current",
  "data_types": [
    "personal_email",
    "work_email"
  ],
  "reveal_info": true,
  "page": 1
}
'
{
  "data": {
    "profiles": [
      {
        "profile_id": "jane-doe",
        "first_name": "Jane",
        "last_name": "Doe",
        "headline": "VP of Product at ExampleCo",
        "location": "Paris, France",
        "linkedin_url": "https://www.linkedin.com/in/jane-doe",
        "summary": "Product leader with B2B SaaS experience.",
        "current_job": {
          "title": "VP of Product",
          "company_name": "ExampleCo"
        },
        "experiences": [
          {
            "title": "VP of Product",
            "company_name": "ExampleCo",
            "company_domain": "example.com",
            "start_date": "2021",
            "end_date": null,
            "description": null,
            "is_current": true
          }
        ],
        "educations": [
          {
            "educational_establishment": "HEC Paris",
            "diploma": "MBA",
            "specialization": null,
            "start_date": "2015",
            "end_date": "2017"
          }
        ],
        "skills": [
          "SaaS",
          "Product Management"
        ],
        "open_to_work": false
      }
    ],
    "total_count": 45,
    "filtered_count": 1,
    "next_page": 2,
    "has_more": true,
    "filters_too_strict": false,
    "credits_consumed": 1,
    "sourcing_credits_remaining": 499,
    "request_id": "req_123",
    "leonar_profiles_cached": 1
  }
}

Authorizations

Authorization
string
header
required

API key starting with leo_

Body

application/json
page
integer
default:1

Results page to return.

Required range: x >= 1
name
string

Full or partial profile name.

Maximum string length: 200
job_title
string[]

Job titles to include.

Maximum array length: 50
exclude_job_titles
string[]

Job titles to exclude.

Maximum array length: 50
current_titles_only
boolean
default:true

Returns profiles matching the current job title by default. Set to false to return profiles matching current or past job titles. Do not combine with match_experience.

Include related job titles when matching title filters.

job_function
string[]

Job functions to include.

Maximum array length: 50
seniority
string[]

Seniority levels to include.

Maximum array length: 50
match_experience
enum<string>

Controls how title and company filters are matched against profile experience entries. Do not combine with current_titles_only or company_filter.

Available options:
current,
past,
both
skills
string[]

Skills to include. Boolean syntax may be used in values.

Maximum array length: 50
languages
object[]

Languages to include, optionally with proficiency filters.

Maximum array length: 50
education
string[]

Schools or institutions to include.

Maximum array length: 50
educations
object[]

Structured education filters.

Maximum array length: 50
location
string[]

Locations to include.

Maximum array length: 50
location_radius
integer

Radius around the provided locations.

Required range: 1 <= x <= 500
current_work_location
string[]

Current work locations to include.

Maximum array length: 50
past_work_location
string[]

Past work locations to include.

Maximum array length: 50
company
string[]

Companies to include.

Maximum array length: 50
company_filter
enum<string>

Controls whether company filters match current roles, past roles, or both. Do not combine with match_experience.

Available options:
current,
past,
both
current_company_only
boolean

Restrict company matching to current companies.

exclude_companies
string[]

Companies to exclude.

Maximum array length: 50
domain
string[]

Company domains to include.

Maximum array length: 50
industry
string[]

Industries to include.

Maximum array length: 50
company_size
string[]

Company size buckets, e.g. 11_50, 51_200, 201_500.

Maximum array length: 50
keyword
string

Free-text keyword or boolean keyword expression.

Maximum string length: 500
years_of_experience
string[]

Experience ranges, e.g. 2_5, 6_10, or 10.

Maximum array length: 50
years_in_current_role
string[]

Current-role tenure ranges, e.g. 2_5, 6_10, or 10.

Maximum array length: 50
data_types
enum<string>[]

Optional contact data types to retrieve with profiles.

Maximum array length: 3
Available options:
personal_email,
work_email,
phone
reveal_info
boolean

Whether to attempt revealing contact details on returned profiles.

detailed_experience
boolean

Whether to request detailed experience data.

detailed_education
boolean

Whether to request detailed education data.

output_fields
string[]

Optional fields to request from the sourcing network.

Maximum array length: 50

Response

Normalized profile search results. The response includes profiles, pagination information, sourcing credits consumed by this call, and the workspace's remaining sourcing credit balance.

data
object