HigherData / Tool
search.filters_from_text
Choose company or people search from a sentence and propose editable filters, an explanation and any conditions that could not be applied. Does not execute a search.
Scopes: data:read
This tool reads. It does not write.
REST: POST /api/v1/tools/search.filters_from_text?execute=false. The same call is POST /api/v1/search/filters_from_text?execute=false.
MCP tool name: search_filters_from_text. It is in the default MCP catalog when your scopes allow it.
Input
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | yes | Sentence to turn into filters. 1 to 4000 characters. |
| kind | string | yes | Legacy context for ambiguous bare names or domains. Full sentences choose their own search kind. One of: companies, people. |
Output
| Field | Type | Required | Description |
|---|---|---|---|
| kind | string | yes | One of: companies. |
| filters | object | yes | |
| filters. | array | no | Company name alternatives or a domain, up to 5 values. Finds the 50 closest token or prefix matches, ignoring punctuation, accents and legal suffixes. 1 to 5 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Company name prefixes to leave out. 1 to 5 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Exclude companies with any current employee whose title contains one of these keywords, at least 3 characters each. Uses a bounded live lookup; narrow the company filters if it is too broad. 1 to 50 items. Each item: 3 to 120 characters. |
| filters. | array | no | Exclude companies with any current employee in one of these go-to-market role families. Uses the same bounded live lookup as excludeCompaniesWithTitles. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | string | no | Company website domain. Exact host matching; root sites rank first. 1 to 320 characters. |
| filters. | array | no | Two-letter country codes to include. 1 to 50 items. Each item: Pattern: ^\s*[a-z]{2}\s*$. |
| filters. | array | no | State or region codes to include. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Company HQ cities to include. Requires countryCodes. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Company HQ cities to leave out. Requires countryCodes. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Company HQ postcode prefixes to include. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Company HQ postcode prefixes to leave out. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | integer | no | Earliest company founding year. At least 0. |
| filters. | integer | no | Latest company founding year. At least 0. |
| filters. | integer | no | Lowest total company funding, in US dollars. At least 0. |
| filters. | integer | no | Highest total company funding, in US dollars. At least 0. |
| filters. | array | no | Industries to include. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Two-letter country codes to leave out. 1 to 50 items. Each item: Pattern: ^\s*[a-z]{2}\s*$. |
| filters. | array | no | State or region codes to leave out. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Industries to leave out. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | integer | no | Lowest employee count to include. At least 0. |
| filters. | integer | no | Highest employee count to include. At least 0. |
| filters. | integer | no | Lowest annual revenue to include, in US dollars. At least 0. |
| filters. | integer | no | Highest annual revenue to include, in US dollars. At least 0. |
| filters. | array | no | Size alternatives. Match any alternative; all bounds within one alternative must match known values. Combined with the other filters using AND. Bounds are inclusive; use 49 for under 50 employees and 2999999 for under $3M annual revenue. 1 to 50 items. |
| filters. | array | no | NAICS 2022 codes to include. 1 to 50 items. Each item: Pattern: ^[0-9]{6}$. |
| filters. | array | no | NAICS 2022 codes to leave out. 1 to 50 items. Each item: Pattern: ^[0-9]{6}$. |
| filters. | array | no | Funding round types to include. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Funding round types to leave out. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Match company industry labels, headlines, specialties, and descriptions. A company can match any keyword. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Keywords the company must match. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Keyword groups. The company must match every group, and any keyword inside a group. At most 10 items. Each item: 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Keywords that remove a company. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | string | no | Whether the company has a website. One of: any, available, missing. |
| filters. | string | no | Whether the company has a LinkedIn page. One of: any, available, missing. |
| filters. | string | no | Include funding on or after this date. ISO date (YYYY-MM-DD). |
| filters. | string | no | Include funding on or before this date. ISO date (YYYY-MM-DD). |
| filters. | array | no | Opaque company ids (hdo_) to leave out. At most 1000 items. Each item: Pattern: ^hdo_(?:[0-9a-f]{32}|s(?:0[1-9a-f]|1[0-9a-f]|20)[A-Za-z0-9_-]{24,224})$. |
| filters. | array | no | Website domains to leave out. At most 1000 items. Each item: 1 to 320 characters. |
| explanation | string | yes | 1 to 1000 characters. |
| unapplied | array | yes | Stated conditions that could not be applied, in plain words. Empty when every condition was applied. At most 50 items. Each item: 1 to 1000 characters. |
| filters. | array | no | Person name alternatives. Add a company name, domain or id for common names and typo matching. Every non-particle token matches in any order, ignoring case, accents and punctuation. Scoped searches allow one edit per token of at least five letters. 1 to 5 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | string | no | Exact work email address, matched through the email index. At most 320 characters. email address. |
| filters. | array | no | Person cities to include. Requires personCountryCodes. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Person cities to leave out. Requires personCountryCodes. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Person state or region codes to include. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Person state or region codes to leave out. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Person country codes to include. 1 to 50 items. Each item: Pattern: ^\s*[a-z]{2}\s*$. |
| filters. | array | no | Person country codes to leave out. 1 to 50 items. Each item: Pattern: ^\s*[a-z]{2}\s*$. |
| filters. | array | no | Job cities to include. Requires jobCountryCodes. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Job cities to leave out. Requires jobCountryCodes. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Job state or region codes to include. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Job state or region codes to leave out. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Job country codes to include. 1 to 50 items. Each item: Pattern: ^\s*[a-z]{2}\s*$. |
| filters. | array | no | Job country codes to leave out. 1 to 50 items. Each item: Pattern: ^\s*[a-z]{2}\s*$. |
| filters. | array | no | Company HQ cities to include. Requires countryCodes. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Company HQ cities to leave out. Requires countryCodes. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | integer | no | Earliest company founding year. At least 0. |
| filters. | integer | no | Latest company founding year. At least 0. |
| filters. | string | no | Include jobs started on or after this date. ISO date (YYYY-MM-DD). |
| filters. | string | no | Include jobs started on or before this date. ISO date (YYYY-MM-DD). |
| filters. | array | no | Contact persona labels. A person can match any of them. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | integer | no | Minimum LinkedIn connection count. At least 0. |
| filters. | array | no | Job title keywords to match, at least 3 characters each after trimming. A person can match any of them. 1 to 50 items. Each item: 3 to 120 characters. |
| filters. | array | no | Job title keywords the person must match, at least 3 characters each after trimming. 1 to 50 items. Each item: 3 to 120 characters. |
| filters. | array | no | Job title keyword groups, at least 3 characters per keyword after trimming. The person must match every group, and any keyword inside a group. At most 10 items. Each item: 1 to 50 items. Each item: 3 to 120 characters. |
| filters. | array | no | Job title keywords that remove a person, at least 3 characters each after trimming. 1 to 50 items. Each item: 3 to 120 characters. |
| filters. | array | no | Job functions to include. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Job functions to leave out. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Job levels to include. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Job levels to leave out. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Go-to-market role families to include. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Go-to-market role families to leave out. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | boolean | no | When true, only people with a verified work email are returned. |
| filters. | string | no | Whether the person has an email address. One of: any, available, missing. |
| filters. | string | no | Whether the person has a phone number. One of: any, available, missing. |
| filters. | array | no | Opaque person ids (hdp_) to leave out. At most 1000 items. Each item: Pattern: ^hdp_(?:[0-9a-f]{32}|s(?:0[1-9a-f]|1[0-9a-f]|20)[A-Za-z0-9_-]{24,224})$. |
| filters. | array | no | Email addresses to leave out. At most 1000 items. Each item: email address. |
| filters. | string | no | Sort by primary company employee estimate, largest or smallest first. Unknown sizes come last. Available from the November 2026 release. One of: company_size_desc, company_size_asc. |
| filters. | string | no | First name tokens, using accent-folded fuzzy matching. Requires companyId. 1 to 120 characters. Pattern: \S. |
| filters. | string | no | Last name tokens, using accent-folded fuzzy matching. Requires companyId. 1 to 120 characters. Pattern: \S. |
| filters. | string | no | Limit contacts to this company. This uses the company-indexed contact path and does not require country or industry filters. Pattern: ^hdo_(?:[0-9a-f]{32}|s(?:0[1-9a-f]|1[0-9a-f]|20)[A-Za-z0-9_-]{24,224})$. |
| filters. | object | no | Contact location filters. Requires companyId. |
| filters. | array | no | Person or job location country codes. 1 to 50 items. Each item: Pattern: ^\s*[a-z]{2}\s*$. |
| filters. | array | no | Person or job location state codes. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
| filters. | array | no | Person or job location cities. 1 to 50 items. Each item: 1 to 120 characters. Pattern: \S. |
Request
curl -sS -X POST "https://higherdata.io/api/v1/tools/search.filters_from_text?execute=false" \
-H "Authorization: Bearer hd_example_replace_me" \
-H "Content-Type: application/json" \
-d '{
"text": "Canadian companies"
}'SDK
import { HigherData } from "higherdata-sdk";
const higherdata = new HigherData({
apiKey: "hd_example_replace_me",
apiUrl: "https://higherdata.io",
});
const result = await higherdata.call("search.filters_from_text", {
"text": "Canadian companies"
}, { execute: false });Example
{
"input": {
"text": "Canadian companies"
},
"output": {
"kind": "companies",
"filters": {
"countryCodes": [
"CA"
]
},
"explanation": "Companies in Canada.",
"unapplied": []
}
}