How to Build Filters
The LinkedIn Company Search API allows filtering results using text, range, and boolean filters. Below is a guide on how to construct each type of filter with examples.
Text Filter
A text filter is used to filter based on specific text values. Each text filter must contain filter_type, type and list of value.
Valid Types:
in
: To include values.not in
: To exclude values. Excluding values might not be supported for every filter.
Example:
{
"filter_type": "COMPANY_HEADCOUNT",
"type": "in",
"value": ["10,001+", "1,001-5,000"]
}
Range Filter
A range filter is used to filter based on a range of values. Each filter must contain filter_type, type and value. Few range filters might contain a sub_filter. Ensure that you correctly pass sub_filter if required.
sub_filter
The sub_filter is an optional field that provides additional context for the range filter. For example, with the DEPARTMENT_HEADCOUNT
filter, the sub_filter specifies which department the filter applies to. Ensure that you correctly pass sub_filter if required.
Valid Types:
between
: To specify a range of values, indicating that the value must fall within the defined minimum and maximum limits.
Example:
{
"filter_type": "ANNUAL_REVENUE",
"type": "between",
"value": {"min": 1, "max": 500},
"sub_filter": "USD"
}
Boolean Filter
A boolean filter is used to filter based on true/false values. It doesn't contain any type or value
Example:
{
"filter_type": "IN_THE_NEWS"
}
Filters often require specific values. Only use values that are defined for each filter.
Filters for Company Search
Filter Type | Description | Properties | Values/Sub-filters |
---|---|---|---|
COMPANY_HEADCOUNT | Specifies the size of the company based on the number of employees. | types: [in] | "1-10" , "11-50" , "51-200" , "201-500" , "501-1,000" , "1,001-5,000" , "5,001-10,000" , "10,001+" |
REGION | Specifies the geographical region of the company. | types: [in, not in] | region_values |
INDUSTRY | Specifies the industry of the company. | types: [in, not in] | industry_values |
NUM_OF_FOLLOWERS | Specifies the number of followers a company has. | types: [in] | "1-50" , "51-100" , "101-1000" , "1001-5000" , "5001+" |
FORTUNE | Specifies the Fortune ranking of the company. | types: [in] | "Fortune 50" , "Fortune 51-100" , "Fortune 101-250" , "Fortune 251-500" |
ACCOUNT_ACTIVITIES | Specifies recent account activities, such as leadership changes or funding events. | types: [in] | "Senior leadership changes in last 3 months" , "Funding events in past 12 months" |
JOB_OPPORTUNITIES | Specifies job opportunities available at the company. | types: [in] | "Hiring on Linkedin" |
COMPANY_HEADCOUNT_GROWTH | Specifies the growth of the company's headcount. | allowed_without_sub_filter , types: [between] | N/A |
ANNUAL_REVENUE | Specifies the annual revenue of the company. | types: [between] | "USD" , "AED" , "AUD" , "BRL" , "CAD" , "CNY" , "DKK" , "EUR" , "GBP" , "HKD" , "IDR" , "ILS" , "INR" , "JPY" , "NOK" , "NZD" , "RUB" , "SEK" , "SGD" , "THB" , "TRY" , "TWD" |
DEPARTMENT_HEADCOUNT | Specifies the headcount of specific departments within the company. | types: [between] | "Accounting" , "Administrative" , "Arts and Design" , "Business Development" , "Community and Social Services" , "Consulting" , "Education" , "Engineering" , "Entrepreneurship" , "Finance" , "Healthcare Services" , "Human Resources" , "Information Technology" , "Legal" , "Marketing" , "Media and Communication" , "Military and Protective Services" , "Operations" , "Product Management" , "Program and Project Management" , "Purchasing" , "Quality Assurance" , "Real Estate" , "Research" , "Sales" , "Customer Success and Support" |
DEPARTMENT_HEADCOUNT_GROWTH | Specifies the growth of headcount in specific departments. | types: [between] | "Accounting" , "Administrative" , "Arts and Design" , "Business Development" , "Community and Social Services" , "Consulting" , "Education" , "Engineering" , "Entrepreneurship" , "Finance" , "Healthcare Services" , "Human Resources" , "Information Technology" , "Legal" , "Marketing" , "Media and Communication" , "Military and Protective Services" , "Operations" , "Product Management" , "Program and Project Management" , "Purchasing" , "Quality Assurance" , "Real Estate" , "Research" , "Sales" , "Customer Success and Support" |
KEYWORD | Filters based on specific keywords related to the company. | types: [in] | List of strings (max length 1) |
Filters for Person Search
Filter Type | Description | Properties | Values/Sub-filters |
---|---|---|---|
CURRENT_COMPANY | Specifies the current company of the person. | types: [in, not in] | List of strings |
CURRENT_TITLE | Specifies the current title of the person. | types: [in, not in] | List of strings |
PAST_TITLE | Specifies the past titles held by the person. | types: [in, not in] | List of strings |
COMPANY_HEADQUARTERS | Specifies the headquarters of the person's company. | types: [in, not in] | region_values |
COMPANY_HEADCOUNT | Specifies the size of the company based on the number of employees. | types: [in] | "Self-employed" , "1-10" , "11-50" , "51-200" , "201-500" , "501-1,000" , "1,001-5,000" , "5,001-10,000" , "10,001+" |
REGION | Specifies the geographical region of the person. | types: [in, not in] | region_values |
INDUSTRY | Specifies the industry of the person's company. | types: [in, not in] | industry_values |
PROFILE_LANGUAGE | Specifies the language of the person's profile. | types: [in] | "Arabic" , "English" , "Spanish" , "Portuguese" , "Chinese" , "French" , "Italian" , "Russian" , "German" , "Dutch" , "Turkish" , "Tagalog" , "Polish" , "Korean" , "Japanese" , "Malay" , "Norwegian" , "Danish" , "Romanian" , "Swedish" , "Bahasa Indonesia" , "Czech" |
SENIORITY_LEVEL | Specifies the seniority level of the person. | types: [in, not in] | "Owner / Partner" , "CXO" , "Vice President" , "Director" , "Experienced Manager" , "Entry Level Manager" , "Strategic" , "Senior" , "Entry Level" , "In Training" |
YEARS_AT_CURRENT_COMPANY | Specifies the number of years the person has been at their current company. | types: [in] | "Less than 1 year" , "1 to 2 years" , "3 to 5 years" , "6 to 10 years" , "More than 10 years" |
YEARS_IN_CURRENT_POSITION | Specifies the number of years the person has been in their current position. | types: [in] | "Less than 1 year" , "1 to 2 years" , "3 to 5 years" , "6 to 10 years" , "More than 10 years" |
YEARS_OF_EXPERIENCE | Specifies the total years of experience the person has. | types: [in] | "Less than 1 year" , "1 to 2 years" , "3 to 5 years" , "6 to 10 years" , "More than 10 years" |
FIRST_NAME | Specifies the first name of the person. | types: [in] | List of strings (max length 1) |
LAST_NAME | Specifies the last name of the person. | types: [in] | List of strings (max length 1) |
FUNCTION | Specifies the function or role of the person. | types: [in, not in] | "Accounting" , "Administrative" , "Arts and Design" , "Business Development" , "Community and Social Services" , "Consulting" , "Education" , "Engineering" , "Entrepreneurship" , "Finance" , "Healthcare Services" , "Human Resources" , "Information Technology" , "Legal" , "Marketing" , "Media and Communication" , "Military and Protective Services" , "Operations" , "Product Management" , "Program and Project Management" , "Purchasing" , "Quality Assurance" , "Real Estate" , "Research" , "Sales" , "Customer Success and Support" |
PAST_COMPANY | Specifies the past companies the person has worked for. | types: [in, not in] | List of strings |
COMPANY_TYPE | Specifies the type of company the person works for. | types: [in] | "Public Company" , "Privately Held" , "Non Profit" , "Educational Institution" , "Partnership" , "Self Employed" , "Self Owned" , "Government Agency" |
POSTED_ON_LINKEDIN | Specifies if the person has posted on LinkedIn. | N/A | N/A |
RECENTLY_CHANGED_JOBS | Specifies if the person has recently changed jobs. | N/A | N/A |
IN_THE_NEWS | Specifies if the person has been mentioned in the news. | N/A | N/A |
KEYWORD | Filters based on specific keywords related to the company. | types: [in] | List of strings (max length 1) |