Skip to main content

Get search criteria values

Retrieve allowed values for a selected Lead Finder criterion. Use this endpoint for enumerated criteria returned by Get search criteria, such as COUNTRY, INDUSTRY, JOB_TITLE_ROLE, or COMPANY_SIZE.

This endpoint supports filtering and pagination so you can power autocomplete or searchable dropdowns in your integration before calling the lead search endpoint. Pagination metadata is returned in the response body.

Request

Endpoint

GET https://api.woodpecker.co/rest/v2/lead_finder/search_criteria/{criterion_name}/values

Headers

x-api-key: {YOUR_API_KEY}

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

Parameters

ParameterRequiredTypeDescription
criterion_nameYesstringPath parameter - the criterion whose allowed values you want to list. Use a criterion name returned by Get search criteria. Use capital letters
search_phraseNostringText filter applied to the value list. The search matches partial substrings, so con can match construction as well as semiconductors. Maximum length: 50 characters.
pageNointeger1-based page number. Default: 1. Minimum: 1.
limitNointegerNumber of values to return per page. Default: 10. Minimum: 1. Maximum: 50.

Request samples

Retrieve past job title values

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

Response

Response examples

A paginated list of matching values for the selected criterion.

{
"criterion_name": "PAST_JOB_TITLE",
"search_phrase": null,
"page": 1,
"limit": 10,
"values": [
"owner",
"manager",
"president",
"director",
"ceo",
"teacher",
"project manager",
"partner",
"principal",
"intern"
],
"total_found": 4999,
"last": false
}

Body schema

FieldTypeDescription
criterion_namestringThe criterion whose values were returned
search_phrasestring/nullThe trimmed search phrase used to filter the values, or null when no filter was used
pageintegerCurrent 1-based page number
limitintegerMaximum number of values returned in this page
valuesarray[string]Matching values for the selected criterion
total_foundintegerTotal number of matching values across all pages
lastbooleanWhether the current page is the last available page