search_companies
Search Swiss companies using the Zefix API, filtering by name, canton, legal form, and active status. Narrow broad queries with specific names or filters to prevent Zefix rejections.
Instructions
Search for Swiss companies using the Zefix API. Supports filtering by name, canton, legal form, and active status. Names match by prefix; start with * to match anywhere. Zefix rejects searches that match too many companies (e.g. ab), so add canton or legalFormUid or use a more specific name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Company name to search for (minimum 3 characters, use * for wildcard) | |
| canton | No | 2-letter canton code (e.g., ZH, BE, GE) | |
| activeOnly | No | Only return active companies; excludes companies in liquidation or deleted (default: true) | |
| maxResults | No | Maximum number of results to return (default: 30, max: 200) | |
| legalFormUid | No | Legal form code (e.g., 0106 for AG, 0107 for GmbH) |