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.

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.

info

For enumerated criteria, call Get search criteria values before building your lead search request so you can use currently supported values.

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": "CITY" },
{ "name": "COMPANY_NAME" },
{ "name": "COMPANY_WEBSITE" },
{ "name": "COMPANY_CITY" },
{ "name": "FIRST_NAME" },
{ "name": "LAST_NAME" }
],
"enumerated": [
{ "name": "INDUSTRY" },
{ "name": "CURRENT_JOB_TITLE" },
{ "name": "PAST_JOB_TITLE" },
{ "name": "COUNTRY" },
{ "name": "JOB_TITLE_LEVEL" },
{ "name": "JOB_TITLE_ROLE" },
{ "name": "GENDER" },
{ "name": "YEARS_OF_EXPERIENCE" },
{ "name": "COMPANY_COUNTRY" },
{ "name": "COMPANY_SIZE" },
{ "name": "COMPANY_TYPE" },
{ "name": "US_STATE" }
]
}
}

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
└─ enumeratedarray[object]Criteria where you should first fetch allowed values from the search criteria values endpoint
  └─ [].namestringCriterion name