boolean_query parameter lets you write advanced search expressions using standard boolean operators. It is supported on both the LinkedIn search and database search endpoints.
Supported operators
Operator precedence
From highest to lowest:NOT > AND > OR. Use parentheses to override.
Examples
Find engineers with specific skills
Combine boolean query with other filters
boolean_query can be used alongside other filter fields like job_titles, companies, or location_ids. The boolean query applies to the keyword/full-text dimension while other filters apply to their respective structured fields.
Search the people database
Boolean queries also work on the database search endpoint:Common patterns
Syntax rules
- Operators
AND,OR,NOTmust be uppercase - Parentheses must be balanced
- Quoted phrases must have matching opening and closing
" - Operators cannot be consecutive (
AND ANDis invalid) - A query cannot start with
ANDorOR