Skip to main content

Get search criteria

Retrieve the current list of Lead Finder criteria you can use when building a lead search request. The response is grouped into freetext criteria, where you provide your own value, and enumerated criteria, where you should first fetch allowed values from the search criteria values endpoint. Each criterion also lists the operators it supports and the maximum number of values you can send for it.

Use this endpoint as the source of truth for supported criteria instead of hardcoding the example list from the documentation. The criteria available to your account can change over time, so build lead search requests from the current catalog returned by this endpoint.

Request​

Endpoint​

GET https://api.woodpecker.co/rest/v2/lead_finder/search_criteria

Headers​

x-api-key: {YOUR_API_KEY}

For details on how to authenticate your requests, please see the authentication guide.

Request samples​

Retrieve the current Lead Finder criteria catalog​

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/lead_finder/search_criteria" \
--header "x-api-key: {YOUR_API_KEY}"

Response​

Response examples​

The current Lead Finder search criteria grouped by criterion type.

{
"search_criteria": {
"freetext": [
{ "name": "COMPANY_LOCATION", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 },
{ "name": "COMPANY_NAME", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 },
{ "name": "COMPANY_WEBSITE", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 },
{ "name": "CURRENT_JOB_TITLE", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 },
{ "name": "FIRST_NAME", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 },
{ "name": "LAST_NAME", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 },
{ "name": "LOCATION", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 },
{ "name": "PAST_JOB_TITLE", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 }
],
"enumerated": [
{ "name": "COMPANY_SIZE", "operators": ["INCLUDE"], "max_values": 1 },
{ "name": "COMPANY_TYPE", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 },
{ "name": "INDUSTRY", "operators": ["INCLUDE", "EXCLUDE"], "max_values": 200 },
{ "name": "YEARS_OF_EXPERIENCE", "operators": ["INCLUDE"], "max_values": 1 }
]
}
}

Body schema​

FieldTypeDescription
search_criteriaobjectContainer for the currently supported Lead Finder criteria
└─ freetextarray[object]Criteria where you provide your own value directly in the lead search payload
  └─ [].namestringCriterion name
  └─ [].operatorsarray[string]Operators you can use with the criterion: INCLUDE, EXCLUDE
  └─ [].max_valuesinteger/nullMaximum number of distinct values for one criterion and operator pair. null means no limit
└─ enumeratedarray[object]Criteria where you should first fetch allowed values from the search criteria values endpoint
  └─ [].namestringCriterion name
  └─ [].operatorsarray[string]Operators you can use with the criterion: INCLUDE, EXCLUDE
  └─ [].max_valuesinteger/nullMaximum number of distinct values for one criterion and operator pair. null means no limit