Skip to main content
POST
/
sourcing
/
linkedin
/
search
Search LinkedIn profiles
curl --request POST \
  --url https://app.leonar.app/api/v1/sourcing/linkedin/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "api_type": "recruiter",
  "search_url": "<string>",
  "job_titles": [
    "<string>"
  ],
  "companies": [
    "<string>"
  ],
  "keywords": [
    "<string>"
  ],
  "boolean_query": "<string>",
  "schools": [
    "<string>"
  ],
  "location_ids": {},
  "years_experience": {
    "min": 123,
    "max": 123
  },
  "first_name": "<string>",
  "last_name": "<string>",
  "connection_degree": [
    1
  ],
  "is_open_to_work": true,
  "page": 1,
  "page_size": 20
}
'
{
  "data": {
    "profiles": [
      {
        "profile_id": "ACwAABrjaVMBOLcCrV5aEw1zCAjE_zec6PbnU1A",
        "first_name": "Sophie",
        "last_name": "Martin",
        "headline": "Senior Software Engineer at Doctolib",
        "picture_url": "https://media.licdn.com/dms/image/example.jpg",
        "location": "Paris, Île-de-France, France",
        "linkedin_url": "https://www.linkedin.com/in/sophie-martin",
        "summary": "Experienced engineer with 8 years in full-stack development...",
        "current_job": {
          "title": "Senior Software Engineer",
          "company_name": "Doctolib"
        },
        "experiences": [
          {
            "title": "Senior Software Engineer",
            "company_name": "Doctolib",
            "start_date": "2021-03-01",
            "end_date": null,
            "description": "Leading backend team, Python/Django stack...",
            "is_current": true
          },
          {
            "title": "Software Engineer",
            "company_name": "Criteo",
            "start_date": "2018-01-01",
            "end_date": "2021-02-28",
            "description": "Built real-time bidding systems in Python...",
            "is_current": false
          }
        ],
        "educations": [
          {
            "educational_establishment": "École Polytechnique",
            "diploma": "Master of Engineering",
            "specialization": "Computer Science",
            "start_date": "2014-09-01",
            "end_date": "2018-06-30"
          }
        ],
        "skills": [
          "Python",
          "Django",
          "TypeScript",
          "PostgreSQL"
        ],
        "total_years_experience": 8.2,
        "already_in_project": false,
        "existing_contact_id": null
      }
    ],
    "total_count": 123,
    "filtered_count": 123,
    "next_page": 123,
    "has_more": true
  }
}

Authorizations

Authorization
string
header
required

API key starting with leo_

Body

application/json
project_id
string<uuid>
required
account_id
string<uuid>
required

Connected LinkedIn account ID

api_type
enum<string>
Available options:
recruiter,
sales_navigator
search_url
string<uri>

Alternative to filters — pass a LinkedIn search URL directly

job_titles
string[]
companies
string[]
keywords
string[]
boolean_query
string

Boolean search query using AND, OR, NOT operators and quoted phrases. Example: (Python OR Java) AND "Software Engineer" AND NOT Intern. See the Boolean search guide for full syntax.

schools
string[]
location_ids
object

LinkedIn geo IDs mapped to display names. Do NOT use plain-text names — call GET /sourcing/linkedin/locations?q=<name>&account_id=<id> first to resolve. Example: {"103644278": "New York"}

years_experience
object
first_name
string
last_name
string
connection_degree
enum<integer>[]
Available options:
1,
2,
3
is_open_to_work
boolean
page
integer
default:1
Required range: x >= 1
page_size
integer
default:20
Required range: 1 <= x <= 25

Response

Search results

data
object