# Matching Job Titles `POST https://api.getprospect.com/v2/search/matching-titles` Preview which job titles a boolean / Cartesian expression matches before you search with it. Send the same expression you would pass as person_job_title.boolean_search and get back the most common matching titles with a count for each. Counts are estimates over the whole database and do not take any of your other filters into account, so use them to sanity-check an expression, not to predict a result total. Returned titles are raw LinkedIn titles - the same values People Search returns as `job_title` - so one role appears once per spelling ("vp marketing" and "vp, marketing" are two rows). A position is matched on all of its titles, so a title can appear here because one of the person's other roles matched: an expression for `ceo` will list "Founder & CEO". Titles are also matched through their normalized catalog form, which is how a search finds non-English titles - and why a listed title can look unrelated to what you typed. That is what the search does; the preview shows it rather than hiding it. The expression must contain at least one term that is not excluded. The response metadata includes a `cached` flag noting whether the answer came from cache. Free: costs no credits; counts against the per-second window of the search rate limit (0 units). Authenticate with your API key in the x-api-key header. ## Authentication Pass your API key in the `x-api-key` header. ## Body parameters - `boolean_search` (string, required, min length: 2, max length: 20000): Boolean / Cartesian title query to preview, e.g. "(CEO OR CTO) AND !Intern". Same syntax as person_job_title.boolean_search: bareword=contains, 'single quotes'=contains a multi-word title, "double quotes"=exact, `backticks`=words in order with connectors bridged (`vp marketing` finds "VP of Marketing" but not "VP Sales and Marketing"), !=exclude, AND/OR, ()=grouping. Must contain at least one non-excluded term. Example: `{"boolean_search":"(ceo OR \"chief executive officer\") AND !intern"}` - `limit` (integer, optional, min: 1, max: 50, default: 20): Maximum titles to return, most common first. ## Example request ```bash curl --request POST \ --url https://api.getprospect.com/v2/search/matching-titles \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' \ --data ' { "boolean_search": "(ceo OR \"chief executive officer\") AND !intern", "limit": 3 } ' ``` ## Response 200 The most common matching titles; `[]` when none match (still a 200). ```json { "success": true, "data": [ { "title": "ceo", "count": 412318 }, { "title": "founder & ceo", "count": 198734 }, { "title": "chief executive officer", "count": 154902 } ], "metadata": { "timestamp": "2026-10-08T09:30:00.000Z", "limit": 3, "returned": 3, "cached": false } } ``` ## Response 400 Invalid request (`VALIDATION_ERROR`): a field fails validation (`payload.code` says which kind), or the expression cannot be parsed or excludes every term (`boolean_search: ...`, no `payload`). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-08T09:30:00.000Z" }, "errors": [ { "name": "VALIDATION_ERROR", "message": "boolean_search must be longer than or equal to 2 characters", "payload": { "field": "boolean_search", "code": "out_of_range", "received_value": "c", "received_type": "string", "constraints": { "minLength": "boolean_search must be longer than or equal to 2 characters" } } } ] } ``` ## Response 401 Missing, unknown or inactive credentials (`UNAUTHORIZED`). ## Response 429 Over the per-second window of the `search` rate limit (`RATE_LIMIT`; previews spend no units); wait `Retry-After` seconds. ## Response 500 Unexpected server error.